Operating System - HP-UX
1837390 Members
3227 Online
110116 Solutions
New Discussion

Re: how to retrive volume group ( vg00)

 
sandeepdaphal
Occasional Contributor

how to retrive volume group ( vg00)

I have deleted vg00 by mistack form dev directory (/dev/vg00) how to retrive vg00 volume group.

I am still login in that system.( i have not yet restarted system )
8 REPLIES 8
Davis Paul
Valued Contributor

Re: how to retrive volume group ( vg00)

Hi Sandeep,
Do you have any backup? you can restore it using ignite ux.
A. Clay Stephenson
Acclaimed Contributor

Re: how to retrive volume group ( vg00)

If all you did is rm'ed the /dev/vg00 directory and the device nodes beneath it then it's rather easy and NO Ignite or vgscan is needed.

1) cd /dev
2) mkdir vg00
3) chmod 755 vg00
4) cd vg00
5) mknod group c 64 0x000000
6) For each N where N = 1 to 9
mknod rlvolN c 64 0x00000N
mknod lvolN b 64 0x00000N

If you have more than 9 LVOL's then use the next hexadecimal digits, e.g lvol10 uses 0x00000a, lvol11 uses 0x00000b, ...

If it ain't broke, I can fix that.
sandeepdaphal
Occasional Contributor

Re: how to retrive volume group ( vg00)

No i have not taken backup.Is there any alternet way.please tell me.

Thanks
rajdev
Valued Contributor

Re: how to retrive volume group ( vg00)

Hi Sandeep,

Since its vg00 i think as Clay mentioned you should be able to do mknod and create the group file and then the lvols and rlvols.
I too think this should be the best way, do you have any ls -l listing by any chance that also will be use full.

you can use bdf , to find out how many lvols are there etc...

see the ls -l of /dev/vg00 from one of my server. you have to create vg00 first and then use mknod as given by Clay to create the device files.

server11i> cd /dev/vg00
server11i> ls -l
total 0
crw-r----- 1 root sys 64 0x000000 Mar 21 2006 group
brw-r----- 1 root sys 64 0x000001 Jun 28 15:14 lvol1
brw-r----- 1 root sys 64 0x000002 Mar 21 2006 lvol2
brw-r----- 1 root sys 64 0x000003 Mar 21 2006 lvol3
brw-r----- 1 root sys 64 0x000004 Mar 21 2006 lvol4
brw-r----- 1 root sys 64 0x000005 Mar 21 2006 lvol5
brw-r----- 1 root sys 64 0x000006 Mar 21 2006 lvol6
brw-r----- 1 root sys 64 0x000007 Mar 21 2006 lvol7
brw-r----- 1 root sys 64 0x000008 Mar 21 2006 lvol8
brw-r----- 1 root sys 64 0x00000a Aug 21 09:40 pctest
crw-r----- 1 root sys 64 0x000001 Mar 21 2006 rlvol1
crw-r----- 1 root sys 64 0x000002 Mar 21 2006 rlvol2
crw-r----- 1 root sys 64 0x000003 Mar 21 2006 rlvol3
crw-r----- 1 root sys 64 0x000004 Mar 21 2006 rlvol4
crw-r----- 1 root sys 64 0x000005 Mar 21 2006 rlvol5
crw-r----- 1 root sys 64 0x000006 Mar 21 2006 rlvol6
crw-r----- 1 root sys 64 0x000007 Mar 21 2006 rlvol7
crw-r----- 1 root sys 64 0x000008 Mar 21 2006 rlvol8
crw-r----- 1 root sys 64 0x00000a Aug 21 09:40 rpctest
crw-r----- 1 root sys 64 0x000009 Sep 21 22:22 rtest
brw-r----- 1 root sys 64 0x000009 Sep 21 22:22 test


Regards,
RD
sandeepdaphal
Occasional Contributor

Re: how to retrive volume group ( vg00)

I cerat vg00 directory in dev directory & under vgoo create rlvol1to,rlvol9 & lvol1 to lvol9 . butu after rebooting system not booting.
whiteknight
Honored Contributor

Re: how to retrive volume group ( vg00)

sandeep,

may be you accidentally removed /dev and below? if really unable to boot, recover using ignite-ux will be last resort.

WK
Problem never ends, you must know how to fix it
rajdev
Valued Contributor

Re: how to retrive volume group ( vg00)

Hi Sandeep,

Looks like you have deleted some other critical files also.

what is the error you are getting when you boot ?
Have you tried booting to single user or maintanence mode ?

if it boots in -lm mode, then you can still try to recover the system ....


Regards,
RD
Sp4admin
Trusted Contributor

Re: how to retrive volume group ( vg00)

Sandeep,

I have to agree with Sandman. if you delete the directories under /dev. You would most likly need to use a ignite tape to recovery the system.

sp,