- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: bootable mirror 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-19-2002 09:12 AM
12-19-2002 09:12 AM
bootable mirror disk
I've one problem to solve with one rp7400. We have this system with two disks, and I intent to have bootable mirror disk.
I don't have any doubts about the procedure to mirror this second disk... however my problem is... the second disk (the supposed mirror) is under the same volume group and has not been created with "pvcreate -B" ... so this may mean that I would not be able to have a bootable mirroed disk(??)...
Would you know any way to remove the second disk from the volume group in order to pvcreate it with -B... and without a need to destroy this volume group? (This disks is not in use by any logical vol) Many thanks
Kind Regards,
Miguel Ribeiro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:17 AM
12-19-2002 09:17 AM
Re: bootable mirror disk
vgreduce /dev/vg01 /dev/dsk/c0t5d0
pvcreate -B -f /dev/rdsk/c0t5d0
vgextend /dev/vg00 /dev/dsk/c0t5d0
mkboot -l /dev/rdsk/c0t5d0
mkboot -a "hpux -lq" /dev/rdsk/c0t5d0
lifcp /dev/rdsk/c0t5d0:AUTO -
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t5d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c0t5d0
pvdisplay -v /dev/vg00
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:18 AM
12-19-2002 09:18 AM
Re: bootable mirror disk
To be bootable, -B option is needed, so the second disk is not bootable.
If this disk has no lvol configured, you can remove from VG and begin the boot mirror from the begining.
HTH, Vicente.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:19 AM
12-19-2002 09:19 AM
Re: bootable mirror disk
It seems that your questions is about booting from the second mirrored disk in case any problem with the first disk.
No, You do not have to worry even if the disk is not created using pvcreate -B neither you need to remove the disk from the volume group.
The second disk must be on /dev/vg00 if you want to create mirror. Still you can configure the second disk as mirror disk for your system. Just follow the procedure as mentioned in the System admin manual for root disk mirroring.
1. pvcreate -B /dev/rdsk/second_disk
and so on....
Do not forget to use "hpux -lq" switch while running mkboot command. Otherwise you will have to give command hpux -iq at the isl prompt when you want to boot through second disk.
Hope this will be useful and will resolve your trouble.
NOTE : It won't matter if anything is on the second disk at this time. Simply start to mirror the second disk and run pvcreate -B command and other commands which you can find from the forum.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:20 AM
12-19-2002 09:20 AM
Re: bootable mirror disk
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:22 AM
12-19-2002 09:22 AM
Re: bootable mirror disk
If you want to see if a disk is bootable, do 'lvlnboot -v'. If this disk *is* bootable and therefore *was* created with 'pvcreate -B', you will see the notation "Boot Disk" as for example:
# lvlnboot -v
Current path "/dev/dsk/c5t1d2" is an alternate link, skip.
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (10/0.6.0) -- Boot Disk
/dev/dsk/c2t0d2 (10/8.0.2) -- Boot Disk
/dev/dsk/c5t1d2 (10/16/4.1.2) -- Boot Disk
In your case, since there are no logical volume extents on the disk, simply 'vgreduce' the disk that you failed to correctly 'pvcreate' and begin again:
# vgreduce /dev/vg00 /dev/dsk/cXtYdZ
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:22 AM
12-19-2002 09:22 AM
Re: bootable mirror disk
lvremove any other logical volumes off the disk.
vgreduce the desk out of the volume group.
lvremove /dev/vg00/lvolname
vgreduce vg00 /dev/dsk/c#d#d#
pvcreate -B /dev/rdsk/c#d#d#
mkboot /dev/rdsk/c#d#d#
mkboot -a hpux -lq (;0)/stand/vmunix" /dev/rdsk/c#d#d#
vgextend /dev/vg00 /dev/dsk/c#d#d#
lmextend -m 1 /dev/vg00/lvol1 /dev/dsk/c#d#d#
Same thing for every other fs in vg00
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
12-19-2002 09:22 AM
12-19-2002 09:22 AM
Re: bootable mirror disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:23 AM
12-19-2002 09:23 AM
Re: bootable mirror disk
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:26 AM
12-19-2002 09:26 AM
Re: bootable mirror disk
Sorry, Pete, 'pvremove' is not what is needed. First, it wouldn't work because his disk is part of the volume group. Second, the command merely clears the LVM private area so an LVM disk could be used with VxVM for instance. The command replaces the need to write zeros over LVM headers.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:28 AM
12-19-2002 09:28 AM
Re: bootable mirror disk
I forget to mention few points.
before running pvcreate -B you need to remove the disk from vg00.
vgreduce /dev/vg00 /dev/dsk/sec_disk_dev
pvcreate -B /dev/dsk/rsec_disk_dev
vgextend /dev/vg00 /dev/dsk/sec_disk_dev
;;
;;
;; and so on.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:29 AM
12-19-2002 09:29 AM
Re: bootable mirror disk
I'm impressed with the excelent help that you guys are giving me and your fast reply... many thanks for all :-)
I'm going to test to remove the disk from the vg00 ... I've created a testing system to replicate the problem that we have with the production system...
Many thanks :-) ... I'll be back with update as soon as I finish this test...
I intent to replicate this changes this friday during working hours in our production system :-)
Regards,
Miguel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 08:41 AM
12-20-2002 08:41 AM
Re: bootable mirror disk
do not forget to add the second boot disk to the /stand/bootconf file too.
kind regards,
Gratien D'haese