Operating System - HP-UX
1834465 Members
2839 Online
110067 Solutions
New Discussion

How to find out disable lv's in vg.

 
sathish subramani
Occasional Advisor

How to find out disable lv's in vg.

when we type vgdisplay -v vg04 it is showing that there are two current lvs available and open lv is zero.

It occur due to we have accidently deleted an LV source file.so we are unable to see the lv's .Kindly provide an solution for this.

This is an screen shot of output:

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


--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 17499
Free PE 17424
Autoswitch On
10 REPLIES 10
Dave Johnson_1
Super Advisor

Re: How to find out disable lv's in vg.

Please post the results of running the command "ls -l /dev/vg04"
Doug O'Leary
Honored Contributor

Re: How to find out disable lv's in vg.

Hey;

In addition to posting the ls of /dev/vg04, also post:

mount | grep vg04
ll /etc/lvmconf/vg04*

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Jim Walls
Trusted Contributor

Re: How to find out disable lv's in vg.


If you have inadvertently deleted the LVs then it may be possible to recreate them. See this thread:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1444981

Raj D.
Honored Contributor

Re: How to find out disable lv's in vg.

Sathish,

Check this out for:
" How to find out disable lv's in vg." :

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1446049

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Tim Nelson
Honored Contributor

Re: How to find out disable lv's in vg.

if the volume group can be deactivated then a vgexport and vgimport will recreate as well.

vgchange -a n /dev/vg04
vgexport -m /tmp/vg04.map
vgimport -m /tmp/vg04.map /dev/vg04
sathish subramani
Occasional Advisor

Re: How to find out disable lv's in vg.

Doug,

In this attachment,the specified command output is available in the screen shot and please check on this.

Sathish
Torsten.
Acclaimed Contributor

Re: How to find out disable lv's in vg.

The device files for the lvols are missing, re-create them:

mknod /dev/vg04/lvol1 b 64 0x040001
mknod /dev/vg04/rlvol1 c 64 0x040001

mknod /dev/vg04/lvol2 b 64 0x040002
mknod /dev/vg04/rlvol2 c 64 0x040002


and check with

vgdisplay -v vg04

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sathish subramani
Occasional Advisor

Re: How to find out disable lv's in vg.

Dear all,

The above solution provided was worked.

Thank u to everyone for your helpful solution.


Sathish

Doug O'Leary
Honored Contributor

Re: How to find out disable lv's in vg.

Heh:

Torsten stole my thunder! His post was the exact reason I was looking for the command output - to recreate the lv devices manually.

Glad to hear things are working again...

Doug O'Leary

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Torsten.
Acclaimed Contributor

Re: How to find out disable lv's in vg.

Good news!



Read this too:

http://forums.itrc.hp.com/service/forums/helptips.do?#33

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!