- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Making exact replica of the boot 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
07-01-2003 12:21 PM
07-01-2003 12:21 PM
Making exact replica of the boot disk
I want to make exact replica of boot disk to another disk.
Boot disk - c1t2d0
Replica - c1t0d0
I don't want the second disk to be mirrored (though it will be exact replica ), but want it to be bootable, so that in case the primary fails, I can boot thru' the second disk.
Till now I have done is:-
pvcreate -f /dev/rdsk/c1t0d0 ( I forgot the -B option )
pvextend /dev/vg00 /dev/dsk/c1t0d0
dd if=/dev/dsk/c1t2d0 of=/dev/dsk/c1t0d0
Please advise as to how should I proceed.
Thanks,
Girish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 12:29 PM
07-01-2003 12:29 PM
Re: Making exact replica of the boot disk
pvcreate -B /dev/rdsk/c1t0d0
vgextend /dev/vg00 /dev/dsk/c1t0d0
mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux" /dev/rdsk/c1t0d0
mkboot -a"hpux" -lq" /dev/rdsk/c1t0d0
setboot -a hardware path ( get output from ioscan command)
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
continue to all the lvols on vg00 (for ex: /,var,tmp,usr,stand etc..)
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
lvlnboot -v now will show disk boot information
Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 12:37 PM
07-01-2003 12:37 PM
Re: Making exact replica of the boot disk
Thanks for your reply.
However, I have one doubt with the lvextend -m 1 command. This will create a mirror of lvol's on the second disk????
If so, then I don't need a mirror copy but an exact bootable replica of the boot disk.
Thanks,
Girish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 12:42 PM
07-01-2003 12:42 PM
Re: Making exact replica of the boot disk
dd if=/dev/rdsk/c1t2d0 bs=4096k of=/dev/rdsk/c1t0d0
However, mirroring is really the best way, you might think you dont want a mirror but when you get to using it... oops that was updated after I too the image.
ALTERNATIVELY.. Use ignite-UX to make a boot tape.
make_tape_recovery -vI -x inc_entire=vg00 -a /dev/rmt/0mn
(or similar, from memory)
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 12:44 PM
07-01-2003 12:44 PM
Re: Making exact replica of the boot disk
I feel during disaster that will mirror copy will come in handy , I am not sure why you don't need it.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 12:45 PM
07-01-2003 12:45 PM
Re: Making exact replica of the boot disk
Also TEST you new root disk, you dont know 'till ypu try!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 12:48 PM
07-01-2003 12:48 PM
Re: Making exact replica of the boot disk
the -m 1 option will create the mirror copy on the second disk and I have done this several times and it has always worked fine. The mirror data will always be useful during the disaster. Whats the use if the system boots but you do not have any data on the root filesystem.
Cheers,
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 12:48 PM
07-01-2003 12:48 PM
Re: Making exact replica of the boot disk
I don't want to do mirroring is because, if I want to upgrade my OS and something goes bad ( or let's say I deleted the /stand directory ), I always have the second boot disk from which I can boot and get the system up.
On your reply does it mean that the first 2 steps I have taken are correct. Then I need to boot the machine in single user mode, and then execute the command you gave me.
To test,
I boot up the machine and interrupt and specify Boot alternate option.
Please advise.
Thanks,
Girish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 12:52 PM
07-01-2003 12:52 PM
Re: Making exact replica of the boot disk
dd if=/dev/rdsk/c1t2d0 of=/dev/rdsk/c1t0d0 bs=64k
Also specify a large blocksize (64k is a good size). The default is 512 bytes and dd will take a VERY long time to complete. The dd will significantly faster than mirroring (and the only choice if you did not buy the mirroring software)
Now you have an exact copy but it won't boot properly since the boot string specifies the original disk. Now if you remove both disks and change the addresses, it will work but that is a bit painful. Instead, use the mkboot commands as shown above to customize the second disk. As always, test the results.
Using this technique is a good way to backup a single disk VG00 before patching or upgrading. The alternative is to use make_tape_recovery (I would do both on a production machine).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 10:20 AM
07-02-2003 10:20 AM
Re: Making exact replica of the boot disk
Boot into single user mode (shutdown -r -y now). Interupt boot sequence.
Main menu: boot
do you want to interact with ISL y/n > y
ISL> hpux -is
Wait for system to come up.
# vgchange -a y vg00
# mountall
# dd if=/dev/rdsk/c1t2d0 bs=4096k of=/dev/rdsk/c1t0d0
This will replicate your disks. NOTE HW path of new disk replica (say 0/2/0/0.0)
To test re-boot & interupt boot sequence
Main menu: boot 0/2/0/0.0
do you want to interact with ISL y/n> n
wait.
There are a couple of things.
1 - Ignite-UX image is by far the best method for doing this, what you are trying to do will probably work, but is not so flexable. Besides DLT/DDS tapes are cheap, disks are expensive
2 - If you use a proper mirroring (if you have mirror-UX) & install new OS on ONE DISK ONLY you can recover straight back to the original, no problems. Simply follow the boot sequence on the mirror disk and interact with ISL, then type "hpux -lq". You will be back where you were before the install. Furthur to this when I do this I usually run on one upgraded root disk for a few days & import the OLD disk as "vgold", mount it appropriately under /oldroot. This way If I have forgotten to migrate anything I can simply copy the files straight back.
I hope the above helps out. As you are no doubt realising there are many ways to skin this HP-UX cat!!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2003 12:18 AM
07-04-2003 12:18 AM
Re: Making exact replica of the boot disk
best way is either use
dd command
or use ignite ux for same.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2003 03:36 AM
07-04-2003 03:36 AM
Re: Making exact replica of the boot disk
We already had these problems before.
Pls look at this URL :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x542331ec5e34d711abdc0090277a778c,00.html
The answer of Clay is the best idea in this.
Rgds
Alexander M. Ermes