Restore Raid Array after replacing OS drive

Restore Raid Array after replacing OS drive

Postby erik02 » Fri Mar 31, 2017 4:40 pm

I need to replace my OS drive on my 5Big, the other 4 drives are in a healthy, functioning raid array currently. I was wondering what I need to backup from my existing configuration so that I can pull the 4 drives, install fvdwsl onto a new drive, and attach my existing raid array afterwards. I've saved the following information. I didn't see the output I expected on fstab, maybe someone could shed some light on that. I had anticipated seeing MD0 and its mount point there.

root@fvdwsl-base:/share/1100/Movies # mdadm --detail /dev/md0
/dev/md0:
Version : 01.00.03
Creation Time : Sun Feb 26 14:23:24 2017
Raid Level : raid5
Array Size : 5851833984 (5580.74 GiB 5992.28 GB)
Device Size : 3901222656 (1860.25 GiB 1997.43 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Fri Mar 31 06:19:00 2017
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 64K

Name : 0
UUID : 952c1f1e:17f7556e:e2d43203:ce61b71e
Events : 212064

Number Major Minor RaidDevice State
0 8 24 0 active sync /dev/sdb8
1 8 8 1 active sync /dev/sdc8
2 8 72 2 active sync /dev/sdd8
4 8 56 3 active sync /dev/sde8


root@fvdwsl-base:/share/1100/Movies # df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 226.2M 141.5M 72.2M 66% /
/dev/sda5 739.9M 1.7M 730.6M 0% /rw_fs
tmpfs 4.9M 1.2M 3.7M 24% /rw_fs/tmp/usr/var
/dev/sda8 3.6T 129.5G 3.4T 4% /share/1000
/dev/md0 5.4T 4.4T 1018.9G 81% /share/1100
root@fvdwsl-base:/share/1100/Movies # cat /etc/fstab
none /proc proc rw
none /sys sysfs rw
none / ext3 rw
nfsd /proc/fs/nfsd nfsd auto,defaults 0 0
root@fvdwsl-base:/share/1100/Movies #

root@fvdwsl-base:/share/1100/Movies # cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
none /proc proc rw,relatime 0 0
none /sys sysfs rw,relatime 0 0
none /dev/pts devpts rw,relatime,mode=600 0 0
/dev/sda5 /rw_fs ext3 rw,noatime,errors=continue,barrier=1,data=ordered 0 0
tmpfs /rw_fs/tmp/usr/var tmpfs rw,relatime,size=5000k 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
/dev/sda8 /share/1000 ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md0 /share/1100 ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered 0 0
erik02
 
Posts: 3
Joined: Fri Jan 16, 2015 9:43 pm

Re: Restore Raid Array after replacing OS drive

Postby Jocko » Fri Mar 31, 2017 6:30 pm

Hi erik02,

It is quiet easy.

- First you need to succeed to unmount /dev/sda8. Several daemons may prevent it. So stop at least the servers FTP, NFS or AFP and kill smbd
Code: Select all
killall smbd
. You need to kill also noflush daemon
Code: Select all
killall noflushd
. Then try to unmount /dev/sda8
Code: Select all
umount /dev/sda8
.
- change partition type on sda8 (FD00) instead of (8300). See the raid5 tuto to do it
- add sda8 on md0
Code: Select all
mdadm --add /dev/md0 /dev/sda8

Then check if redundancy is rebuilding
Code: Select all
cat /proc/mdstat


If all seems to be ok, reboot the NAS.

Then Vol-A should be disappeared and md0 state should be 'recovery' (on disk setup menu)
Jocko
Site Admin - expert
 
Posts: 11362
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Restore Raid Array after replacing OS drive

Postby scanja500 » Tue Jun 19, 2018 3:06 pm

hey sorry where is the raid 5 tuto to change partition Type!
cant find it!
thhhxxxxxx
scanja500
 
Posts: 1
Joined: Tue Jun 05, 2018 3:27 pm

Re: Restore Raid Array after replacing OS drive

Postby Jocko » Tue Jun 19, 2018 7:15 pm

Hi,

Raid tuto is no longer useful, with version 17.0 you can build the raid from the web-interface.
Jocko
Site Admin - expert
 
Posts: 11362
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 1 guest