Defekte Platte im RAID5 tauschen

    • Offizieller Beitrag

    I have to leave now (looking for the kids), but if there is anything more I can do at the weekend i`d be lucky to hear about.

    Leave it until the weekend, the fact that it won't stop makes no sense, it's something I have not come across.

  • I tried it once again, without Putty, direct an after a reboot.


    for mdadm --stop /dev/md127


    i receeved:


    mdadm: Canno get exclusive access to /dev/md127: Perhaps a running process, mounted filesystem or active volume group?


    gui shows (as all services had been stopped before) following:



    what else can I do?

  • thank you for looking
    The link I had posted shows Diagnostik > Processes (doesn`t is?)
    ...


    root@OMVneu:~# lsof dev/md127
    lsof: status error on dev/md127: No such file or directory
    lsof 4.89
    latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
    latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
    latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
    usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
    [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
    [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
    Use the ``-h'' option to get more help information.

    • Offizieller Beitrag

    it seems as it happen nothing...

    That would suggest there are no open files on the array ?( which makes no sense.


    Let's see if it will force a stop mdadm --stop --force /dev/md127 if that errors again then look at the output of this


    ps aux the list will be long but you are looking for something that is accessing the raid or a reference to Plex

  • root@OMVneu:~# mdadm --stop -- force /dev/md127
    mdadm: No devices given.



    root@OMVneu:~# ps aux
    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.3 0.2 204892 7272 ? Ss 09:44 1:03 /sbin/init
    root 2 0.0 0.0 0 0 ? S 09:44 0:00 [kthreadd]
    root 3 0.0 0.0 0 0 ? I< 09:44 0:00 [rcu_gp]
    root 4 0.0 0.0 0 0 ? I< 09:44 0:00 [rcu_par_gp]
    root 6 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/0:0H-k
    root 8 0.0 0.0 0 0 ? I< 09:44 0:00 [mm_percpu_wq]
    root 9 0.0 0.0 0 0 ? S 09:44 0:00 [ksoftirqd/0]
    root 10 0.0 0.0 0 0 ? I 09:44 0:13 [rcu_sched]
    root 11 0.0 0.0 0 0 ? I 09:44 0:00 [rcu_bh]
    root 12 0.0 0.0 0 0 ? S 09:44 0:00 [migration/0]
    root 14 0.0 0.0 0 0 ? S 09:44 0:00 [cpuhp/0]
    root 15 0.0 0.0 0 0 ? S 09:44 0:00 [cpuhp/1]
    root 16 0.0 0.0 0 0 ? S 09:44 0:00 [migration/1]
    root 17 0.0 0.0 0 0 ? S 09:44 0:00 [ksoftirqd/1]
    root 19 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/1:0H-k
    root 20 0.0 0.0 0 0 ? S 09:44 0:00 [cpuhp/2]
    root 21 0.0 0.0 0 0 ? S 09:44 0:00 [migration/2]
    root 22 0.0 0.0 0 0 ? S 09:44 0:00 [ksoftirqd/2]
    root 24 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/2:0H-k
    root 25 0.0 0.0 0 0 ? S 09:44 0:00 [cpuhp/3]
    root 26 0.0 0.0 0 0 ? S 09:44 0:00 [migration/3]
    root 27 0.0 0.0 0 0 ? S 09:44 0:00 [ksoftirqd/3]
    root 29 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/3:0H-k
    root 30 0.0 0.0 0 0 ? S 09:44 0:00 [kdevtmpfs]
    root 31 0.0 0.0 0 0 ? I< 09:44 0:00 [netns]
    root 32 0.0 0.0 0 0 ? S 09:44 0:00 [kauditd]
    root 33 0.0 0.0 0 0 ? S 09:44 0:00 [khungtaskd]
    root 34 0.0 0.0 0 0 ? S 09:44 0:00 [oom_reaper]
    root 35 0.0 0.0 0 0 ? I< 09:44 0:00 [writeback]
    root 36 0.0 0.0 0 0 ? S 09:44 0:00 [kcompactd0]
    root 37 0.0 0.0 0 0 ? SN 09:44 0:00 [ksmd]
    root 38 0.0 0.0 0 0 ? SN 09:44 0:00 [khugepaged]
    root 39 0.0 0.0 0 0 ? I< 09:44 0:00 [crypto]
    root 40 0.0 0.0 0 0 ? I< 09:44 0:00 [kintegrityd]
    root 41 0.0 0.0 0 0 ? I< 09:44 0:00 [kblockd]
    root 42 0.0 0.0 0 0 ? I< 09:44 0:00 [edac-poller]
    root 43 0.0 0.0 0 0 ? I< 09:44 0:00 [devfreq_wq]
    root 44 0.0 0.0 0 0 ? S 09:44 0:00 [watchdogd]
    root 48 0.0 0.0 0 0 ? S 09:44 0:00 [kswapd0]
    root 66 0.0 0.0 0 0 ? I< 09:44 0:00 [kthrotld]
    root 67 0.0 0.0 0 0 ? S 09:44 0:00 [irq/115-pciehp
    root 68 0.0 0.0 0 0 ? S 09:44 0:00 [irq/116-pciehp
    root 69 0.0 0.0 0 0 ? I< 09:44 0:00 [ipv6_addrconf]
    root 79 0.0 0.0 0 0 ? I< 09:44 0:00 [kstrp]
    root 118 0.0 0.0 0 0 ? I< 09:44 0:00 [ata_sff]
    root 120 0.0 0.0 0 0 ? S 09:44 0:00 [scsi_eh_0]
    root 121 0.0 0.0 0 0 ? I< 09:44 0:00 [scsi_tmf_0]
    root 124 0.0 0.0 0 0 ? S 09:44 0:00 [scsi_eh_1]
    root 126 0.0 0.0 0 0 ? I< 09:44 0:00 [scsi_tmf_1]
    root 131 0.0 0.0 0 0 ? S 09:44 0:00 [scsi_eh_2]
    root 133 0.0 0.0 0 0 ? I< 09:44 0:00 [scsi_tmf_2]
    root 134 0.0 0.0 0 0 ? S 09:44 0:00 [scsi_eh_3]
    root 136 0.0 0.0 0 0 ? I< 09:44 0:00 [scsi_tmf_3]
    root 137 0.0 0.0 0 0 ? I 09:44 0:00 [kworker/u8:3-e
    root 182 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/2:1H-k
    root 183 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/3:1H-k
    root 184 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/0:1H-e
    root 191 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/1:1H-k
    root 194 0.0 0.0 0 0 ? I< 09:44 0:00 [md]
    root 202 0.0 0.0 0 0 ? I< 09:44 0:00 [raid5wq]
    root 203 0.0 0.0 0 0 ? S 09:44 0:00 [md127_raid5]
    root 267 0.0 0.0 0 0 ? I< 09:44 0:00 [kworker/u9:0]
    root 282 0.0 0.0 0 0 ? S 09:44 0:01 [jbd2/sdc1-8]
    root 283 0.0 0.0 0 0 ? I< 09:44 0:00 [ext4-rsv-conve
    root 323 0.0 0.1 42296 5120 ? Ss 09:44 0:01 /lib/systemd/sy
    root 340 0.0 0.0 99004 1640 ? Ss 09:44 0:00 /sbin/lvmetad -
    root 357 0.0 0.0 0 0 ? I< 09:44 0:00 [rpciod]
    root 359 0.0 0.0 0 0 ? I< 09:44 0:00 [xprtiod]
    root 361 0.0 0.1 45676 3724 ? Ss 09:44 0:00 /lib/systemd/sy
    root 371 0.0 0.0 20828 176 ? Ss 09:44 0:00 /usr/sbin/blkma
    root 413 0.0 0.0 0 0 ? S 09:44 0:00 [irq/123-ACPI:E
    root 494 0.0 0.0 15396 2368 ? Ss 09:44 0:00 /sbin/mdadm --m
    root 497 0.0 0.0 0 0 ? S 09:44 0:00 [i915/signal:0]
    root 499 0.0 0.0 0 0 ? S 09:44 0:00 [i915/signal:1]
    root 501 0.0 0.0 0 0 ? S 09:44 0:00 [i915/signal:2]
    root 504 0.0 0.0 0 0 ? S 09:44 0:00 [i915/signal:6]
    root 520 0.0 0.0 0 0 ? S 09:44 0:00 [jbd2/md127-8]
    root 521 0.0 0.0 0 0 ? I< 09:44 0:00 [ext4-rsv-conve
    root 588 0.0 0.0 49872 3384 ? Ss 09:44 0:00 /sbin/rpcbind -
    root 603 0.0 0.0 29668 2920 ? Ss 09:44 0:00 /usr/sbin/cron
    root 604 0.0 0.1 25296 4428 ? Ss 09:44 0:00 /usr/sbin/smart
    root 611 0.0 0.1 254240 5672 ? Ssl 09:44 0:00 /usr/sbin/rsysl
    message+ 612 0.0 0.1 45120 3716 ? Ss 09:44 0:02 /usr/bin/dbus-d
    root 649 0.0 0.1 37984 4232 ? Ss 09:44 0:02 /lib/systemd/sy
    root 651 0.0 0.0 4208 1292 ? Ss 09:44 0:00 /usr/sbin/acpid
    root 707 0.0 0.0 49144 2712 ? Sl 09:44 0:13 /usr/bin/monit
    root 813 0.0 0.0 20480 1744 ? Ss 09:44 0:00 /sbin/dhclient
    root 935 0.0 0.8 256296 28588 ? Ss 09:44 0:03 php-fpm: master
    root 948 0.0 0.0 65396 3004 tty1 Ss 09:44 0:00 /bin/login --
    root 960 0.1 0.1 655332 4308 ? Ssl 09:44 0:38 /usr/bin/rrdcac
    root 968 0.1 0.2 971464 8716 ? Ssl 09:44 0:38 /usr/sbin/colle
    root 986 0.0 0.0 159544 1660 ? Ss 09:44 0:00 nginx: master p
    root 987 0.2 0.5 188096 17688 ? S 09:44 0:45 omv-engined
    www-data 988 0.0 0.1 160184 4748 ? S 09:44 0:03 nginx: worker p
    www-data 989 0.0 0.1 160184 4748 ? S 09:44 0:04 nginx: worker p
    www-data 990 0.0 0.0 159916 3236 ? S 09:44 0:04 nginx: worker p
    www-data 991 0.0 0.0 159916 3236 ? S 09:44 0:04 nginx: worker p
    www-data 995 0.0 0.1 256264 6628 ? S 09:44 0:00 php-fpm: pool w
    www-data 996 0.0 0.1 256264 6632 ? S 09:44 0:00 php-fpm: pool w
    root 1951 0.0 0.1 81192 4204 ? Ss 09:44 0:00 /usr/lib/postfi
    postfix 1953 0.0 0.1 83424 6868 ? S 09:44 0:00 qmgr -l -t unix
    root 1966 0.0 0.0 4264 1352 ? SLs 09:44 0:05 /usr/sbin/watch
    postfix 1976 0.0 0.2 87496 7080 ? S 09:44 0:00 tlsmgr -l -t un
    root 1990 0.0 0.1 21224 5192 tty1 S+ 09:44 0:00 -bash
    root 2089 0.0 0.0 0 0 ? I 12:46 0:00 [kworker/u8:0-e
    root 2369 0.0 0.1 69960 5600 ? Ss 12:46 0:00 /usr/sbin/sshd
    root 2372 0.0 0.0 0 0 ? I 12:46 0:00 [kworker/0:2-cg
    avahi 2390 0.0 0.0 47148 3288 ? Ss 12:46 0:00 avahi-daemon: r
    avahi 2391 0.0 0.0 47016 360 ? S 12:46 0:00 avahi-daemon: c
    root 2397 0.0 0.1 92956 6644 ? Rs 12:47 0:00 sshd: root@pts/
    root 2408 0.0 0.1 21176 4976 pts/0 Ss 12:47 0:00 -bash
    root 2758 0.0 0.0 0 0 ? I 13:01 0:03 [kworker/1:0-ev
    root 2964 0.0 0.0 0 0 ? I 13:09 0:00 [kworker/2:0-ev
    root 4328 0.0 0.0 0 0 ? I 14:00 0:00 [kworker/2:2-ev
    root 4551 0.0 0.0 0 0 ? I 14:09 0:00 [kworker/3:1-cg
    root 4906 0.0 0.0 0 0 ? I 14:23 0:00 [kworker/1:2-ev
    root 5452 0.0 0.0 0 0 ? I 14:39 0:00 [kworker/3:0-mm
    postfix 5558 0.0 0.1 83260 6564 ? S 14:44 0:00 pickup -l -t un
    openmed+ 6070 2.1 0.3 256944 13928 ? S 15:03 0:10 php-fpm: pool o
    root 6104 0.0 0.0 0 0 ? I 15:04 0:00 [kworker/0:1-ev
    root 6240 0.0 0.0 0 0 ? I 15:09 0:00 [kworker/2:1-mm
    root 6284 0.0 0.0 0 0 ? Zs 15:11 0:00 [mountpoint] <d
    root 6286 0.0 0.0 38308 3256 pts/0 R+ 15:11 0:00 ps aux

  • root@OMVneu:~# mdadm --stop /dev/md127 -- force
    mdadm: Cannot get exclusive access to /dev/md127:Perhaps a running process, mounted filesystem or active volume group?


    could for this be the problem that Putty is running ?

    • Offizieller Beitrag

    could for this be the problem that Putty is running ?

    Putty should be on the remote machine, how are you running these commands are you using ssh via putt from another machine or are you typing directly on omv via it's own command line?

  • ok I`ll stay on Putty.


    root@OMVneu:~# mdadm --detail /dev/md127
    /dev/md127:
    Version : 1.2
    Creation Time : Fri Sep 16 05:50:43 2016
    Raid Level : raid5
    Array Size : 5860270080 (5588.79 GiB 6000.92 GB)
    Used Dev Size : 2930135040 (2794.39 GiB 3000.46 GB)
    Raid Devices : 3
    Total Devices : 2
    Persistence : Superblock is persistent



    Update Time : Sat Jan 18 15:36:36 2020
    State : clean, degraded
    Active Devices : 2
    Working Devices : 2
    Failed Devices : 0
    Spare Devices : 0



    Layout : left-symmetric
    Chunk Size : 512K



    Name : openmediavault:raid5home
    UUID : 69bd812a:cd81f419:8a590c2f:87234e77
    Events : 60933



    Number Major Minor RaidDevice State
    3 8 0 0 active sync /dev/sda
    1 8 16 1 active sync /dev/sdb
    - 0 0 2 removed

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!