- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cloned BootDisk, Booted off Clone But....
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
08-27-2003 12:23 PM
08-27-2003 12:23 PM
How could I fix this so when I am booted off the clone, it really uses this cloned disk and LVM points to this clone?
Or am I getting ambitious here? I know I can use MirrorDisk/UX but coming from a different flavour of UNIX... thanks!
I am actually searching for even faster ways to setup vPars and nPars boot systems...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 12:37 PM
08-27-2003 12:37 PM
Re: Cloned BootDisk, Booted off Clone But....
You can use 'setboot' to set your primary and secondary boot paths. For instance:
# setboot -p 10/0.6.0 -b on
# setboot -a 10/8.0.2 -b on
Should you wish to determine the device from which you booted, do:
# echo boot_string/S|adb /stand/vmunix /dev/mem
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 12:38 PM
08-27-2003 12:38 PM
Re: Cloned BootDisk, Booted off Clone But....
This output must be correct prior to running a boot test. Its good to run the boot 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
08-27-2003 12:55 PM
08-27-2003 12:55 PM
Re: Cloned BootDisk, Booted off Clone But....
So how could I fix this so when booted off this disk path (the clone) - LVM (lvlnboot) is pointing to this disk?
root@fhd002a0 # echo boot_string/S|adb /stand/vmunix /dev/mem
boot_string:
boot_string: disk(0/0/2/0/0/4/0.0.0.0.0.0.0;0)/stand/vmunix
root@fhd002a0 # lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (0/0/0/2/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 12:59 PM
08-27-2003 12:59 PM
Re: Cloned BootDisk, Booted off Clone But....
As I noted in my first post, you must use 'setboot' to fix the primary (and optionally the alternate) boot disk path. The values specified are written into stable storage. You can use 'setboot' without further arguments or options to see your current settings.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 01:13 PM
08-27-2003 01:13 PM
Re: Cloned BootDisk, Booted off Clone But....
Okay I've used "setboot -p" to this clone OS disk's path. I am now rebooting -- When I boot up, will my lvlnboot/vgdisplay output now show that vg00 now points to this clone disk/path ?that whilst booted of this BOOTPATH (or Clone Disk).
What I am attempting to do really is to clone an existing bootdisk (say at c0t6d0), copy it to say c4t0d0. And when I am booted off c4t0d0, vg00 would show c4t0d0 and not c6t0d0 in the configs... I'd like to clone my "Golden" bootdisk to other cNtNdN's so I could boot off of them indepenetly and their system volume groups point to thoses disks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 01:19 PM
08-27-2003 01:19 PM
Re: Cloned BootDisk, Booted off Clone But....
dd if=/dev/rdsk/c0t6d0 of=/dev/rdsk/c0t4d0 bs=65536
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 01:34 PM
08-27-2003 01:34 PM
Re: Cloned BootDisk, Booted off Clone But....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 09:44 PM
08-27-2003 09:44 PM
Re: Cloned BootDisk, Booted off Clone But....
Tim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 09:46 PM
08-27-2003 09:46 PM
Re: Cloned BootDisk, Booted off Clone But....
Tim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 10:54 PM
08-27-2003 10:54 PM
Re: Cloned BootDisk, Booted off Clone But....
If u have cloned using mirror disk ux
u must do lvllnboot -b / -d /-s /-r atlast
lvlnboot -R (to update the auto file ). followig this use mkboot and mkboot -a with autofile string having hpux -lq
regards
Jayan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 11:13 PM
08-27-2003 11:13 PM
Re: Cloned BootDisk, Booted off Clone But....
power on the m/c, interrupt the boot process.
specify the cloned disk as boot, get into single user mode.
#mount -a
#vgscan -a -v
#shutdown -r now
may solve this problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2003 11:17 PM
08-27-2003 11:17 PM
Re: Cloned BootDisk, Booted off Clone But....
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 01:17 AM
08-28-2003 01:17 AM
Re: Cloned BootDisk, Booted off Clone But....
if you simply dd'ed the disk in order to clone, then this disk is of use only if you put it at the HW path of your original boot disk. Because you already seen that all the LVM data on it reflect your *original* disk, HW-paths, vg name, disk devices, same for /etc/fstab.
So you have the choice to physically swap the disks or, instead of using dd, you setup a backup root vg with temporarily mounted filesystems to which you copy all your root vg filesystems (and change /etc/fstab on the copy to use backup root vg filesystems). From such a disk you could boot without swapping the disks.
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 04:48 AM
08-28-2003 04:48 AM
Re: Cloned BootDisk, Booted off Clone But....
Just to make it clear:
- The clone I am not booting from the source's orginal HW Path
- I am indeed able to boot and indeed am able to verify that I am indeed booted off said disk on its path BUT lvm/lvlnboot still points to the source disk.
What I am after are the actual gyrations (if possible) to "totally" BE on that disk - ie. lvlnboot and vgdisplay showing that very disk.
On Solaris, I go through mounting that disk from miniRoot (boot net or cdrom), doing a devfsadm to correct the device trees and finally editing my Disksuite or /etc/vfstab configuration to point to the correct path -- after which my "Clone" boot's just right.
I am in search for the exact same process to find a way or rapidly replicating a server's bootdisk in nPar/vPar environments. DD the "master disk" to a different boot disk, plug that disk in to the target vPar/nPar/server and boot off from it... I know Ignite-UX is the right way to do this (in fact I must say it is better than Solaris Jumpstart/FLAR) but I am just curious if such equivalent method exist -- instead of the Ignite Approach...
Thanks, Gracias, Ta, Arigato, Shi-shi, Salamat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 05:46 AM
08-28-2003 05:46 AM
SolutionYOU MUST ONLY DO THIS WHILE BOOTED OFF OF YOUR CLONED DISK. IF YOU DO IT OFF OF YOUR "USUAL" DISK, YOU'RE SYSTEM WILL BECOME UNBOOTABLE. :-)
I 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 -d /dev/vg00/lvol2
lvlnboot -s /dev/vg00/lvol2
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
sync
sync
reboot
This should take care of it.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 07:00 AM
08-28-2003 07:00 AM
Re: Cloned BootDisk, Booted off Clone But....
Precisely the steps I was looking for...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2004 12:49 PM
02-18-2004 12:49 PM
Re: Cloned BootDisk, Booted off Clone But....
See attachment