- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to dd a 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
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
12-13-2006 04:48 PM
12-13-2006 04:48 PM
Does the mirror have to be broken apart first before running dd?
If so, doesn't that leave the system exposed during the dd operation?
Thanks,
Jim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2006 07:17 PM
12-13-2006 07:17 PM
Re: How to dd a mirrored root disk
have you not created your mirror disk as an alternate bootable disk ?
The lifeboat is normally a spare disk that physically replaces the original boot disk, in its original slot.
You break the mirror then dd, please see:
https://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1015495
Yes, during the dd you are running on single disk!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 04:02 AM
12-14-2006 04:02 AM
Re: How to dd a mirrored root disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 04:23 AM
12-14-2006 04:23 AM
Re: How to dd a mirrored root disk
For the procedures to create a lifeboat disk have a look at this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=118108
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 05:34 AM
12-14-2006 05:34 AM
Re: How to dd a mirrored root disk
Different method.. also works. You may be warned by others here of potential issues.. but I've not seen issues in the 5 years I've employed this approach.
1.) Find out which disk is your primary , where you're booted on
lvlnboot, etc.
2.) You can dd copy to a similar sized / geometry destination disk or a bigger disk. It does not matter if the disk is local or remote.
cXtXdX - is your mirror pairs primary disk
cYtYdY - is your target disk
IF cYtYdY is LOCAL :
dd if=/dev/rdsk/cXtXdX of=/dev/cYtZdZ bs=1024k
IF cXtXdX is REMOTE (from the remote):
ssh/remsh srcsrv dd if=/dev/rdsk/cXtXdX | dd if=/dev/rdsk/cYtYdY
3.) The dd-copy disk should now be bootable and it will just be a few easy steps to settle the disk (i.e. booting LVM maint mode, etc... clearing the mirrors, etc...)
Enjoy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 02:27 PM
12-14-2006 02:27 PM
Re: How to dd a mirrored root disk
Nelson, can you provide more detail by what you mean: "booting LVM maint mode, etc... clearing the mirrors, etc.."? The etc's scare me. Is a fsck after the dd not sufficient?
Thanks,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2006 02:39 PM
12-14-2006 02:39 PM
Re: How to dd a mirrored root disk
If you are truly paranoid, you can add another level to the lifeboat creation. After the dd has finished, you can vgimport the lifeboat as a new VG, activate the VG (overriding quorum), and then run fsck each filesystem and have it marked clean. Your current boot disk has the data you need so that you know for example that lvol4 is an vxfs filesystem on both the original disk(s) and the lifeboat. My newer lifeboat creation scripts have added that feature although even without it, I've never had a lifeboat sink.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 03:45 AM
12-15-2006 03:45 AM
SolutionI believe that you need to re-import the disk and change the lvlnboot information. The reason for this is that you want the lvmtab on the "cloned" disk to point at /dev/dsk/c0t4d0 but it points at /dev/dsk/c0t6d0.
Here is what you what do:
boot into LVM maintanence mode from your cloned disk:
From hpux prompt type:
hpux -lm
Then vgexport the root volume group:
vgexport /dev/vg00
Then recreate the vg00 group and node for your system:
mkdir /dev/vg00
mknod group c 64 0x000000
Then vgimport your disk:
vgimport /dev/vg00 /dev/dsk/c4t0d0
Next, take care of the lvnboot information:
vgchange -a y /dev/vg00
lvrmboot -r /dev/vg00
lvlnboot -b /dev/vg00/stand
lvlnboot -r /dev/vg00/root
lvlnboot -d /dev/vg00/swap
lvlnboot -s /dev/vg00/swap
lvlnboot -R
sync
sync
reboot
This should take care of it.
For mirrored transported disks:
MAP File edit...
lvreduce -m 0 the LVOLS
vgreduce
root@unknown # vgreduce -f /dev/vg00
PV with key 3 sucessfully deleted from vg /dev/vg00
PV with key 5 sucessfully deleted from vg /dev/vg00
Repair done, please do the following steps.....:
1. save /etc/lvmtab to another file
2. remove /etc/lvmtab
3. use vgscan(1m) -v to re-create /etc/lvmtab
4. NOW use vgcfgbackup(1m) to save the LVM setup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 04:10 AM
12-15-2006 04:10 AM
Re: How to dd a mirrored root disk
If I understand your mop correctly, it would only be required if I decide to leave all drives in their respective present bay locations.
If I was on site, I could simply power down the server, swap the bad primary boot disk with the good lifeboat disk, boot to single user mode, follow Clay's suggestion to rebuild the mirror (because ipso facto the data on the mirror in this scenario would be corrupt) and then finally init to multi-user mode, correct?
Thanks,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 04:15 AM
12-15-2006 04:15 AM
Re: How to dd a mirrored root disk
And since this method has the "Imprimatur" of the Great A. Clay - it must be generally okay.