Operating System - HP-UX
1834140 Members
3022 Online
110064 Solutions
New Discussion

How to tell if disks are mirrored or not?

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

How to tell if disks are mirrored or not?

Hi,

Our system is HP-UX 11.11, 2 - 36GB disks (VG00) (internal), VxVM 3.5 (can't tell if it's the base version or not), VxFS/OnlineJFS.

How can we tell if the two boot disks are mirrored or not?

10 points to any good answer.
Thank you
Gino

15 REPLIES 15
Mark Grant
Honored Contributor
Solution

Re: How to tell if disks are mirrored or not?

You don't actually mirror the disks, you mirror the logical volumes so look for a "Mirors" greater than 0 when you do "lvdisplay /dev/vg00/lvol1" etc.

Never preceed any demonstration with anything more predictive than "watch this"
Bernhard Mueller
Honored Contributor

Re: How to tell if disks are mirrored or not?

For internal disks with LVM mirroring and more or less default lvol naming simply do:
# for i in /dev/vg00/lv* ; do
> lvdisplay $i | grep "Mirror"
> done
#
Mark Greene_1
Honored Contributor

Re: How to tell if disks are mirrored or not?

More importantly, you want to know if the second disk is actually bootable. Run lvlnboot -v to find out.

mark
the future will be a lot like now, only later
Michael Schulte zur Sur
Honored Contributor

Re: How to tell if disks are mirrored or not?

Hi Gino,

start sam, select disk and file systems, select logical volumes and that shows you, how many mirror copies there are.

greetings,

Michael
DIPAK KUMAR ROY
Frequent Advisor

Re: How to tell if disks are mirrored or not?

Use "vgdisplay -v /dev/vg00" and see
1. if all logical volumes are using 2 Pvs. look for Used PV.
2. for all logical volumes the "Current LE" is half of "Allocated PE"

For example:

LV Name /dev/vg00/lvol9
LV status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 512
Used PV 2


Thanks
Dipak
Steven E. Protter
Exalted Contributor

Re: How to tell if disks are mirrored or not?

lvlnboot -v works on my vxvm captable system.

does pvdisplay really work on a vxvm volume?

It should, its not a lvm specific command I guess.

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
Helen French
Honored Contributor

Re: How to tell if disks are mirrored or not?

You can check it through:

# lvlnboot -v
# lvdisplay -v /dev/vg00/lvol1 (check for lvol2, lvol3 etc)

Also to see if Mirror/UX is present:

# swlist
Life is a promise, fulfill it!
Jean-Louis Phelix
Honored Contributor

Re: How to tell if disks are mirrored or not?

Hi,

Perhaps one important question is missing ... Are you using VxVM also for your boot disk or root dg ? I think that it can be done with VxVM 3.5.

Regards
It works for me (© Bill McNAMARA ...)
Gino Castoldi_2
Honored Contributor

Re: How to tell if disks are mirrored or not?

Hi Jead-Louis,

I am not sure if VxVM (Volume Mgmr) is managing the boot disk or not. How do I tell?

10 points to any good answer.
Thank you
Gino
DIPAK KUMAR ROY
Frequent Advisor

Re: How to tell if disks are mirrored or not?

Try these commands...

1. vxprint -htg rootdg

2. vgdisplay -v /dev/vg00

If #1 command displays information about your rootdg then you are using VXVM.

If #2 command displays information about your vg00 then you are using LVM.

Thanks
Mark Grant
Honored Contributor

Re: How to tell if disks are mirrored or not?

Gino,

Your original post mentions (vg00) which is why I assumed you were using LVM and not VxVM
Never preceed any demonstration with anything more predictive than "watch this"
Helen French
Honored Contributor

Re: How to tell if disks are mirrored or not?

If the LVM commands (vgdisplay, lvdisplay) worked on your root VG (vg00), then you are using LVM. Vxvm uses seperate commands for it's operation. You can also check the /etc/fstab and /etc/inittab files.
Life is a promise, fulfill it!
Gino Castoldi_2
Honored Contributor

Re: How to tell if disks are mirrored or not?

Hi,

vgdisplay /dev/vg00 lists LVM information so
I should assume that LVM is managing the
boot disk(vg00), and not VxVM?
(Cur/Act PV 2).


10 points to any good answer.
Thank you
Gino
Mark Grant
Honored Contributor

Re: How to tell if disks are mirrored or not?

Yes Gino, you can safely assume that :)
Never preceed any demonstration with anything more predictive than "watch this"
Tim Sanko
Trusted Contributor

Re: How to tell if disks are mirrored or not?

Gino,

The root volume is mirrored with MirrorDisk/UX (in case you didn't know).

Unless you are doing some really fancy things, the Online JFS is nice, but I personally prefer symmetrix disks...

Are the disks managed by LVM, well if the disk lvol is vg00 (found by mount,bdf,etc...)
then yes the boot volume is controlled by LVM not by OnlineJFS.

The next Question to be answered is how do I reallocate the mentioned boot volume?

The answer is , Use IgniteUX. Download it and the latest PAX patch. If you have a dds2-3 on the server, do a make_tape_recovery -Av. Otherwise you need to set up an ignite server. Then set up a remote recovery after booting from the install CD...

Tim