- 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
Discussions
Discussions
Forums
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
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