Volume expansion 2006-06-08 - By nathan r. hruby
Back On Thu, 8 Jun 2006, Collins, Kevin [MindWorks] wrote:
> No, you can't add a disk to a volume group without a pvcreate, which > will cause data loss. >
Oh goodness! I read that as /foo was already an LVM volume. Yes, indeedy I'm not aware of a way to switch a non-LVM volume into a LVM volume.
I guess I assumed that it was already because since it's a san LUN already, the easy way to do this on a normal filesystem would be to just grow the LUN, grow the partition with parted and then resize the filesystem and be done.
Well. I got up really early this morning so I'll take another wild ass guess at getting the volume into LVM becuase I'm too tired to shut up ;-)
- Add another 400GB LUN (maybe a Gb or two larger) - Make $new_lun a LVM volume - setup a md raid mirror, adding $old_lun and then add $new_lun to force a mirror from old to new - When done, stop services and break the mirror - Now extend the LVM as discussed
That may work, it may not, dunno, I can see a lot of room for label clash. I'll may play with this later tonight if I have time, as I'd be interested to see if it'll work.
-n
-- -- ---- ---- ---- ---- ---- ---- ---- ----- nathan hruby <nhruby@(protected)> uga enterprise information technology services core services support -- ---- ---- ---- ---- ---- ---- ---- ----- "In 1972 a crack commando unit was sent to prison by a military court for a crime they didn't commit...."
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|