kadafax <kadafax@gmail.com> wrote:
Quite there: the new size is reflected...but the disks
(I've got two virtual disks from the SAN, who are seen like
scsi disk by the system) are now described as /dev/sdd and
/dev/sde (initialy /dev/sdb and sdc)
Aww crap. Yeah, forgot to mention you might need to release
the previous device assignments.
how to release device assignments? I didn't find any clue on google.
(below output from a "fdisk -l", the disc which grew is
initialy sdb).
And a "pvdisplay" do not see any new physical extents
available (perhaps I'm missing something on this, I'm
totally new from this and way long to be totally cool with
it)
Part of the problem might be because we probably should have
taken the volume group, and its physical extents, off-line
before doing the previous. I should have thought this
through more, sorry.
( come on :) )
Should I be worried about the "non-valid partition" table
message?
Nope. Next time you boot, it will self-correct. LVM is
self-contained, so the vgscan handles locating all volumes.
I can use the LV (mount and work with files), so I don't
know if it is a problem. Maybe the fact that there is no
partition table for fdisk is why I can't make it grow?
Hmmm, not sure. Again, maybe a vgscan would correct things?
I mean, maybe I should have create first one
partition (type LVM), then create a second one with the
extra size ?
Here is what I've done to create the logical volume:
---
[root@X ~]# pvcreate /dev/sdb
Well, that won't work because the volumes aren't there on
/dev/sdb.
[root@X ~]# vgcreate VG-B /dev/sdb
[root@X ~]# lvcreate -l 166911 VG-B -n LV-B
// Note: 166911 is the maximum number of physical extents
available
before the grow
[root@X ~]# mkfs.ext3 /dev/VG-B/LV-B
---
from there I could use the volume.
the above was what I initialy made to create the LV before adding a HD
to the SAN, before trying to expand it without having to reboot.