- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Anyway to mount mirrored root disk
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
тАО07-09-2003 02:21 PM
тАО07-09-2003 02:21 PM
Is there any way to mount or boot from a mirrored root disk when it was created without the -B option on the pvcreate?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:25 PM
тАО07-09-2003 02:25 PM
Re: Anyway to mount mirrored root disk
If for some reason you want to split the mirrors, lvsplit or use sam to break the mirrors.
Your questioncould use some elaboration.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:30 PM
тАО07-09-2003 02:30 PM
Re: Anyway to mount mirrored root disk
You cannot boot from the disk that was not created with -B option. You would get "Not a LIF volume" error.
You can survive if you don't have an autofile (through lv maintenance mode or by booting through support CD) but not if the LIF area is missing.
However, if this disk is not part of an active mirror, then you can import the disk and mount the filesystems. This is the case when you have a system crash and the primary disk is completely lost but you have the mirror disk but it won't boot because LIF is missing.If you have another system where you can put this disk on or if you can boot through another disk on the same system, you can import the the disk into a temporary volume group and vgchange it with no quorum option and mount the filesystems if you need to recover any data.
#mkdir /dev/vgtemp
#mknod /dev/vgtemp/group c 64 0x090000
#vgimport vgtemp /dev/dsk/c2t0d0
#vgchange -a y -q n vgtemp
#mkdir /oldusr
#mount /dev/vgtemp/lvol5 /oldusr
(where lvol5 corresponds to /usr on the failed system)
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:33 PM
тАО07-09-2003 02:33 PM
Re: Anyway to mount mirrored root disk
Sorry, more detail.
System went down when main internal system disk containing / /stand /var /tmp /home /opt /usr failed.
Tried to reboot from alternate path but found that the pvcreate had been done without the -B.
Have replaced faulty system disk and loaded from last ignite but there are some database files on /home that we really need from the mirror. We know that mirror of the root system disk is ok (c2t2d0) but can't get to the files in /home as it won't mount or boot from alternate path.
I hope this makes it clearer.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:41 PM
тАО07-09-2003 02:41 PM
Re: Anyway to mount mirrored root disk
That's what I suspected. So, replace c2t0d0 with c2t2d0 in my example. Also use a unique minor number (0x090000 is my example) while importing the VG. You can find if this minor has already been used by
ll /dev/*/group
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:48 PM
тАО07-09-2003 02:48 PM
Re: Anyway to mount mirrored root disk
When I do the vgimport I get the following message:
vgimport: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.
Is there a quick way to remove the entry out of lvmtab as it won't let me use vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:54 PM
тАО07-09-2003 02:54 PM
Re: Anyway to mount mirrored root disk
If you see that your disk is not in vg00 a simple vgexport /dev/vgxx will suffice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:54 PM
тАО07-09-2003 02:54 PM
Re: Anyway to mount mirrored root disk
If you see that your disk is not in vg00 a simple vgexport /dev/vgxx will suffice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:55 PM
тАО07-09-2003 02:55 PM
Re: Anyway to mount mirrored root disk
If you see that your disk is not in vg00 a simple vgexport /dev/vgxx will suffice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2003 02:59 PM
тАО07-09-2003 02:59 PM
SolutionActually with the message that you got, you are not.
Did you exclude /home from make_tape_recovery while creating the image on the box?. Otherwise, it shoudl also have gotten restored.
When you ignited the box with the old image, it would put the mirror disk into vg00 without actually establishing mirrors. So, it put your c2t2d0 back into vg00. However, a simple 'pvcreate' only destoys the LVM headers. If you could restore the old LVM headers, you may get the data back.
You can try this way *only if* you reinstalled the system using it's previously created image.
Look at /etc/lvmconf. See if you can find vg00.conf files with dates before the crash. If it is there (say vg00.conf.old), then do
1. Look at the PV and make sure there are no LVs configured.
#pvdisplay -v /dev/dsk/c2t2d0
2. If there are no LVs, then use
#vgreduce vg00 /dev/dsk/c2t2d0
3. Restore the old configuration so that you may get the old LVOLs back.
#vgcfgrestore -f /etc/lvmconf/vg00.conf.old /dev/rdsk/c2t2d0
Then follow the the procedure that I gave in my first post.
As a reminder, there is only a chance to get your data back.
-Sri