linux-lvm digest, Vol 1 #118 (MSG 5)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · On Sun, Apr 01, 2001 at 07:32:51PM -0400, [email protected] wrote:
Quoted 4 lines
I'm trying to add a seventh logical volume on a two-disk, striped volume
group. vgdisplay shows the following:
Quoted 8 lines
Quoted 5 lines
I've redone this system, and the only difference is that I'm striping this
time. I was capable of creating more logical volumes when I wasn't striping. Also, I could create a seventh volume using 3900MB, but not 4000MB.When you create a striped LV of 4g you will need 2g free on both disks. You can check this with pvscan.
Patrick, thanks for responding,
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/hdb2" of VG "vg0" [4.75 GB / 44 MB free]
pvscan -- ACTIVE PV "/dev/hdd2" of VG "vg0" [9.49 GB / 4.78 GB free]
pvscan -- total: 2 [14.25 GB] / in use: 2 [14.25 GB] / in no VG: 0 [0]
Since I only have 44 MB free on hdb2, is that the size limit of any new additional striped volumes I can create?
Can I create unstriped volumes with the balance of the space left on the volume group?
Can I resize existing striped volumes and make them larger, and if yes, am I limited to a maximum of 44MB as shown by pvscan?
Quoted 2 lines · On Tue, Apr 03, 2001 at 11:21:38AM -0400, [email protected] wrote:
Patrick, thanks for responding,
No problem, that's what we're here for :-)
Quoted 7 lines
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/hdb2" of VG "vg0" [4.75 GB / 44 MB free]
pvscan -- ACTIVE PV "/dev/hdd2" of VG "vg0" [9.49 GB / 4.78 GB free]
pvscan -- total: 2 [14.25 GB] / in use: 2 [14.25 GB] / in no VG: 0 [0]Since I only have 44 MB free on hdb2, is that the size limit of any new additional striped volumes I can create?
'fraid so. If you need striping then you must have the same amount of space on all the available volumes, otherwise it can't stripe effectively.
Quoted 2 lines
Can I create unstriped volumes with the balance of the space left on the volume group?
Oh yes, a linear (normal) lv will span the remaining space as required so you can have a 4.78G+44M LV if you want one.
Quoted 2 lines
Can I resize existing striped volumes and make them larger, and if yes, am I limited to a maximum of 44MB as shown by pvscan?
Again, I'm afraid so as it stands.
What you could do is to use pvmove to copy some physical extents from hdb2 to hdd2 so that would free up some space you could use for your striped volume. Read the man page for pvmove carefully and I recommend you unmount your volumes before doing this as there is a lockup bug in pvmove that shows up when the volumes are busy.
patrick