Hi everyone, I use Fedora 17.
I used gparted to created a dev/sdb2 partition. I then used vgextend to extend the volume group. The output of vgdisplay shows the condition of my volume group:
--- Volume group ---
VG Name vg_data
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 86
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 2
Act PV 2
VG Size 297.59 GiB
PE Size 32.00 MiB
Total PE 9523
Alloc PE / Size 6249 / 195.28 GiB
Free PE / Size 3274 / 102.31 GiB
VG UUID AR8t1M-VnYV-TIFC-tCzi-ZeO6-gFUd-SZo2Kw
Clearly there is enough free space for me to create additional logical volumes.
I want to make a new one called lv_windows7.
When I execute this command, I get the following
[root@speed-daemon ~]# lvcreate -L 99G -n lv_windows7 vg_data
device-mapper: resume ioctl on failed: Invalid argument
Unable to resume vg_data-lv_windows7 (253:4)
Failed to activate new LV.
Attempted to decrement suspended device counter below zero.
This is quite odd. And when I look up in the logs I see:
Sep 30 12:34:41 speed-daemon kernel: [ 1216.060250] device-mapper: table: 253:4: sdb1 too small for target: start=409536512, len=2883584, dev_size=409600000
For some odd reason, the kernel is not realizing that it should put the new space on /dev/sdb2. I installed system-config-lvm and it shows me that the volume group consists of /dev/sdb1 and /dev/sdb2. I can cheat and use this utility to make the new lvm but I works as a systems administrator so I like to learn via command line. Can someone tell me what I am doing wrong?