Operating System - HP-UX
1833748 Members
2774 Online
110063 Solutions
New Discussion

delete /dev/vg00/lvol1 with mistake

 
James-F
New Member

delete /dev/vg00/lvol1 with mistake

hi,all!
in rx2620,hpux 11.23
i delete lvol1 in the directory /dev/vg00 with a mistake
[/dev/vg00]#ll
total 0
crw-rw-rw- 1 root root 64 0x000000 Jan 8 2009 group
brw-r----- 1 root root 64 0x000002 Jan 8 2009 lvol2
brw-r----- 1 root root 64 0x000003 Jan 8 2009 lvol3
brw-r----- 1 root root 64 0x000004 Jan 8 2009 lvol4
brw-r----- 1 root root 64 0x000005 Jan 8 2009 lvol5
brw-r----- 1 root root 64 0x000006 Jan 8 2009 lvol6
brw-r----- 1 root root 64 0x000007 Jan 8 2009 lvol7
brw-r----- 1 root root 64 0x000008 Jan 8 2009 lvol8
crw-r----- 1 root root 64 0x000001 Jan 8 2009 rlvol1
crw-r----- 1 root root 64
0x000002 Jan 8 2009 rlvol2
crw-r----- 1 root root 64 0x000003 Jan 8 2009 rlvol3
crw-r----- 1 root root 64 0x000004 Jan 8 2009 rlvol4
crw-r----- 1 root root 64 0x000005 Jan 8 2009 rlvol5
crw-r----- 1 root root 64 0x000006 Jan 8 2009 rlvol6
crw-r----- 1 root root 64 0x000007 Jan 8 2009 rlvol7
crw-r----- 1 root root 64 0x000008 Jan 8 2009 rlvol8

i have a vg00.map file ,so
i want want to vgexport/vgimport vg00 in maintenance mode,
when i reboot the system to enter the
HPUX> hpux -lm,
but i get the error message as follow:
System Panic:

panic: LVM: Configuration failure
Stack Trace:
IP Function Name
0xe000000001d62e40 lv_boothalt+0x110
0xe000000001d6a460 lv_check_boot+0x60
0xe000000001d6a350 lvmconf_body+0x2f0
0xe0000000013081b0 lvmconf+0x30
0xe000000001286790 im_lvmconf+0x70
0xe0000000016f7230 DoCalllist+0x3a0
End of Stack Trace

linkstamp: Wed Aug 05 01:10:17 EAT 2009
_release_version: @(#) $Revision: vmunix: B11.23_LR FLAVOR=perf Fri Aug 29 22:35:38 PDT 2003 $

sync'ing disks (0 buffers to flush): (0 buffers to flush):
0 buffers not flushed
0 buffers still dirty

*** A system crash has occurred. (See the above messages for details.)
*** The system is now preparing to dump physical memory to disk, for use
*** in debugging the crash.


the system crash
Any one can tell me waht to do next,thanks!
6 REPLIES 6
SoorajCleris
Honored Contributor

Re: delete /dev/vg00/lvol1 with mistake

Hi James,

Do you have an OS DVD?
Boot from that and try to create the device file using mknod. Just a suggetion.

Regards,
Sooraj

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Torsten.
Acclaimed Contributor

Re: delete /dev/vg00/lvol1 with mistake

Better to first ask, then do anything.

You did delete the file "lvol1" only , right?

So your problem is bigger since you did a shutdown. Without shutdown the solution would be to simply recreate the file.

Now you probably need to boot from install DVD (recover shell) and repair from there.

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!   
James-F
New Member

Re: delete /dev/vg00/lvol1 with mistake

thanks for all your repliesï¼
if i did not shutdown ï¼ i can recreate the lvol with what commandï¼ please tell me ï¼ thanksï¼ Torsten.
James-F
New Member

Re: delete /dev/vg00/lvol1 with mistake

mknod /dev/vg00/lvol1 b 64 0x000001
is this right?
Lijeesh N G_1
Respected Contributor

Re: delete /dev/vg00/lvol1 with mistake

Hi,

If i did not shutdown i can recreate the lvol with what command.please tell?
#mknod /dev/vg00/lvol1 b 64 0x000001

Regards,
LIJEESH N G
James-F
New Member

Re: delete /dev/vg00/lvol1 with mistake

thanks for your replies!

regards