LVM weirdness
I'm having some issues with LVM, basically it appears that I can't assign over a certain amount of my pv, where that certain amount is somewhere around 1.5TB... output from all the relevant chunks are:
ensenada:~# lvdisplay --- Logical volume --- LV Name /dev/main/root VG Name main LV UUID ZR33WS-glE2-bUn6-adCX-n50C-37eX-Fc7Pde LV Write Access read/write LV Status available # open 1 LV Size 7.45 GB Current LE 1907 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:0 --- Logical volume --- LV Name /dev/main/voldemort VG Name main LV UUID DrT0co-THRw-6Zcy-Q3PT-OiQj-4KBz-xfV0Un LV Write Access read/write LV Status available # open 1 LV Size 1.37 TB Current LE 358400 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:1 ensenada:~# vgdisplay --- Volume group --- VG Name main System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 56 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 1 Act PV 1 VG Size 5.45 TB PE Size 4.00 MB Total PE 1428053 Alloc PE / Size 360307 / 1.37 TB Free PE / Size 1067746 / 4.07 TB VG UUID ddVSIr-W9BU-XOWJ-gdSo-HZ4m-vw3M-S33Q3s ensenada:~# pvdisplay --- Physical volume --- PV Name /dev/sda3 VG Name main PV Size 5.45 TB / not usable 1.54 MB Allocatable yes PE Size (KByte) 4096 Total PE 1428053 Free PE 1067746 Allocated PE 360307 PV UUID sFxRYg-Ua60-zpMT-DMqo-tpD5-d24W-qfW31p ensenada:~# lvcreate -n test -L 74G main Logical volume "test" created ensenada:~# pvs PV VG Fmt Attr PSize PFree /dev/sda3 main lvm2 a- 5.45T 4.00T ensenada:~# lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert root main -wi-ao 7.45G test main -wi-a- 74.00G voldemort main -wi-ao 1.37T ensenada:~# lvremove /dev/main/test Do you really want to remove active logical volume "test"? [y/n]: y Logical volume "test" successfully removed ensenada:~# lvcreate -n test -L 75G main device-mapper: reload ioctl failed: Invalid argument Aborting. Failed to activate new LV to wipe the start of it. LV main/test in use: not deactivating Unable to deactivate failed new LV. Manual intervention required. ensenada:~# lvremove /dev/main/test Do you really want to remove active logical volume "test"? [y/n]: y Logical volume "test" successfully removed ensenada:~# lvcreate -n test -L 74G main Logical volume "test" created ensenada:~# lvremove /dev/main/test Do you really want to remove active logical volume "test"? [y/n]: y Logical volume "test" successfully removed ensenada:~#
Please, someone, put me out of my misery - this is driving me nuts!
Extra info:
ensenada:~# uname -a Linux ensenada 2.6.26-2-amd64 #1 SMP Fri Aug 14 07:12:04 UTC 2009 x86_64 GNU/Linux ensenada:~# dpkg -l lvm2 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=====================-=====================-========================================================== ii lvm2 2.02.39-7 The Linux Logical Volume Manager ensenada:~# ensenada:~# cat /etc/debian_version 5.0.1
(Erm, just remembered that I haven't got comments enabled at the mo, so if you've got fixes, please mail me! iDunno@sommitrealweird.co.uk - thanks!)