1753529 Members
4889 Online
108795 Solutions
New Discussion юеВ

OS Mirroring

 
SOLVED
Go to solution
Has
Occasional Advisor

OS Mirroring

Hi ,
I'd like to know if the OS Logical Volumes are mirrored on another disk or not.

Thanks for your help.
HAS
10 REPLIES 10
MarkSyder
Honored Contributor
Solution

Re: OS Mirroring

SAM -> disks and filesystems -> logical volumes. The next to last fiels tells you how many mirror copies of an lvol there are.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Ivan Krastev
Honored Contributor

Re: OS Mirroring

Just execute vgdisplay -v vg00
to see if there are any mirrors.

regards,
ivan
Luk Vandenbussche
Honored Contributor

Re: OS Mirroring

execute vgdisplay -v vg00

check the following parameters for each lv


Current LE xxx
Allocated PE yyy => must be 2 time xxx
Used PV 2 (is mirrored to another disk)

To check the status of each lv

lvdisplay -v /dev/vgxx/lvolx
Ralph Grothe
Honored Contributor

Re: OS Mirroring

One way
(see how lvsnap isn't mirrored unlike all the other LVs):

# lvdisplay $(vgdisplay -v vg00|awk '/LV Name/{print$NF}')|grep -E LV\ Name\|opies
LV Name /dev/vg00/lvol1
Mirror copies 1
LV Name /dev/vg00/lvol2
Mirror copies 1
LV Name /dev/vg00/lvol3
Mirror copies 1
LV Name /dev/vg00/lvol4
Mirror copies 1
LV Name /dev/vg00/lvol5
Mirror copies 1
LV Name /dev/vg00/lvol6
Mirror copies 1
LV Name /dev/vg00/lvol7
Mirror copies 1
LV Name /dev/vg00/lvol8
Mirror copies 1
LV Name /dev/vg00/lvol9
Mirror copies 1
LV Name /dev/vg00/lv_data01
Mirror copies 1
LV Name /dev/vg00/lv_data03
Mirror copies 1
LV Name /dev/vg00/lvol10
Mirror copies 1
LV Name /dev/vg00/lv_tomcat_webapps
Mirror copies 1
LV Name /dev/vg00/lvsnap
Mirror copies 0
LV Name /dev/vg00/lv_perfdata
Mirror copies 1

Madness, thy name is system administration
Fat Scrape
Honored Contributor

Re: OS Mirroring

Hi,

lvdisplay -v /dev/vgxx/lvolxxx

This is the output of mirrored logical volume:

For explample / (root logical volume)

lvdisplay -v /dev/vg00/lvol3
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 560
Current LE 35
Allocated PE 70
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t1d0s2 35 35
/dev/dsk/c2t0d0s2 35 35

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t1d0s2 00275 current /dev/dsk/c2t0d0s2 00275 current
00001 /dev/dsk/c2t1d0s2 00276 current /dev/dsk/c2t0d0s2 00276 current
00002 /dev/dsk/c2t1d0s2 00277 current /dev/dsk/c2t0d0s2 00277 current
00003 /dev/dsk/c2t1d0s2 00278 current /dev/dsk/c2t0d0s2 00278 current
00004 /dev/dsk/c2t1d0s2 00279 current /dev/dsk/c2t0d0s2 00279 current
00005 /dev/dsk/c2t1d0s2 00280 current /dev/dsk/c2t0d0s2 00280 current
00006 /dev/dsk/c2t1d0s2 00281 current /dev/dsk/c2t0d0s2 00281 current
....

Mirror copies 1 (number of mirror copy)
/dev/dsk/c2t1d0s2 is the primary disk and
/dev/dsk/c2t0d0s2 is the mirror copy of primary disk

Regards,

Fat
Has
Occasional Advisor

Re: OS Mirroring

Thanks to all for your contribution,
I've checked and found that all LVs are not mirrored.
Is it possible that there is mirroring at another level, like at disk level?

Thanks
Steven E. Protter
Exalted Contributor

Re: OS Mirroring

Shalom,

Disk level mirroring would be done via hardware raid on your system. If you have an rx26xx or better hardware raid is available.

Otherwise OS mirroring on the logical volume level is what you need to do.

Procedure:

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

That's a PA-RISC 11.11 procedure.

model
uname -a

I can also provide an Itanium procedure if asked.

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
MarkSyder
Honored Contributor

Re: OS Mirroring

No - mirroring is done at lvol level.

Mark
The triumph of evil requires only that good men do nothing
MarkSyder
Honored Contributor

Re: OS Mirroring

Apologies - if SEP says one thing and I say another, trust SEP.

Mark (no points for this post or the last one please)
The triumph of evil requires only that good men do nothing