Error creating Raid 5

Re: Error creating Raid 5

Postby b1gnas » Sat Oct 03, 2015 8:20 am

I replaced sde disk with the Hitachi one, but all led are red, sda and sdd leds are red and blinking, and i can't see the nas on the network....
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Error creating Raid 5

Postby Jocko » Sat Oct 03, 2015 8:44 am

:scratch it should be able to start

So replace sde with your barracuda and reboot

Need to think more how to test your Hitachi
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Error creating Raid 5

Postby Jocko » Sat Oct 03, 2015 1:10 pm

So you can do a hot-swap.

Start your nas with all barracuda disks and in putty do
Code: Select all
mdadm --remove /dev/md0 /dev/sde8

Then unplug sde from its slot and put it your Hitachi disk. Do fdisk -l to check if the hitachi disk is here and try to mount your formatted partition (I assume partition 1)
Code: Select all
mkdir /tmp/hitachi
mount /dev/sde1 /tmp/hitachi

Then post your dmesg output.

to restore do:
Code: Select all
umount /tmp/hitachi
remove your hitachi disk and plug again your barracuda disk. Then readd sde8 in the raid
Code: Select all
mdadm --re-add /dev/md0 /dev/sde8
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Error creating Raid 5

Postby b1gnas » Sun Oct 04, 2015 7:32 pm

Code: Select all
root@fvdwsl-base:/ # mdadm --remove /dev/md0 /dev/sde8
mdadm: hot remove failed for /dev/sde8: Device or resource busy
root@fvdwsl-base:/ # umount /dev/sde8
umount: /dev/sde8: not mounted
root@fvdwsl-base:/ # mdadm --remove /dev/md0 /dev/sde8
mdadm: hot remove failed for /dev/sde8: Device or resource busy
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Error creating Raid 5

Postby Jocko » Sun Oct 04, 2015 7:34 pm

Well try again by killing noflush daemon
Code: Select all
killall noflushd
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Error creating Raid 5

Postby b1gnas » Sun Oct 04, 2015 7:42 pm

Code: Select all
root@fvdwsl-base:/ # killall noflushd
root@fvdwsl-base:/ # mdadm --remove /dev/md0 /dev/sde8
mdadm: hot remove failed for /dev/sde8: Device or resource busy
root@fvdwsl-base:/ # umount /dev/sde8
umount: /dev/sde8: not mounted
root@fvdwsl-base:/ # mdadm --remove /dev/md0 /dev/sde8
mdadm: hot remove failed for /dev/sde8: Device or resource busy
root@fvdwsl-base:/ # killall smbd
root@fvdwsl-base:/ # mdadm --remove /dev/md0 /dev/sde8
mdadm: hot remove failed for /dev/sde8: Device or resource busy
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Error creating Raid 5

Postby Jocko » Sun Oct 04, 2015 7:53 pm

can you post the output of
Code: Select all
ps auxf
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Error creating Raid 5

Postby b1gnas » Sun Oct 04, 2015 7:53 pm

Code: Select all
root@fvdwsl-base:/ # ps auxf
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         2  0.0  0.0      0     0 ?        S    21:17   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [ksoftirqd]
root         4  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [kworker/0]
root         5  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [kworker/0]
root         7  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [khelper]
root         8  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [netns]
root       139  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [writeback]
root       141  0.0  0.0      0     0 ?        SN   21:17   0:00  \_ [ksmd]
root       142  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [bioset]
root       144  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [kblockd]
root       150  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [ata_sff]
root       161  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [khubd]
root       260  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [kswapd0]
root       261  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [fsnotify_]
root       262  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [crypto]
root       400  0.0  0.0      0     0 ?        S    21:17   0:01  \_ [scsi_eh_0]
root       401  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       404  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_1]
root       405  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       408  0.0  0.0      0     0 ?        S    21:17   0:01  \_ [scsi_eh_2]
root       409  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       412  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_3]
root       413  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       416  0.0  0.0      0     0 ?        S    21:17   0:02  \_ [scsi_eh_4]
root       417  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       420  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_5]
root       421  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       424  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_6]
root       425  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       428  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_7]
root       429  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       456  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_8]
root       457  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       460  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_9]
root       461  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       464  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_1]
root       465  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       468  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_1]
root       469  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       472  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [scsi_eh_1]
root       473  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [scsi_tmf_]
root       478  0.0  0.0      0     0 ?        S    21:17   0:00  \_ [kworker/u]
root       500  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [aoe_tx0]
root       501  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [aoe_ktio0]
root       536  0.0  0.0      0     0 ?        S<   21:17   0:00  \_ [deferwq]
root       602  0.2  0.0      0     0 ?        S<   21:17   0:04  \_ [kworker/0]
root       604  0.0  0.0      0     0 ?        S    21:19   0:00  \_ [kjournald]
root       623  0.0  0.0      0     0 ?        S    21:19   0:00  \_ [kjournald]
root       670  0.0  0.0      0     0 ?        S    21:19   0:00  \_ [kjournald]
root       700  0.0  0.0      0     0 ?        S<   21:20   0:00  \_ [cifsiod]
root       706  0.0  0.0      0     0 ?        S<   21:20   0:00  \_ [rpciod]
root       707  0.0  0.0      0     0 ?        S<   21:20   0:00  \_ [nfsiod]
root       711  0.0  0.0      0     0 ?        S<   21:20   0:00  \_ [iscsi_eh]
root       717  0.0  0.0      0     0 ?        S<   21:20   0:00  \_ [md]
root       720  0.0  0.0      0     0 ?        S<   21:20   0:00  \_ [raid5wq]
root       867  0.0  0.0      0     0 ?        S<   21:20   0:00  \_ [bioset]
root       868  0.1  0.0      0     0 ?        S    21:20   0:02  \_ [md0_raid5]
root      1030  0.0  0.0      0     0 ?        S    21:29   0:00  \_ [kworker/u]
root      1031  0.0  0.0      0     0 ?        S    21:30   0:00  \_ [kjournald]
root      1431  0.0  0.0      0     0 ?        S    21:31   0:00  \_ [kworker/0]
root         1  0.0  0.5   3248   668 ?        Ss   21:17   0:00 init
root       839  0.0  0.4   1688   552 ?        Ss   21:20   0:00 /usr/sbin/fan-d
root       860  0.0  0.3   2016   464 ?        Ss   21:20   0:00 /sbin/mdadm --m
root      1036  0.0  0.3   1780   472 ?        S<s  21:30   0:00 /sbin/udevd --d
root      1449  0.0  0.1   3248   240 ?        Ss   21:31   0:00 /sbin/udhcpc -b
root      1472  0.0  4.5  16748  5776 ?        Ss   21:31   0:00 /usr/bin/httpd
nobody    1946  0.0  3.4  16828  4320 ?        S    21:40   0:00  \_ /usr/bin/ht
nobody    1947  0.0  5.0  17048  6352 ?        S    21:40   0:00  \_ /usr/bin/ht
nobody    1949  0.0  5.3  17276  6724 ?        S    21:40   0:00  \_ /usr/bin/ht
root      1486  0.0  1.0   6348  1380 ?        Ss   21:31   0:00 /usr/sbin/nmbd
root      1503  0.0  0.2   1684   312 ?        S<s  21:31   0:00 /usr/sbin/synca
root      1506  0.0  0.2   1688   364 ?        Ss   21:31   0:00 /usr/bin/discov
root      1518  0.0  0.4   2184   596 ?        Ss   21:31   0:00 /usr/bin/rpcbin
root      1540  0.0  0.3   2208   484 ?        Ss   21:31   0:00 dropbear -p 22
root      1922  0.1  0.7   2288   892 ?        Ss   21:31   0:01  \_ dropbear -p
root      1925  0.0  0.6   3252   756 pts/0    Ss   21:31   0:00      \_ -sh
root      1983  0.0  0.8   4460  1020 pts/0    R+   21:53   0:00          \_ ps
root      1553  0.0  0.3   1684   436 ?        Ss   21:31   0:00 /usr/sbin/hostd
nobody    1604  0.0  1.5   7724  1896 ?        Ss   21:31   0:00 proftpd: (accep
root      1614  0.0  0.3   3496   480 ?        Ss   21:31   0:00 /bin/ntpd -p nt
root      1924  0.0  0.5   3252   648 ttyS0    Ss+  21:31   0:00 /bin/sh
root@fvdwsl-base:/ #
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Error creating Raid 5

Postby Jocko » Sun Oct 04, 2015 7:58 pm

I think you need to declare sde8 as a faulty disk before removing it
So try
Code: Select all
mdadm --fail /dev/md0 /dev/sde8
mdadm --remove /dev/md0 /dev/sde8
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Error creating Raid 5

Postby b1gnas » Sun Oct 04, 2015 8:01 pm

Code: Select all
root@fvdwsl-base:/ # mdadm --fail /dev/md0 /dev/sde8
mdadm: set /dev/sde8 faulty in /dev/md0
root@fvdwsl-base:/ # mdadm --remove /dev/md0 /dev/sde8
mdadm: hot removed /dev/sde8


ok now i replace it with the hitachi
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

PreviousNext

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 12 guests