Raid + LVM add new raid device to LVM, problem
Hello, I have a LVM with 2 raid1 device, and want to add new raid1 device.
[root@fileserver ~]# lvdisplay
--- Logical volume ---
LV Name /dev/mapper_vg/share_lv
VG Name mapper_vg
LV UUID WNLEJQ-syST-Kg1M-SWLk-VcXo-o9LQ-NNpuxe
LV Write Access read/write
LV Status available
# open 1
LV Size 2,61 TB
Current LE 21376
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 252:0
[root@fileserver ~]# pvdisplay
--- Physical volume ---
PV Name /dev/md3
VG Name mapper_vg
PV Size 1,80 TB / not usable 113,25 MB
Allocatable yes (but full)
PE Size (KByte) 131072
Total PE 14707
Free PE 0
Allocated PE 14707
PV UUID hyoUPl-Nm98-MuLn-46Lr-qOHW-8ytU-Mcteac
--- Physical volume ---
PV Name /dev/md4
VG Name mapper_vg
PV Size 931,51 GB / not usable 11,12 MB
Allocatable yes
PE Size (KByte) 131072
Total PE 7452
Free PE 783
Allocated PE 6669
PV UUID 1B7HeF-dKLk-DOf4-qEXc-Pyo3-7FBN-5gV7Jr
[root@fileserver ~]# cat /proc/mdstat
Personalities : [raid1]
md5 : active raid1 sdd1[1] sdf1[0]
1926241536 blocks [2/2] [UU]
[=>...................] resync = 7.4% (144304640/1926241536) finish=151.7min speed=195682K/sec
md4 : active raid1 sdc1[0] sde1[1]
976759936 blocks [2/2] [UU]
md3 : active raid1 sda5[0] sdb5[1]
1927791872 blocks [2/2] [UU]
....................................................
[root@fileserver ~]# mdadm --detail /dev/md3
/dev/md3:
Version : 0.90
Creation Time : Tue Oct 5 21:07:35 2010
Raid Level : raid1
Array Size : 1927791872 (1838.49 GiB 1974.06 GB)
Used Dev Size : 1927791872 (1838.49 GiB 1974.06 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 3
Persistence : Superblock is persistent
Update Time : Wed Aug 15 10:39:59 2012
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : bfddaca7:45bf9290:04894333:532a878b
Events : 0.1289245
Number Major Minor RaidDevice State
0 8 5 0 active sync /dev/sda5
1 8 21 1 active sync /dev/sdb5
[root@fileserver ~]# mdadm --detail /dev/md4
/dev/md4:
Version : 0.90
Creation Time : Sat May 7 11:33:24 2011
Raid Level : raid1
Array Size : 976759936 (931.51 GiB 1000.20 GB)
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 4
Persistence : Superblock is persistent
Update Time : Wed Aug 15 10:40:14 2012
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 59f4348d:ac6274c0:77478036:3648553c (local to host fileserver.server)
Events : 0.807409
Number Major Minor RaidDevice State
0 8 33 0 active sync /dev/sdc1
1 8 65 1 active sync /dev/sde1
[root@fileserver ~]# mdadm --detail /dev/md5
/dev/md5:
Version : 0.90
Creation Time : Wed Aug 15 11:08:54 2012
Raid Level : raid1
Array Size : 1926241536 (1837.01 GiB 1972.47 GB)
Used Dev Size : 1926241536 (1837.01 GiB 1972.47 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 5
Persistence : Superblock is persistent
Update Time : Wed Aug 15 11:19:42 2012
State : active, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Rebuild Status : 9% complete
UUID : 5e20067a:d53135ae:77478036:3648553c (local to host fileserver.server)
Events : 0.3
Number Major Minor RaidDevice State
0 8 81 0 active sync /dev/sdf1
1 8 49 1 active sync /dev/sdd1
When try to prepare new raid1 device for LVM
[root@fileserver ~]# pvcreate /dev/md5
/dev/md5: pe_align (128 sectors) must not be less than pe_align_offset (8388607 sectors)
/dev/md5: Format-specific setup of physical volume failed.
Failed to setup physical volume "/dev/md5"
[root@fileserver ~]# cat /sys/block/md5/alignment_offset
-1
other raid1 device show
[root@fileserver ~]# cat /sys/block/md3/alignment_offset
0
[root@fileserver ~]# cat /sys/block/md4/alignment_offset
0
[root@fileserver ~]# cat /sys/block/md5/queue/hw_sector_size
512
[root@fileserver ~]# cat /sys/block/md4/queue/hw_sector_size
512
[root@fileserver ~]# cat /sys/block/md3/queue/hw_sector_size
512
Any idea to add /dev/md5 to LVM ??
Last edited by request; 08-15-2012 at 07:13 AM.
|