1834640 Members
3318 Online
110069 Solutions
New Discussion

Re: bootable mirror disk

 
SOLVED
Go to solution
Sami Aqel
Occasional Advisor

bootable mirror disk

We used a primary disk as system disk, then we add another disk as system mirror disk.
After both disks have the same data, how can we make the second disk a bootable one ?
we did not use mkboot command.
10 REPLIES 10
Ravi_8
Honored Contributor

Re: bootable mirror disk


Hi,

mkboot command while mirroring is required to put the bootable files in boot sector of the disk.

anyway try using setboot

#setboot -p
reboot

device can be get using ioscan -fnC disk it will in the form 0/0/........
never give up
Sami Aqel
Occasional Advisor

Re: bootable mirror disk

Thanks .... the setboot command works fine, but what those commands means ?


# mkboot /dev/rdsk/c2t2d0
There appear to be non-boot logical volumes on this device.
Overwriting them could destroy all the data on this device
# would the logical volumes be overwritten [y/n]? #


# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t2d0
There appear to be non-boot logical volumes on this device.
Overwriting them could destroy all the data on this device
# would the logical volumes be overwritten [y/n]? #
Stf
Esteemed Contributor
Solution

Re: bootable mirror disk

make sure that /dev/rdsk/c2t2d0 is your system mirror disk and answer yes to the questions...
It may erase your data on the disk so be carefull..
Normally "mkboot" commands are made before mirroring your system so I don't know what it will do if you make it after.
If answering yes cause the destruction of your mirror you just have to mirror again your logical volume...

Stf ;-)
Ravi_8
Honored Contributor

Re: bootable mirror disk

Hi,

mkboot before mirroring the boot disk is necessary to make that disk also bootable.

Now in your case, break the mirror, run the mediainit ( to format the disk, i don't it is necessary) and recreate the mirror. (use mkboot this time)

never give up
Sami Aqel
Occasional Advisor

Re: bootable mirror disk

Thanks Stf and Ravi
Sami Aqel
Occasional Advisor

Re: bootable mirror disk

Hi again.

How can i be sure that data is written on both mirrored disks ?
Hoang Minh Tuan
Regular Advisor

Re: bootable mirror disk

Hi Sami Agel,

You can check how data is written or not by command #lvsync mirrored_lv , if it synchronise, it mean that your data is mirroring between 2 disks.
Or you can check 2 your physical disks appear by command lvdisplay -v mirrored_lv_name.

HMT
Bus wait at bus station, Work wait at my work station
Suraj_2
Valued Contributor

Re: bootable mirror disk

Hi

Hope while running the pvcreate , u have used -B option
This option is must to while making bootable disk. If not used the options, there will not be BDRA area in disk.


Rgds
Suraj
Sami Aqel
Occasional Advisor

Re: bootable mirror disk

HMT,

The command #lvsync mirrored_lv , return :
Resynchronized logical volume "mirrored_lv_name".


Suraj,
i used this command to create pv
pvcreate -f /dev/rdsk/c2t2d0
option -B not used.
nsjayasundar
Advisor

Re: bootable mirror disk

Dear Agel,

Please follow the steps while crearing the mirror root disk.

Create PV with -B option
#pvcreate -B (disk)

And then vgextend to vg00
#vgextend /dev/vg00 (disk)
then mkboot
#mkboot (disk)
#mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t2d0


Then u do lvextend for each LV is in vg00 required for you.
#lvextend -m 1 /dev/vg00/lvol1 (disk)

Finally use #lvlnboot to update the vg00 group.

if the above step not followed, the system will not boot from the mirrored disk, even though it is mirrored.

Cheers