1748106 Members
5087 Online
108758 Solutions
New Discussion юеВ

lvmpvg

 
Luke Morgan
Frequent Advisor

lvmpvg

Hi,

I have 4 disks that I want to make into a mirrored physical volume group.
The disks are in a fibre enclosure with two controllers.
Therefore, from ioscan I have 8 devices referring to these 4 disks.
/dev/dsk/c5t0d0
/dev/dsk/c5t1d0
/dev/dsk/c5t2d0
/dev/dsk/c5t3d0

/dev/dsk/c6t0d0
/dev/dsk/c6t1d0
/dev/dsk/c6t2d0
/dev/dsk/c6t3d0


When creating the physical volume groups in /etc/lvmpvg
should I alternate the controllers for the two disks like so :
VG /dev/vg01
PVG PVG1
/dev/dsk/c5t0d0
/dev/dsk/c6t1d0
PVG PVG1m
/dev/dsk/c5t2d0
/dev/dsk/c6t3d0

or put in the device files for each disk with both controllers like so?
VG /dev/vg01
PVG PVG1
/dev/dsk/c5t0d0
/dev/dsk/c6t0d0
/dev/dsk/c5t1d0
/dev/dsk/c6t1d0
PVG PVG1m
/dev/dsk/c5t2d0
/dev/dsk/c6t2d0
/dev/dsk/c5t3d0
/dev/dsk/c6t3d0

Thanks for your help

Luke
2 REPLIES 2
Deoncia Grayson_1
Honored Contributor

Re: lvmpvg

When creating your pvg file you should use the second option:
VG /dev/vg01
PVG PVG1
/dev/dsk/c5t0d0
/dev/dsk/c6t0d0
/dev/dsk/c5t1d0
/dev/dsk/c6t1d0
PVG PVG1m
/dev/dsk/c5t2d0
/dev/dsk/c6t2d0
/dev/dsk/c5t3d0
/dev/dsk/c6t3d0

this will ensure the mirror is going to the right disks and you have your alternate links to the disks listed as well.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Matthew Ghofrani
Regular Advisor

Re: lvmpvg

I would even go one step further and alternate between c5 and c6 in the second method between the controllers so that one disks' primary c is 5 while the second's primary c is 6 like so.

VG /dev/vg01
PVG PVG1
/dev/dsk/c5t0d0
/dev/dsk/c6t0d0
/dev/dsk/c6t1d0
/dev/dsk/c5t1d0
PVG PVG1m
/dev/dsk/c5t2d0
/dev/dsk/c6t2d0
/dev/dsk/c6t3d0
/dev/dsk/c5t3d0

Matthew From Boston
Life is full of bugs