- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to recover vg01 after reinstalling hpux 11...
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
04-11-2006 12:34 AM
04-11-2006 12:34 AM
How to recover vg01 after reinstalling hpux 11i
I've recently re-installed hpux 11i on vg00 due to turning on trusted hosts, which locked all logins (silly me!) I want to get vg01 disk back with all it's data on - I belive I can use vgexport, but don't know what else I need to do first.
Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 12:39 AM
04-11-2006 12:39 AM
Re: How to recover vg01 after reinstalling hpux 11i
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport vg01 /dev/dsk/cxtydz (specify al devices file in volumegroup)
vgchange -a y vg01
vgcfgbackup vg01
mount /dev/vg01/lvolx /fsx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 12:40 AM
04-11-2006 12:40 AM
Re: How to recover vg01 after reinstalling hpux 11i
>>I've recently re-installed hpux 11i on vg00 due to turning on trusted hosts, which locked all logins (silly me!)
Wow; that's alot like killing a fly with a small thermonuclear device - maybe not so small.. Why didn't you simply unlock the accounts?
You'll need to know what disk(s) comprised vg01 prevoiusly. If you have a vg map of the volume group, you'll be a lot more successful. Assuming you have that information:
mkdir /dev/vg01
mkdnod /dev/vg01/group c 64 0x010000
vgimport -m ${map} vg01 ${disks[*]}
If you don't have the volume group map file, all lv names will be reset to the default (lvol01/lvol02..., etc).
HTH;
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 12:42 AM
04-11-2006 12:42 AM
Re: How to recover vg01 after reinstalling hpux 11i
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -m /tmp/vg01map /dev/vg01 /dev/dsk/cXtYdZ /dev/dsk/cXtYdZ
vgchange -a y /dev/vg01
The map file is not necessary if your logical volumes followed standard naming conventions (lvol1, lvol2, etc.).
That should do it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 12:43 AM
04-11-2006 12:43 AM
Re: How to recover vg01 after reinstalling hpux 11i
All you need to do to is to 'vgimport' vg01.
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport vg01 pv_path...
# vgchange -a y
If you did a 'vgexport' first and have mapfiles that name your logical volumes, specify that mapfile in your 'vgimport'. If you didn't do that step, don't worry. Standard logical volume names will be assigned as 'lvol1', 'lvol2', etc.
Be sure to specify all the 'pv_paths' which apply. As always, see the manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 12:43 AM
04-11-2006 12:43 AM
Re: How to recover vg01 after reinstalling hpux 11i
That's a wee bit important...
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 01:51 AM
04-11-2006 01:51 AM
Re: How to recover vg01 after reinstalling hpux 11i
# mount /dev/vg01/lvol3 /opt/coinsqa10
vxfs mount: /dev/vg01/lvol3 is corrupted. needs checking
I do now have lvol3 on vg01 and vg00 - would this make a difference?
Is there anything I can do to get the lv back?
(Doug - would have loved to unlock the accounts, but logged out all session before I realised what I done - yes I am blonde!!)
Thanks
Michelle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 02:13 AM
04-11-2006 02:13 AM
Re: How to recover vg01 after reinstalling hpux 11i
should fix the filesystem.
Also, you could have just booted into single-user mode to unlock all the accounts after trusting the system. '/usr/lbin/modprpw -V' is what you want if/when you trust the system again. 'man modprpw' for more info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 02:43 AM
04-11-2006 02:43 AM
Re: How to recover vg01 after reinstalling hpux 11i
Do remember to run fsck with "-o full" option otherwise you may continue to get that error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 02:54 AM
04-11-2006 02:54 AM
Re: How to recover vg01 after reinstalling hpux 11i
Thanks again
Michelle