[linux-lvm] expanding physical disks

Hugo Lombard hal at mailgate.net
Fri Jun 15 14:11:51 UTC 2001

On Wed, Jun 13, 2001 at 03:20:32PM +0200, Luca Berra wrote:
> On Wed, Jun 13, 2001 at 01:10:42AM -0600, Andreas Dilger wrote:
> > Brian Murrell writes:
> > > How does LVM deal with physical disks that can get bigger or smaller,
> > > such as a hardware RAID device?  What happens to a PV on a hardware
> > > RAID-5 device that is presented to the system as a single (say scsci)
> > > target when you put a few more disks in it and tell the hardware raid
> > > device to add them to the given (scsi) target that a PV was created
> > > on?  (what a mouthful).
> > 
> > Doesn't work at this time.  LVM will only see what was originally there
> > at the time pvcreate was run (or possibly vgcreate/vgextend).
> At the moment your only chance is to create partitions on it and use those
> partitions as PVs

Just a thought, a bit off topic perhaps.

If you're using LVM primarily as a way to make it possible for you to
expand your storage space on-line (and on-mount-point) wouldn't it be
"easier" to _just_ use the RAID? i.e. expand the RAID volume on the
controller, so basically the "disk" is bigger now, and the just "grow"
your partition, extend your filesystem, and that's it?

It's a thought I've been toying with since seeing the IBM ServeRAID's
capability to grow volumes.  I've not attempted any testing though, so
this is pure speculation...

(PS: All this means nothing if you're using LVM for it's other
features, like striping, but then the RAID can do that too...)

"You show me an American who can keep his mouth shut and I'll eat him."
-- Newspaperman from Frank Capra's _Meet_John_Doe_
 Hugo Lombard                    Infoline (Pty) Ltd
 System Administrator

More information about the linux-lvm mailing list