Operating System - HP-UX
1833883 Members
1610 Online
110063 Solutions
New Discussion

accidentally deleted /dev/vg01/group file

 
SOLVED
Go to solution
dattu_1
Regular Advisor

accidentally deleted /dev/vg01/group file

hi guys,
i have accidentally deleted dev/vg01/group special file now what should i do ???
i do have map file of that vg should i recretae group file and then do vgimport on it...???
2 REPLIES 2
Peter Godron
Honored Contributor
Solution

Re: accidentally deleted /dev/vg01/group file

Hi,
please read:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=620723

You only would have to do half the things.
Or you could use vgimport -m with your mapfile.

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
Bill Hassell
Honored Contributor

Re: accidentally deleted /dev/vg01/group file

On a running system, the vg device files are already open and the details (minor number) are in RAM. So you simply recreate the device file:

mknod /dev/vg01 c 64 0x010000 /dev/vg01/group

This is the same command you used to create vg01 (or when you used sam to create the vg). Since the device file info is in RAM, the replaced device file is unnoticed by the OS and you can continue running. No need for vgimport

Now this assumes that the system is working OK. If you have done some additional LVM commands and deactivated the volume, create the group file as above and the activate vg01.


Bill Hassell, sysadmin