System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create a Logical Volume

 
marvik
Regular Advisor

Unable to create a Logical Volume

Dear All,
I am unable to create a LVOL on Linux.

vgdisplay -v vg00 shows::

Loaded external locking library liblvm2clusterlock.so
Using volume group(s) on command line
Finding volume group "vg00"
--- Volume group ---
VG Name vg00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 13
VG Access read/write
VG Status resizable
MAX LV 0

lvcreate -L 3G -n lvcrash vg00
Error locking on node g1pdwap13: Volume group for uuid not found: zbMvwQsDfdtewXed5nuHCTzLnS0eTy1p58qjMbHgJMzCf6RSuWICbpitXX3LqyEp
Failed to activate new LV.

LVOL is created but is unavailab


Red Hat Enterprise Linux ES release 4 (Nahant Update 5)le.
I tried doing

root@pdwap13:~# lvchange -ay /dev/vg00/lvcrash
Error locking on node g1pdwap13: Volume group for uuid not found: zbMvwQsDfdtewXed5nuHCTzLnS0eTy1p58qjMbHgJMzCf6RSuWICbpitXX3LqyEp

Any suggestion are highly appreciated.

Thanks
MArvik


5 REPLIES
TY 007
Honored Contributor

Re: Unable to create a Logical Volume

Hello MArvik,

Boot into Rescue Mode.

# vgchange -a n vg00
# vgchange -u vg00
# vgchange -a y vg00
# vgdisplay -v vg00
# mount -a
# df

Thanks
Ivan Ferreira
Honored Contributor

Re: Unable to create a Logical Volume

You are using cluster locking, then you need to start the clvmd service, or disable cluster locking if this host is not part of a cluster.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
marvik
Regular Advisor

Re: Unable to create a Logical Volume

This problem was there something to be done with the update it was using.Once the Red hat version was updated all went well.Thanks for ur suggestions

Marvik
marvik
Regular Advisor

Re: Unable to create a Logical Volume

Redhat version updated
sandeep mathur
Respected Contributor

Re: Unable to create a Logical Volume


lvcreate -n logical_volume_one --size 255G volume_group_one
Instead of specifying the LV size in GB we could also specify it in terms of logical extents. First we use vgdisplay to determine the number of PEs in the volume_group_one:


vgdisplay volume_group_one | grep "Total PE"

which returns


Total PE 65536

Then the following lvcreate command will create a logical volume with 65536 logical extents and fill the volume group completely: