Operating System - HP-UX
1830503 Members
2474 Online
110006 Solutions
New Discussion

PVG striping and mirroring

 
SOLVED
Go to solution
David Johnson_6
Advisor

PVG striping and mirroring

I am running HP-UX 11.0 on HP9000 L2000 server.
I am PVG striping and mirroring accroos 8 disk in HVD10.
Primary 4 disak and mirroring 4 disk
# vgcreate -s 1 /dev/vgDist /dev/dsk/c7t12d0
"
# lvcreate -D y -s g -m 1 -L 1000 -n lvol1 /dev/vg09
"
one of the disk was added incorrectly.
I need to remove one disk from the mirror side, and and the disk the belongs there to make the mirro on seperate controller.
Not sure how
7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor

Re: PVG striping and mirroring

Hi,

Did you make sure in fact the PVG information in /etc/lvmpvg and 'vgdisplay -v vgname' was listed correctly?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
David Johnson_6
Advisor

Re: PVG striping and mirroring

Yes, I believe so.
ccchpl(/root_home)#cat /etc/lvmpvg
VG /dev/vg09
PVG vg09_Primary
/dev/dsk/c7t12d0
/dev/dsk/c6t12d0
/dev/dsk/c7t11d0
/dev/dsk/c6t11d0
PVG vg09_Mirror
/dev/dsk/c7t10d0
/dev/dsk/c6t10d0
/dev/dsk/c7t9d0
/dev/dsk/c7t8d0 -- wronge disk needs to be
- //dev/dsk/c6t9d0

Not sure I am on the right track. Was wondering if a controller failure if I would lose both PRiamry and mirror
Sridhar Bhaskarla
Honored Contributor

Re: PVG striping and mirroring

Hi,

You can simply edit the lvmpvg file and make changes. I believe there might be a typo when you were extending the disks into the PVGs.

Once the modification is done, ensure it shows up correctly in 'vgdisplay -v vgxx' output. Then your lvcreate with distributed/pvg strict should work.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jos de Ruiter
Advisor

Re: PVG striping and mirroring

Have you a split bus in de HVD10??
Give me de exact /dev/vgxx/cxtxd0 from al the 8 disken (ioscan -fnC disk)

Groetjes,
JdR
Jos de Ruiter
David Johnson_6
Advisor

Re: PVG striping and mirroring

Yes,
ccchpl(/root_home)#ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE IBM DMVS18D
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/0/1/1.2.0 sdisk CLAIMED DEVICE IBM DMVS18D
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 3 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 4 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 304
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 9 0/7/0/0.8.0 sdisk CLAIMED DEVICE IBM DMVS18D
/dev/dsk/c6t8d0 /dev/rdsk/c6t8d0
disk 10 0/7/0/0.9.0 sdisk CLAIMED DEVICE IBM DMVS18D
/dev/dsk/c6t9d0 /dev/rdsk/c6t9d0
disk 11 0/7/0/0.10.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c6t10d0 /dev/rdsk/c6t10d0
disk 12 0/7/0/0.11.0 sdisk CLAIMED DEVICE IBM DMVS18D
/dev/dsk/c6t11d0 /dev/rdsk/c6t11d0
disk 13 0/7/0/0.12.0 sdisk CLAIMED DEVICE IBM DMVS18D
/dev/dsk/c6t12d0 /dev/rdsk/c6t12d0
disk 19 0/7/0/1.8.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c7t8d0 /dev/rdsk/c7t8d0
disk 20 0/7/0/1.9.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c7t9d0 /dev/rdsk/c7t9d0
disk 21 0/7/0/1.10.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c7t10d0 /dev/rdsk/c7t10d0
disk 22 0/7/0/1.11.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c7t11d0 /dev/rdsk/c7t11d0
disk 23 0/7/0/1.12.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c7t12d0 /dev/rdsk/c7t12d0

All disk are spread accross both controllers
both pvg_pri and pvg_mir are on both controllers. if i lose one I lose them all.

How do I know the size of my strips in /dev/vg09
Patrick Wallek
Honored Contributor
Solution

Re: PVG striping and mirroring

The stripe size in your case is the same as the physical extent size since you are using Distributed stripes (aka extent based stripes).

Do a 'vgdisplay vg09' and look for PE Size.
David Johnson_6
Advisor

Re: PVG striping and mirroring

OK.
Now a third party built vg09. It was built accross both controllers to give more read/write speed. Beacuse me company was going to have a second server on 2 more controller for backup. We do not ans will not have the second server.
Do you think I should rebuild vg09 to put pvg_pri on one controller and pvg_mir on another, for safety.
I am affraid that will maker the disk slower.