- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirroring 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
03-04-2003 12:54 PM
03-04-2003 12:54 PM
Mirroring boot disk
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:01 PM
03-04-2003 01:01 PM
Re: Mirroring boot disk
So, yes you can mirror lvol's on the 9GB disk to the 36GB.
Just vgextend the VG so that the 36GB disk is included in the VG. Then do an 'lvextend -m 1' for the LVOLs that you want to mirror.
It's as easy as that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:03 PM
03-04-2003 01:03 PM
Re: Mirroring boot disk
Yes. MirrorDisk/UX implements mirroring at the logical volume level.
Since your 9GB disk undoubtedly was created with a 'max_pe' and 'pe_size' value that maps about 9GB of physical space, however, you will *not* be able to allocate extents on your 36GB disk beyond the number allowed on your 9GB disk. You can determine the limit by doing a 'vgdisplay'. Look at the "Max PE per PV" and the "PE Size" to calculate the useable space.
To mirror to the 36GB disk, do:
# pvcreate ???B /dev/rdsk/cXtYdZ
# vgextend /dev/vg00 /dev/dsk/cXtYdZ
# mkboot /dev/rdsk/cXtYdZ
# mkboot ???a "hpux ???lq" /dev/rdsk/cXtYdZ
# for LV in 1 2 3 4 5 6 7 8
> do
> lvextend ???m 1 /dev/vg00/lvol${LV} /dev/dsk/cXtYdZ
> done
# lvlnboot ???v
# mkboot ???a "hpux ???lq" /dev/rdsk/cXtYdZ #...for original volume, too...
# setboot ???a [alternate_path] #...for new mirror...
# lifcp /dev/rdsk/xCtYdZ:AUTO - #...copy to stdout for verification...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:03 PM
03-04-2003 01:03 PM
Re: Mirroring boot disk
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066581345
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:03 PM
03-04-2003 01:03 PM
Re: Mirroring boot disk
I assume that your 9GB is the current disk. In that case, everything above 9GB will go to waste on the 36GB drive. The number of physical extents and extent size is set at vgcreate time and cannot be altered.
The mirroring is actually done at the LVOL level.
1) pvcreate -B /dev/rdsk/rawnewdisk
2) vgextend /dev/vg00 /dev/dsk/newdisk
3) mkboot -a "hpux -lq (;0)/stand/vmunix /dev/rdsk/rawnewdisk
4) for each lvol in vg00
lvextend -m 1 /dev/vg00/lvoln /dev/dsk/newdisk
That should do you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:04 PM
03-04-2003 01:04 PM
Re: Mirroring boot disk
TKB #LVMKBRC00005103:
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066581345
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:04 PM
03-04-2003 01:04 PM
Re: Mirroring boot disk
Just wanted to give you heads up. If you already have teh volume group setup with 9GB disk and if you didnt' specify non-default options with -e, then you cannot add 36G into the volume group. So you will be better off with create a new volumegroup with 36GB, create filesystems on it, copy the data from 9GB disk, mount the new filesystems on the old mount points, test the application. Once the application is well tested, then remove the old volumegroup to free up the disk and then add the disk to the new volumegroup and then mirror.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:07 PM
03-04-2003 01:07 PM
Re: Mirroring boot disk
If your willing to lose the rest of your disk, then mirroring is possible at the volume group level.
# for LVOL in /dev/vg00/lv*
> do
> echo $LVOL
> lvextend -m 1 $LVOL
> done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 02:52 PM
03-04-2003 02:52 PM
Re: Mirroring boot disk
We want to use full 36 GB. First disk we added to vg00 was 9 GB. So we can not extend Max PE.
How to create new root volume group without downtime? Or any other options we have to get it done?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 02:56 PM
03-04-2003 02:56 PM
Re: Mirroring boot disk
The best and safe option is to use ignite tape recovery process.
Make a make_tape_recovery tape.
/opt/ignite/bin/make_tape_recovery -v -x inc_entire=vg00 -f /dev/rmt/0m
Boot through the tape and point the boot disk to 36g disk and install.
Once everything is up and running, add 9g to vg00 and establish mirroring.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 03:00 PM
03-04-2003 03:00 PM
Re: Mirroring boot disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 03:08 PM
03-04-2003 03:08 PM
Re: Mirroring boot disk
Ignite is definitely the answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 03:16 PM
03-04-2003 03:16 PM
Re: Mirroring boot disk
Get another 9Gb disk
or
Get another 36gb disk
or
Create an ignite tape and build your OS on the 36gb disk
I would purchase an additional 9Gb disk and mirror it to your original disk. That way there is no wastage, and utilise the 36gb for something else. 9gb disks can be sourced fairly cheaply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 04:15 PM
03-04-2003 04:15 PM
Re: Mirroring boot disk
If you want to replace the boot disk with 36GB without downtime, then mirroring + spliting and Ignite UX is the best methods.
If you want to increase the lv size's of root vg, then
you cant use this method.
For this add this disk to a new vg, pvcreate with bootable. create the lv's with required size's. (check for contigeous options for boot, root and swap).
create fs's (boot lv should be hfs). mount file systems.
copy the files using cpio or any method you are comfortable with.
change the bootpath to new disk using setboot -p HWAddr_of_newdisk.
edit the /stand/bootconf file and change the boot disk device file.
boot into lvm maintenance mode, export the current vg00
and the vg you created now. import the newvg to vg00.
now boot to the multi-user mode.
Rgds
Srini.