Bisherige Konfiguration:
root@dione:~# mdadm --detail /dev/md3
/dev/md3:
Version : 0.90
Creation Time : Sun Jan 30 10:37:10 2011
Raid Level : raid1
Array Size : 914847680 (872.47 GiB 936.80 GB)
Used Dev Size : 914847680 (872.47 GiB 936.80 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 3
Persistence : Superblock is persistent
Update Time : Sun Feb 21 10:56:56 2016
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 907d383c:2bcb4225:91af66a1:ac841612 (local to host dione)
Events : 0.60469
Number Major Minor RaidDevice State
0 8 19 0 active sync /dev/sdb3
1 8 35 1 active sync /dev/sdc3
/dev/sdc3 aus dem Spiegel herauslösen:
root@dione:~# mdadm --manage /dev/md3 -f /dev/sdc3 mdadm: set /dev/sdc3 faulty in /dev/md3 root@dione:~# mdadm --manage /dev/md3 -r /dev/sdc3 mdadm: hot removed /dev/sdc3 from /dev/md3
/dev/md3 sieht jetzte wie folgt aus:
root@dione:~# mdadm --detail /dev/md3 /dev/md3: Version : 0.90 Creation Time : Sun Jan 30 10:37:10 2011 Raid Level : raid1 Array Size : 914847680 (872.47 GiB 936.80 GB) Used Dev Size : 914847680 (872.47 GiB 936.80 GB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 3 Persistence : Superblock is persistent Update Time : Sun Feb 21 10:57:36 2016 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 UUID : 907d383c:2bcb4225:91af66a1:ac841612 (local to host dione) Events : 0.60480 Number Major Minor RaidDevice State 0 8 19 0 active sync /dev/sdb3 1 0 0 1 removed
Physisches Volume auf /dev/sdc3 anlegen:
root@dione:~# pvcreate /dev/sdc3 WARNING: software RAID md superblock detected on /dev/sdc3. Wipe it? [y/n] y Wiping software RAID md superblock on /dev/sdc3. Physical volume "/dev/sdc3" successfully created
Volume Gruppe vol1 um /dev/sdc3 erweitern:
root@dione:~# vgextend vol1 /dev/sdc3 Volume group "vol1" successfully extended
Volume vol1/home in Spiegel umwandeln:
root@dione:~# lvconvert -m1 vol1/home --corelog vol1/home: Converted: 0.0% ...
Status des LV:
root@dione:~# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert Devices home vol1 mwi-aom-- 711.00g 13.38 home_mimage_0(0),home_mimage_1(0) [home_mimage_0] vol1 Iwi-aom-- 711.00g /dev/md3(158976) [home_mimage_0] vol1 Iwi-aom-- 711.00g /dev/md3(32187) [home_mimage_0] vol1 Iwi-aom-- 711.00g /dev/md3(191163) [home_mimage_1] vol1 Iwi-aom-- 711.00g /dev/sdc3(0)