- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /dev/vg00 deleted - no mapfile
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:02 AM
01-23-2009 11:02 AM
/dev/vg00 has been accidently deleted.
Is it possible to recover from this error.
I have a vg00.conf in /etc/lvmconf but no map file.
I am at the bcheckrc single user prompt.
(bcheckrc)#ls -l /dev/vg00
total 0
crw-rw-rw- 1 root root 64 0x000000 Jan 23 18:13 group
thanks so much for any advice
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:12 AM
01-23-2009 11:12 AM
SolutionYou can try vgscan or vgimport (even without a mapfile).
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:15 AM
01-23-2009 11:15 AM
Re: /dev/vg00 deleted - no mapfile
Hi
thanks for getting back to me.
all the files in /dev/vg00 are missing.
I ran :
mkdir /dev/vg00
mknod
so the only files in /dev/vg00 is :
0x000000 Jan 23 18:13 group
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:19 AM
01-23-2009 11:19 AM
Re: /dev/vg00 deleted - no mapfile
You could try simply making the missing device files. For example:
# cd /dev/vg00
# mknod lvol1 b 64 0x000001
# mknod rlvol1 c 64 0x000001
...repeating for every logical volume (8 or more) with the appropriate minor numbers.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:20 AM
01-23-2009 11:20 AM
Re: /dev/vg00 deleted - no mapfile
example:
vgimport -v /dev/vg00 /dev/dsk/c0t1d0
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:22 AM
01-23-2009 11:22 AM
Re: /dev/vg00 deleted - no mapfile
System not yet rebooted, right ? May be it is enough to recreate special file in /dev/vg00. For exemple : "mknod /dev/vg00/lvol1 b 64 0x000001" and mknod /dev/vg00/lvol1 c 64 0x000001"
Do it for each missing lvol and change minor number to 0x000002, 0x000003 and so on ...
If you have any doubt have a look in other directories like /dev/vg*
In vg00, lvol are named lvol1 to lvol8. For others lvol it depends. I suppose that "vgdisplay -v vg00" still works, so it can give you some informations. Also have a look at /etc/fstab, it will give you some others informations to find lvol's names.
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:26 AM
01-23-2009 11:26 AM
Re: /dev/vg00 deleted - no mapfile
I don't think so.
>>
I am at the bcheckrc single user prompt.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:34 AM
01-23-2009 11:34 AM
Re: /dev/vg00 deleted - no mapfile
Anyway, I was leaving office. I guess TMcB is in better hands with Torsten than mine's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:37 AM
01-23-2009 11:37 AM
Re: /dev/vg00 deleted - no mapfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:53 AM
01-23-2009 11:53 AM
Re: /dev/vg00 deleted - no mapfile
if u have forgot what OVs were there in the root vG vg00 then do the following. it can be assumed that u have a valid LVM Conf Backup file for the root VG vg00 in the /etc/lvmconf/vg00.conf
just give the command as
1)
#vgcfgrestore -l -n /dev/vg00
this shud show as for example
/dev/dsk/c5t6d0 ---- disk1
/dev/dsk/c5t5d0 -- disk2
/dev/dsk/c5t4d0 -- disk3
/dev/dsk/c5t3d0 -- disk4
this should show what PVs were the part of the VG vg00
reboot the system in LVM Maintenance mode.
ISL> hpux -lm
then
#vgexport /dev/vg00
#mkdir /dev/vg00
#mknod /dev/vg00/group c 0x000000
#vgimport /dev/vg00
#vgchange -a y vg00
#lvrmboot -r /dev/vg00
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -d /dev/vg00/lvol2
#lvlnboot -v
#vi /stand/bootconf
put the entry for this disk in here as
l
l
#setboot -p
boot the system normally
#shutdown -ry 00
on new boot
u may get the system running
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 11:57 AM
01-23-2009 11:57 AM
Re: /dev/vg00 deleted - no mapfile
to know about waht disks were a part of vg00
u can also run the vgcfgrestore command in the following manner depending on that the VG vg00 LVM Conf backup file that is as /etc/lvmconf/vg00.conf is okay and that shud be OK.
#vgcfgrestore -l -n vg00
or
#vgcfgrestore -l -f /etc/lvmconf/vg00.conf /dev/vg00
Wreagards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 12:00 PM
01-23-2009 12:00 PM
Re: /dev/vg00 deleted - no mapfile
I
recreated all the files under /dev/vg00 using, :
mknod lvol1 b 64 0x000001
mknod rlvol1 c 64 0x000001
now when I reboot I get eror below
lvlnboot: Could not find root lv related info to create /stand/rootconf file
: ioinit: Rebooting the system because /etc/ioconfig and /stand/ioconfig files are inconsistent
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 12:03 PM
01-23-2009 12:03 PM
Re: /dev/vg00 deleted - no mapfile
remeber that even if u have not a map file for a VG, u can still import the VG and get that running if u know the list of the PVs in that VG.
and if u have forgot that list of PVs also u can get that if u have an intact VG conf file for that VG, generally kept as /etc/lvmconf/
and u can get this by
#vgcfgrestore -l -n /dev/
or
by
#vgcfgrestore -l -f /etc/lvmconf/
-l option of vgcfgrestore is for listing the PVs and some other informations ... do not worry.
this list u the PVs which u can use witht the vgimport command.
Please refer to the man pages of vgcfgrstore(1M) and vgimport(1M) for the further details.
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 12:06 PM
01-23-2009 12:06 PM
Re: /dev/vg00 deleted - no mapfile
please read all the three posts that i have made before u are planning to do anything .. and after that decide...
root vg can be modified imported , exported only in the LVM MAINTENANCE MODE.
I again say please read all my three erlier posts.
regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 12:19 PM
01-23-2009 12:19 PM
Re: /dev/vg00 deleted - no mapfile
read the post of Torsten that u can vgimport root vg even if u have no map file.
but the vgexport and vgimport that is rewd to solve this scenario can be done only in LVM Maintenance mode.
Please reboot in LVM maintenance mode.
and post the errors that u get in the LVM Maintenance mode.
The error that u are getting is due to the fact that u have those lvol files created.
the /stand/ioconfig file is intact but the /etc/ioconfig is not valid.
u will need to recreate but do not worry fpr that
first boot the system in LVM Maintenance mode and tell me what u can see the system says.
Regards
Sujit
regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 12:29 PM
01-23-2009 12:29 PM
Re: /dev/vg00 deleted - no mapfile
If not, tell us your server model (HP9000 or Integrity) and we can guide you ...
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 12:34 PM
01-23-2009 12:34 PM
Re: /dev/vg00 deleted - no mapfile
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 12:37 PM
01-23-2009 12:37 PM
Re: /dev/vg00 deleted - no mapfile
congrats and great news friend... well done indeed ....
REgards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 01:00 PM
01-23-2009 01:00 PM
Re: /dev/vg00 deleted - no mapfile
If you don't mind, tell everybody what you did exactly to fix it. It is not clear that it was the LVM maintenance mode or a simple reboot to sync the ioconfig files.
Without a confirmed solution, this entire thread with all these great answers is totally useless.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2009 01:07 PM
01-23-2009 01:07 PM
Re: /dev/vg00 deleted - no mapfile
This shall be great indeed if u can share waht actually went to solve the problem.
Reply awaited...
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2009 05:50 AM
01-24-2009 05:50 AM
Re: /dev/vg00 deleted - no mapfile
one correction : please in my earlier posts
#vgcfgrestore -l -n vg00
#vgcfgrestore -l -f /etc/lvmconf/vg00.conf
list the PVs that are the part of the VG vg00.
also booting in the LVM Maint mode u need to approcah this prob with the following steps.
when i LVM Maint Mode:
STEP1:
#vgcfgrestore -l -n vg00
or
#vgcfgrestore -l -f /etc/lvmconf/vg00.conf
to get the list of the PVs that are the part of the root VG named vg00.
Follow this by
STEP2:
#vgexport /dev/vg00
#mkdir /dev/vg00
#mknod /dev/vg00/group c 64 0x000000
#vgimport /dev/vg00
#vgchange -a y vg00
#vgcfgbackup vg00
#lvlnboot -R
#lvlnboot -v
Perform a normal reboot:
#shutdown -ry 00
ur system shud comeup normally
Regard
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2009 07:43 AM
01-24-2009 07:43 AM
Re: /dev/vg00 deleted - no mapfile
@Sujit: This shall be great indeed if u can share waht actually went to solve the problem.
You're not adding anything but spam and a hunt for points. TTr already asked for this, in fact, after you congratulated the OP for his/her closure: "congrats and great news friend... well done indeed ...."
By the way, "u" is an English letter. "You" is the English pronoun.
...JRF...