Am I making some stupid mistake here? I want to extend the space on /dev/vg1/mysql on physical volume /dev/sdb4
The command I tried is:
[root@cms-db root]# lvextend -L +50G /dev/vg1/mysql /dev/sdb4 lvextend -- extending logical volume "/dev/vg1/mysql" to 100 GB lvextend -- not enough free/allocatable physical extents to extend logical volume "/dev/vg1/mysql"
But pvdisplay says there should be enough PE there:
[root@cms-db root]# pvdisplay /dev/sdb4 --- Physical volume --- PV Name /dev/sdb4 VG Name vg1 PV Size 108.92 GB [228428235 secs] / NOT usable 4.25 MB [LVM: 236 KB] PV# 1 PV Status available Allocatable yes Cur LV 2 PE Size (KByte) 4096 Total PE 27883 Free PE 18358 Allocated PE 9525 PV UUID C7C5NM-PpaJ-hSbj-jPqn-f1TF-mvuQ-M7a70T
lvdisplay says the following:
[root@cms-db root]# lvdisplay /dev/vg1/mysql --- Logical volume --- LV Name /dev/vg1/mysql VG Name vg1 LV Write Access read/write LV Status available LV # 1 # open 1 LV Size 50 GB Current LE 12800 Allocated LE 12800 Stripes 2 Stripe size (KByte) 16 Allocation next free Read ahead sectors 10000 Block device 58:0
According to the FAQ I should not specify the physical volume, and when I tried that it worked, but now O don't know where my space is allocated.
Ron Arts
-- Netland Internet Services bedrijfsmatige internetoplossingen
http://www.netland.nl Kruislaan 419 1098 VA Amsterdam info: 020-5628282 servicedesk: 020-5628280 fax: 020-5628281
Let's split up, we can do more damage that way.
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature