- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copy 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
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
11-20-2004 05:11 AM
11-20-2004 05:11 AM
Copy Boot Disk.
On My K460 i have the internal drive as the boot disk. I want to copy the boot disk to an external HOTPLUG Capable Jamica disk. my question is
1. how do i copy the boot disk with the filesystems mounted?
2. after copying i still want to use the internal disk but also test the jamica disk (if i can boot)?
How wd i do this?
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2004 05:31 AM
11-20-2004 05:31 AM
Re: Copy Boot Disk.
Do you have Mirror/UX disk software?. If so, all you have to do is to mirror the root disk onto jamaica, make it alternate path and boot from it. If you don't have mirror/UX, then you will have to do a 'dd' of internal disk to the jamaica disk. But you will not be able to boot from it until you fix the BDRA. To fix it, use the steps I outlined in the following thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=744022
If you are going to do 'dd', then you have to make sure the the external disk is of the same size that of your internal boot disk. 'dd' does support disks of different sizes however, new disk will be limited to the size of the original disk.
There is another way - create a new VG say 'vg00new' with the new disk after 'pvcreating' the disk with -B option. Create filesystems with all the precautions, copy the data, boot in LVM, fix the issues etc., but that's bit tedious and I won't suggest.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2004 07:36 AM
11-20-2004 07:36 AM
Re: Copy Boot Disk.
You can copy the existing system disk to another one by dd command
dd if=/dev/rdsk/XXXX of=/dev/rdsk/YYYY bs=32768k
This may be done when file systems on the vg00 are mounted. As it was mentioned in Sridhar's message, both disks must have the same size.
The other way is to use make_recovery. You can create a tape and to restore it to other disk.
The question is how to synchronize the disks after changes on the source system disk.
The best way (IMHO) for system disk copy is mirroring.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2004 11:19 AM
11-20-2004 11:19 AM
Re: Copy Boot Disk.
Note that hardware instance issues may make this disk unsuable in other systems.
pvcreate -B /dev/rdsk/c1t0d0 #use real disk
mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
If you are running 64-bit OS:
# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
# real disk. repeat for other lvols
lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk
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
11-20-2004 12:39 PM
11-20-2004 12:39 PM
Re: Copy Boot Disk.
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2004 12:43 PM
11-20-2004 12:43 PM
Re: Copy Boot Disk.
vxvm does alllow you to mirror the root volume without additional licensing. I don't have a procedure for doing the mirroring, but I know it can be done.
Also, mirror/ux only costs around $1000/cpu. Its worth the money.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com