Plan for hot replacing damaged RAID-1 drive in freebsd 9.0

by Nikola   Last Updated May 10, 2018 05:00 AM

i have System FreeBSD 9.0 with RAID configuration

# mfiutil show config
mfi0 Configuration: 2 arrays, 2 volumes, 0 spares
    array 0 of 2 drives:
        drive  4 (  558G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3ZTFP> SAS
        drive  5 (  558G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3YNB7> SAS
    array 1 of 2 drives:
        drive  6 (  558G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3YNK3> SAS
        drive  7 (  558G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3YQNJ> SAS
    volume mfid0 (557G) RAID-1 64k OPTIMAL spans:
            array 0
    volume mfid1 (1115G) RAID-0 64k OPTIMAL spans:
            array 1

At last time i see many warn records for drive PD 05 (part of raid-1)

89584 (Fri Apr 27 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
89906 (Sat Apr 28 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
89907 (Sun Apr 29 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
89908 (Mon Apr 30 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
89909 (Tue May  1 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)

The system installed on raid-1

# df -h
Filesystem      Size    Used   Avail Capacity  Mounted on
/dev/mfid0p2    544G    381G    119G    76%    /
devfs           1.0k    1.0k      0B   100%    /dev
/dev/mfid1s2    972G    408G    486G    46%    /home2
/dev/md2         31M     56k     28M     0%    /tmp/mem

Now i buy new drive ST3600057SS and have have plan to hot replace drive

1) mfiutil fail 5
2) mfiutil locate 5 on
3) replace drive
4) mfiutil rebuild 5
5) mfiutil start rebuild 5

i’m not really sure, can someone tell me, all steps in my plan is right?

Thank you for attention!

Tags : raid freebsd


Related Questions



Slow read and write speeds on FreeBSD ZFS

Updated February 17, 2017 22:00 PM

Software RAID on ZFS - Good or Bad?

Updated May 02, 2017 02:00 AM