- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to restore a split mirror?
Operating System - HP-UX
1753427
Members
5015
Online
108793
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО09-11-2006 09:04 AM
тАО09-11-2006 09:04 AM
Task: Up-coming big upgrade, in case of any problems during upgrade, we're need the fast recover procedure to revert all changes back ASAP.
It's takes much time to recover vg00 and vgxx from the tape.
I'm planning to split all mirrors and use a mirrored copies in case of full restore actions or just some part of conf files.
How is it possible to recover all vgxx from the mirrored copy or to be able to mount a broken mirror device to recover some original files?
I've tried to split, for example, vg00 with
lvreduce -m 0 /dev/vg00/lvolxx /dev/dsk/cxtxdx
vgreduce /dev/vg00 /dev/dsk/cxtxdx
and then
mkdir /dev/vg08
mknod /dev/vg08 c 64 0x080000
vgimport /dev/vg08 /dev/dsk/cxtxdx
vgchange -a y /dev/vg08
but, without any success with this output:
vgchange -a y -q n /dev/vg08
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c1t2d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Couldn't query the list of physical volumes.
vgchange: Couldn't activate volume group "/dev/vg08":
Quorum not present, or some physical volume(s) are missing.
strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t2d0
/dev/vg08
/dev/dsk/c1t2d0
Before split actions it was just:
strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t2d0
/dev/dsk/c1t2d0
Any advises, useful links are appreciate!
It's takes much time to recover vg00 and vgxx from the tape.
I'm planning to split all mirrors and use a mirrored copies in case of full restore actions or just some part of conf files.
How is it possible to recover all vgxx from the mirrored copy or to be able to mount a broken mirror device to recover some original files?
I've tried to split, for example, vg00 with
lvreduce -m 0 /dev/vg00/lvolxx /dev/dsk/cxtxdx
vgreduce /dev/vg00 /dev/dsk/cxtxdx
and then
mkdir /dev/vg08
mknod /dev/vg08 c 64 0x080000
vgimport /dev/vg08 /dev/dsk/cxtxdx
vgchange -a y /dev/vg08
but, without any success with this output:
vgchange -a y -q n /dev/vg08
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c1t2d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Couldn't query the list of physical volumes.
vgchange: Couldn't activate volume group "/dev/vg08":
Quorum not present, or some physical volume(s) are missing.
strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t2d0
/dev/vg08
/dev/dsk/c1t2d0
Before split actions it was just:
strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t2d0
/dev/dsk/c1t2d0
Any advises, useful links are appreciate!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2006 09:12 AM
тАО09-11-2006 09:12 AM
Solution
Use lvsplit
NAME
lvsplit - split mirrored LVM logical volume into two logical volumes
SYNOPSIS
/usr/sbin/lvsplit [-A autobackup] [-s suffix] [-g PhysicalVolumeGroup]
lv_path ...
Remarks
This command requires the installation of the optional HP MirrorDisk/UX
software (not included in the standard HP-UX operating system) before
it can be used.
Rgds...Geoff
NAME
lvsplit - split mirrored LVM logical volume into two logical volumes
SYNOPSIS
/usr/sbin/lvsplit [-A autobackup] [-s suffix] [-g PhysicalVolumeGroup]
lv_path ...
Remarks
This command requires the installation of the optional HP MirrorDisk/UX
software (not included in the standard HP-UX operating system) before
it can be used.
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2006 09:15 AM
тАО09-11-2006 09:15 AM
Re: How to restore a split mirror?
lvreduce -m 0 doesn't split a mirror; it removes the mirror -- permanently. Likewise for vgreduce. Now you need to remirror all your LVOLS then test to make certain that you can boot from either drive.
To split a mirror, you use lvsplit. Man lvsplit for details.
In your case, what I would do after getting the system completely remirrored and booting from either disk is shutdown and remove the alternate boot disk and put it somewhere out of the way. That way, no matter what you do, you can't destroy that data. You will need to interrupt the boot and at the ISL prompt use "hpux -lq" to override quorum and if you must boot from your saved disk then you do the same thing.
To split a mirror, you use lvsplit. Man lvsplit for details.
In your case, what I would do after getting the system completely remirrored and booting from either disk is shutdown and remove the alternate boot disk and put it somewhere out of the way. That way, no matter what you do, you can't destroy that data. You will need to interrupt the boot and at the ISL prompt use "hpux -lq" to override quorum and if you must boot from your saved disk then you do the same thing.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2006 09:33 AM
тАО09-11-2006 09:33 AM
Re: How to restore a split mirror?
Thank you guys for the quick response!
It looks like I have installed hp-ux MirrorDisk software:
swlist | grep -i MirrorDisk
B2491BA B.11.00 MirrorDisk/UX
And I've already tried to use lvsplit and lvmerge, works fine.
Thank you!
It looks like I have installed hp-ux MirrorDisk software:
swlist | grep -i MirrorDisk
B2491BA B.11.00 MirrorDisk/UX
And I've already tried to use lvsplit and lvmerge, works fine.
Thank you!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP