Operating System - HP-UX
1752755 Members
5133 Online
108789 Solutions
New Discussion юеВ

how to check the boot disks are mirrrored

 
SOLVED
Go to solution
gany59
Regular Advisor

how to check the boot disks are mirrrored

Hi folks..

shall we use lvlnboot command in a running server
to determine the boot disk is mirrored or not.
Is there nay other way to find whether the boot disk is mirrored or not.

10 REPLIES 10
Pete Randall
Outstanding Contributor
Solution

Re: how to check the boot disks are mirrrored

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t6d0 (10/0/15/1.6.0) -- Boot Disk
/dev/dsk/c3t5d0 (10/0/15/1.5.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c3t6d0
/dev/dsk/c3t5d0
Root: lvol3 on: /dev/dsk/c3t6d0
/dev/dsk/c3t5d0
Swap: lvol2 on: /dev/dsk/c3t6d0
/dev/dsk/c3t5d0
Dump: lvol2 on: /dev/dsk/c3t6d0, 0


You could also look at lvdisplay output for the lvols in vg00, checking the mirror count.
"lvdisplay /dev/vg00/lvol?" should return mirror copies 1, for all the key lvols.


Pete

Pete
Raj D.
Honored Contributor

Re: how to check the boot disks are mirrrored

gany,
You can use :
# lvlnboot -v vg00
It wil show both the boot disk.

Also check:
# lvdisplay -v /dev/vg00/lvol3

You will see both the boot disk . You can check for all the lvs ( 1 to 9).

- Use setboot to check if the alternate diks boot path has been set.

- booting from the mirrored disk would be wise to verify the mirror, after it has been created.


Hth,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Torsten.
Acclaimed Contributor

Re: how to check the boot disks are mirrrored

As said, perform a

# lvdisplay -v /dev/vg00...

to see if a LVOL is mirrored.




Be aware your system can probably use a HARDWARE RAID too.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: how to check the boot disks are mirrrored

shalom,

lvlnboot -v

Certainly does the job.

But if you want to REALLY be sure. Run a test and boot off the alternate disk.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
gany59
Regular Advisor

Re: how to check the boot disks are mirrrored

hi folks

i heard from some thread that we are not suppose to run the lvlnboot command in the running server.. it will cause some impact like that.
is it true..
Pete Randall
Outstanding Contributor

Re: how to check the boot disks are mirrrored

With the -v option the command is perfectly safe. It simply queries and reports. See the man pages.


Pete

Pete
Michael Steele_2
Honored Contributor

Re: how to check the boot disks are mirrrored

Hi

RE: "...i heard from some thread that we are not suppose to run the lvlnboot command in the running server.. it will cause some impact like that..."

Total fabrication from a non HP-UX admin.
Support Fatherhood - Stop Family Law
Torsten.
Acclaimed Contributor

Re: how to check the boot disks are mirrrored

lvlnboot can not really harm, but lvrmboot can.


Thats why you should always know what you are doing (refer to man pages).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Hakki Aydin Ucar
Honored Contributor

Re: how to check the boot disks are mirrrored

In Addition you can check your license :
Mirroring requires the add-on product HP MirrorDisk/UX (B2491BA). This is an optional product available on the HP-UX 11i application release media. To confirm that you have HP MirrorDisk/UX installed on your system, enter the swlist command.
# swlist -l fileset | grep -i mirror
LVM.LVM-MIRROR-RUN B.11.23 LVM Mirror