1824339 Members
3350 Online
109669 Solutions
New Discussion юеВ

Re: mirror with MirrorUX

 
SOLVED
Go to solution
cheesytime
Regular Advisor

mirror with MirrorUX

I have a fresh 11.31 box with MirrorUX on it, I would like to mirror the boot sector and all the Logical Volumes as well.

I have two disks, see below:

Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 2 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 0 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GHUS153073VL3800
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 1 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GHUS153073VL3800
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

The first question is how do I find out which disk is being used by vg00 and the LVs?

I tried vgdisplay -v /dev/vg00 but it does not show what disk is being used.

Help on mirroring my root and LVs will be appreciated!
15 REPLIES 15
Pete Randall
Outstanding Contributor
Solution

Re: mirror with MirrorUX

vgdisplay -v should show you (at the end) the physical volumes comprising the vg.

I'm attaching my notes on mirroring your root volume.


Pete


Pete
cheesytime
Regular Advisor

Re: mirror with MirrorUX

here goes my vgdisplay pete

-bash-4.1# vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4385
VGDA 2
PE Size (Mbytes) 16
Total PE 4375
Alloc PE 4371
Free PE 4
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1122560m
VG Max Extents 70160

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 112
Allocated PE 112
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 1024
Allocated PE 1024
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 64
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 12400
Current LE 775
Allocated PE 775
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20304
Current LE 1269
Allocated PE 1269
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 8384
Current LE 524
Allocated PE 524
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 50
Allocated PE 50
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 4272
Current LE 267
Allocated PE 267
Used PV 1

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 4576
Current LE 286
Allocated PE 286
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk4
PV Status available
Total PE 4375
Free PE 4
Autoswitch On
Proactive Polling On
Torsten.
Acclaimed Contributor

Re: mirror with MirrorUX

ioscan -m dsf

will help you here.
Just use the other diskx device for the mirror.

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!   
Torsten.
Acclaimed Contributor

Re: mirror with MirrorUX

Once you have found the device, e.g. /dev/disk/disk7

use the appendix from this manual:

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf

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!   
cheesytime
Regular Advisor

Re: mirror with MirrorUX

-bash-4.1# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk3 /dev/rdsk/c2t0d0
/dev/rdisk/disk4 /dev/rdsk/c2t1d0
/dev/rdisk/disk5 /dev/rdsk/c0t0d0

I assume disk4 is the one being used.

could you please tell me the steps to mirror the boot area and all the LVs that are currently being held by VG00?

I tried

-bash-4.1# /usr/sbin/pvcreate -B /dev/rdsk/c2t0d0
pvcreate: The physical volume already belongs to a volume group

Torsten.
Acclaimed Contributor

Re: mirror with MirrorUX

You need to use

/dev/rdisk/disk3

as the mirror disk device.

Follow the manual (PA-RISC procedure).

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!   
cheesytime
Regular Advisor

Re: mirror with MirrorUX

-bash-4.1# vgextend /dev/vg00 /dev/rdisk/disk3
vgextend: Physical volume "/dev/rdisk/disk3" is not a block special file.
Usage: vgextend
[-f]
[-A Autobackup]
[-x Extensibility]
[-g PhysicalVoumeGroupName]
[-z SparePV]
VolumeGroupName PhysicalVolumePath ...
Note: The "-z" and "-f" options are not available for volume group version 2.0 or higher.
"PhysicalVolumePath": must be a block special file.
cheesytime
Regular Advisor

Re: mirror with MirrorUX

Torsten I forgot

-bash-4.1# pvcreate /dev/rdisk/disk3
pvcreate: The physical volume already belongs to a volume group
Torsten.
Acclaimed Contributor

Re: mirror with MirrorUX

Please post

# strings /etc/lvmtab

# vgdisplay -v

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!   
cheesytime
Regular Advisor

Re: mirror with MirrorUX

-bash-4.1# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk4
-bash-4.1# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4385
VGDA 2
PE Size (Mbytes) 16
Total PE 4375
Alloc PE 4371
Free PE 4
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1122560m
VG Max Extents 70160

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 112
Allocated PE 112
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 1024
Allocated PE 1024
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 64
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 12400
Current LE 775
Allocated PE 775
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20304
Current LE 1269
Allocated PE 1269
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 8384
Current LE 524
Allocated PE 524
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 50
Allocated PE 50
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 4272
Current LE 267
Allocated PE 267
Used PV 1

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 4576
Current LE 286
Allocated PE 286
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk4
PV Status available
Total PE 4375
Free PE 4
Autoswitch On
Proactive Polling On
Torsten.
Acclaimed Contributor

Re: mirror with MirrorUX

I assume there was a previous installation on that disk and you no longer need the data on it.

Right?

In this case use

pvcreate -f -B /dev/rdisk/disk3

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!   
cheesytime
Regular Advisor

Re: mirror with MirrorUX

Right, points submitted, it worked!

-bash-4.1# pvcreate -f -B /dev/rdisk/disk3
Physical volume "/dev/rdisk/disk3" has been successfully created.

There was a previous UX installation, yep!

-bash-4.1# pvcreate -f -B /dev/rdisk/disk3
Physical volume "/dev/rdisk/disk3" has been successfully created.

How do i extend the VG now?
Mirror all the LVs?
Mirror boot sector?

-bash-4.1# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk4 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk4
Root: lvol3 on: /dev/disk/disk4
Swap: lvol2 on: /dev/disk/disk4
Dump: lvol2 on: /dev/disk/disk4, 0
Torsten.
Acclaimed Contributor

Re: mirror with MirrorUX

I posted a document earlier in this thread ...

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!   
P Arumugavel
Respected Contributor

Re: mirror with MirrorUX

Hi thatthotspots,
refer the attachment to have idea on legacy and persistent dsf.
The path-independent nature of a persistent DSF offers the benefit of simplified management. Each persistent DSF represents a LUN, unlike a legacy DSF which is really a path to a LUN. In a multi-path environment, the number of persistent DSFs is smaller than the number of legacy DSFs. Applications do not have to be aware of multi-pathing, simply using a persistent DSF provides multi-pathing support....
Venkata Nagesh
Occasional Advisor

Re: mirror with MirrorUX

Follow the PA-RISC procedure in the document poster by Torsten.