Operating System - HP-UX
1756724 Members
2388 Online
108852 Solutions
New Discussion юеВ

Re: Creating a Distributed logical volume

 
SOLVED
Go to solution
Ganesan R
Honored Contributor

Re: Creating a Distributed logical volume

Hi,

You can extend upto maximum of 21392MB since you have only 1337PE which gives 1337*16MB=>21392MB

#lvextend -L 21392 /dev/vgrblrel/lnprbl
Best wishes,

Ganesh.
Sudhir Junonikar
Occasional Advisor

Re: Creating a Distributed logical volume



Hi Ganesan,

Since the lv is distributed on both the disks I should have (13337*2)*2 size lv.

Regards

Sudhir
Ganesan R
Honored Contributor

Re: Creating a Distributed logical volume

Hi Sudhir,

You are right. You can extend upto maximum of 21392MB*2 =>42784MB

I forgot to add the size of second disk.
Best wishes,

Ganesh.
Sudhir Junonikar
Occasional Advisor

Re: Creating a Distributed logical volume


Hi!

With lvcreat command i can only able to create lv of 32MB size for any other size it is giving error" Not enough PE's are available.

Created 32MB LV can be extended to single 32MB size further not even 64MB is allowed.

I am unable to understand why it is happening so, because there are enough free PE's are available on both physical volumes.

Logs are as follows
/ #lvcreate -D y -s g -L 40000 -n lnprbl /dev/vgrblrel
Logical volume "/dev/vgrblrel/lnprbl" has been successfully created with
character device "/dev/vgrblrel/rlnprbl".
lvcreate: Not enough free physical extents available.
Logical volume "/dev/vgrblrel/lnprbl" could not be extended.
Failure possibly caused by PVG-Strict or Distributed allocation policies.
/ #

/ #lvcreate -D y -s g -L 64 -n lnprbl /dev/vgrblrel
Logical volume "/dev/vgrblrel/lnprbl" has been successfully created with
character device "/dev/vgrblrel/rlnprbl".
lvcreate: Not enough free physical extents available.
Logical volume "/dev/vgrblrel/lnprbl" could not be extended.
Failure possibly caused by PVG-Strict or Distributed allocation policies.

/ #lvcreate -D y -s g -L 32 -n lnprbl /dev/vgrblrel
Logical volume "/dev/vgrblrel/lnprbl" has been successfully created with
character device "/dev/vgrblrel/rlnprbl".
Logical volume "/dev/vgrblrel/lnprbl" has been successfully extended.
Volume Group configuration for /dev/vgrblrel has been saved in /etc/lvmconf/vgrb
lrel.conf


/ #lvextend -L 256 /dev/vgrblrel/lnprbl
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgrblrel/lnprbl" could not be extended.
Failure possibly caused by PVG-Strict or Distributed allocation policies.

/ #lvextend -L 64 /dev/vgrblrel/lnprbl
Logical volume "/dev/vgrblrel/lnprbl" has been successfully extended.
Volume Group configuration for /dev/vgrblrel has been saved in /etc/lvmconf/vgrb
lrel.conf.

Regards

Sudhir


Sudhir Junonikar
Occasional Advisor

Re: Creating a Distributed logical volume

Hi All

Thanks all for your support, I have created distributed logical volume of size 40 GB.

I have created LV of 32 MB size then extended this LV with the help of a script with 32MB size increment step.


Regards

Sudhir