- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deleted Lvol1!
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
11-14-2003 02:49 AM
11-14-2003 02:49 AM
Hard to believe, but a guy has managed to mistakenly delete lvol1 by using SAM!
And, that's the funniest things, he has no backups!!
Assume he wants to recover without reinstalling the O.S. (by the way, it is 11.11).
Any hints??
Thanks
Miguel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 02:51 AM
11-14-2003 02:51 AM
Re: Deleted Lvol1!
They better hope someone was making recovery tapes as that's the only way to recover.
Boot the tape & restore.
Then I'd suggest they limit root access because that was a pretty boneheaded move.
root PW should ONLY be given to those capable of the task - NO ONE ELSE.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 02:53 AM
11-14-2003 02:53 AM
Re: Deleted Lvol1!
vgchange -a y /dev/vg##
vgsync /dev/vg##
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 02:53 AM
11-14-2003 02:53 AM
Re: Deleted Lvol1!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 02:54 AM
11-14-2003 02:54 AM
Re: Deleted Lvol1!
No Backup, not even an ignite tape ?
You could try to restore from support media and try to reconfigure the kernel.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 02:57 AM
11-14-2003 02:57 AM
Re: Deleted Lvol1!
Lvol1 has been swept away along with /stand.
Miguel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 03:05 AM
11-14-2003 03:05 AM
Re: Deleted Lvol1!
This machine is broken now and are you ever going to trust it again if you dont re-install.
Oh, by the way, important safety tip, start implementing a backup procedure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 03:22 AM
11-14-2003 03:22 AM
Re: Deleted Lvol1!
if you have a similar system where you can tar /stand, you could give it a try using it... else you will have to reinstall.
run pvdisplay to see how many free extents at the beginning of the root disk there are,
recreate lvol1 with appropirate size and strict/contiguous allocation, create a hfs filesystem on it, mount it and extract /stand from the other system.
run prep_system to create a new system file , enter SAM and change one kernel parameter slightly so that a new kernel will be generated after reboot.
run strings /etc/lvmtab and ioscan and take down which HW path is which disk and which disk belong to which vg
(most likley you will have to vgexport and vgimport)
See what happens.... but don't count on me, I am off for the weekend ;-)
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 03:33 AM
11-14-2003 03:33 AM
Re: Deleted Lvol1!
First, your lvol1 data is lost if you dont have any backups. no salvation there.
However, I concur with copying a kernel from a similar box. So you can at least save the OS...
OR if you must Ignite it from another host's tape.
I know it goes without saying now, but I will say it. Please, please, please start backing up your system... I hope everyone's jobs are still safe.
One DDS3 tape will backup all vg00 and probably most of the remaining local disks. It has very good compression, and I think an 8gb compressed capacity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 03:40 AM
11-14-2003 03:40 AM
Re: Deleted Lvol1!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 03:56 AM
11-14-2003 03:56 AM
Re: Deleted Lvol1!
James is right, you just need exactly the right lvcreate command. SAM just does an lvremove, which does not alter anything on the disk except the VG data itself. With lvlvnboot -b /dev/vg00/lvol1, that should do the trick.
But now I am off for the weekend!
Regards
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 04:07 AM
11-14-2003 04:07 AM
Re: Deleted Lvol1!
Worth a try. Course, there's always that odd extent or two.
:-0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 04:39 AM
11-14-2003 04:39 AM
Re: Deleted Lvol1!
Is it perhaps the case that the device file /dev/vg00/lvol1 has been removed? If so, you can just recreate it with mknod:-
mknod /dev/vg00/lvol1 b 64 0x000001
mknod /dev/vg00/rlvol1 c 64 0x000001
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 04:52 AM
11-14-2003 04:52 AM
Re: Deleted Lvol1!
That was a thougth in the back of my head as well... I was wondering how you can lvremove an lvol for the OS...
Miguel,
Since you said the lvol was removed via SAM, if you can offer the SAM log to show us, it would clear up a ton of confusion.
Unless the box was in single user mode, I dont see how to remove lvol1. Unless the /dev/vg*/* information was removed.
I can see that someone could rm -r /stand, but not to remove the lvol1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 05:12 AM
11-14-2003 05:12 AM
Re: Deleted Lvol1!
Miguel, as to my previous comment, if you recreate lvol1 don't newfs it - just fsck/mount /stand again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 08:25 AM
11-14-2003 08:25 AM
Re: Deleted Lvol1!
all you need to do is recreate lvol1, fsck and mount. It has to be made the same size as before....
where cXtXdX is your boot disk:
# pvdisplay -v /dev/dsk/cXtXdX |more
PV0 will be the start of /stand... the last one will be right before lvol2 starts. How many PE was /stand?
now make the lvol... where PE is the number of PE from pvdisplay.
# lvcreate -n lvol1 -l PE /dev/vg00
(-l PV = ell PV)
now fsck and mount..
# fsck -F hfs -y /dev/vg00/rlvol1
# mount /stand
if it was removed from sam you may have to add the entry for /stand back to your /etc/fstab.
Also verify boot lvol is defined.
# lvlnboot -v vg00
This should fix it.
-Denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 08:37 AM
11-14-2003 08:37 AM
Re: Deleted Lvol1!
syntax should be:
# lvcreate -s y -C y -n lvol1 -l PE /dev/vg00
if already created it, just use lvchange to set it...
# lvchange -s y -C y /dev/vg00/lvol1
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 09:06 AM
11-14-2003 09:06 AM
Re: Deleted Lvol1!
please take Denver's golden advice:
DO NOT REBOOT OR SHUTDOWN
I would plan a big maintenance window where you have time for a full backup & possible full reinstallation & restore. Personally I think chances are small you will get this server bootable again otherwise.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 03:57 PM
11-14-2003 03:57 PM
SolutionAs long as a new filesystem wasn't laid out to the disk where /stand once was, recreating the lvol the exact same size then running fsck would get it back and mounted. From then all that would be needed is to check lvlnboot for the boot lvol and since it was removed from sam I think the /etc/fstab entry for /stand would need to be added back.
Anywho, I'm sure it can be done and I'm curious to know the end result of what they did/decided to do to fix.
-Denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 11:57 PM
11-16-2003 11:57 PM
Re: Deleted Lvol1!
I've tried deleting a logical volume on RedHat Linux (lvremove)and recreating it with same size. It is the one that contains /home. Then I've run fscheck, mounted /home and checked data. Everything seems to be back and in running order!!
PM