1827376 Members
4107 Online
109963 Solutions
New Discussion

problem with lvcreate

 
SOLVED
Go to solution
Vipin Singhal
Super Advisor

problem with lvcreate

# lvcreate -L 18000 -n pmor_data_dat02 /dev/vg72
lvcreate: The logical volume "/dev/vg72/pmor_data_dat02" could not be created:
No such device or address

I am trying to make a LV of 18GB name pmor_data_dat02 in my VG72.

but it is not creating,
please suggest
thanks
vipin
14 REPLIES 14
Muthukumar_5
Honored Contributor

Re: problem with lvcreate

Can you check these?

# strings /etc/lvmtab | grep vg72
# vgdisplay -v /dev/vg72

Syntax is correct. May be a problem with the vg.

hth.
Easy to suggest when don't know about the problem!
Luk Vandenbussche
Honored Contributor

Re: problem with lvcreate

Hi,

Is your vg72 created succesfully now?
Please send the output of

vgdisplay -v vg72
ls -l /dev/vg72
Vipin Singhal
Super Advisor

Re: problem with lvcreate

#strings /etc/lvmtab
/dev/vg72
/dev/dsk/c26t6d0
/dev/dsk/c29t6d0

# vgdisplay -v /dev/vg72
--- Volume groups ---
VG Name /dev/vg72
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 9215
VGDA 2
PE Size (Mbytes) 4
Total PE 9214
Alloc PE 0
Free PE 9214
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


--- Physical volumes ---
PV Name /dev/dsk/c26t6d0
PV Name /dev/dsk/c29t6d0 Alternate Link
PV Status unavailable
Total PE 9214
Free PE 9214
Autoswitch On


Yes, you are right,
it was showing the status of PV-
PV Status unavailable

what should i do

Vipin Singhal
Super Advisor

Re: problem with lvcreate

# ls -l /dev/vg72
total 0
crw-r--r-- 1 root sys 64 0x2c0000 Nov 16 03:28 group
Luk Vandenbussche
Honored Contributor

Re: problem with lvcreate

Hi,

I would restart completly

vgchange -a n vg72
vgexport vg72
mkdir /dev/vg72
mknod /dev/vg72/group c 64 0x2c0000
pvcreate -f /dev/rdsk/c26t6d0
vgcreate vg72 /dev/dsk/c26t6d0
vgextend vg72 /dev/dsk/c29t6d0
lvcreate -L 18000 -n pmor_data_dat02 /dev/vg72

Vipin Singhal
Super Advisor

Re: problem with lvcreate

# pvdisplay /dev/dsk/c26t6d0
--- Physical volumes ---
PV Name /dev/dsk/c26t6d0
PV Name /dev/dsk/c29t6d0 Alternate Link
VG Name /dev/vg72
PV Status unavailable
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 9214
Free PE 9214
Allocated PE 0
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

root@dipper:[/root]
# pvdisplay /dev/dsk/c29t6d0
Device file path "/dev/dsk/c29t6d0" is an alternate path
to the Physical Volume. Using Primary Link "/dev/dsk/c26t6d0".
--- Physical volumes ---
PV Name /dev/dsk/c26t6d0
PV Name /dev/dsk/c29t6d0 Alternate Link
VG Name /dev/vg72
PV Status unavailable
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 9214
Free PE 9214
Allocated PE 0
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

Please suggest what shoild i do to make PV- available?
thanks
vipin
Steven E. Protter
Exalted Contributor

Re: problem with lvcreate

Hello Vipin,

Make sure all disks show up as claimed in ioscan -fnC disk

I feel one of the physical volumes may be unavailable.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vipin Singhal
Super Advisor

Re: problem with lvcreate

this is output of command #ioscan -fnC disk
disk 931 1/0/8/1/0.21.15.0.0.6.0 sdisk CLAIMED DEVICE DGC CX700WDR10
/dev/dsk/c26t6d0 /dev/rdsk/c26t6d0
disk 932 1/0/8/1/0.21.47.0.0.6.0 sdisk CLAIMED DEVICE DGC CX700WDR10
/dev/dsk/c29t6d0 /dev/rdsk/c29t6d0

Should i run these commands again?
#vgchange -a n vg72
#vgexport vg72
#mkdir /dev/vg72
#mknod /dev/vg72/group c 64 0x2c0000
#pvcreate -f /dev/rdsk/c26t6d0
#vgcreate vg72 /dev/dsk/c26t6d0
#vgextend vg72 /dev/dsk/c29t6d0
#lvcreate -L 18000 -n pmor_data_dat02 /dev/vg72

Please suggest.
thanks
vipin

Luk Vandenbussche
Honored Contributor

Re: problem with lvcreate

Hi Vipin,

Since nothing crucial is in vg72 yet, I should restart to see if you have any other errors during the creation of the volumegroup.
Muthukumar_5
Honored Contributor

Re: problem with lvcreate

Do this:

# pvchange -z y /dev/dsk/c26t6d0
# pvdisplay /dev/dsk/c26t6d0

hth.

Easy to suggest when don't know about the problem!
Vipin Singhal
Super Advisor

Re: problem with lvcreate

# pvchange -z y /dev/dsk/c26t6d0
pvchange: Physical volume "/dev/dsk/c26t6d0" could not be changed:
No such device or address

what should i do
Muthukumar_5
Honored Contributor
Solution

Re: problem with lvcreate

I hope you are getting problems more and more. Just do the Luk's steps again. Restart the steps again. May be the problem with vg creation.

hth.
Easy to suggest when don't know about the problem!
Luk Vandenbussche
Honored Contributor

Re: problem with lvcreate

Vipin,

Please recreate the volumegroup to see if there are any other errors.
Vipin Singhal
Super Advisor

Re: problem with lvcreate

Thanks Luk & everybody,

i did these commands again
#vgchange -a n vg72
#vgexport vg72
#mkdir /dev/vg72
#mknod /dev/vg72/group c 64 0x2c0000
#pvcreate -f /dev/rdsk/c26t6d0
#vgcreate vg72 /dev/dsk/c26t6d0
#vgextend vg72 /dev/dsk/c29t6d0
#lvcreate -L 18000 -n pmor_data_dat02 /dev/vg72

now i am able to create the LV

thanks again to everybody
vipin