Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mirrorvg made nonsense mirroring 1

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
I'd added new disk to rootvg. (before there was only one disk in the VG). After "mirrorvg rootvg" command completed I discovered that some of LV are mirrored not OK! Means both copies of a few LVs exists on the same disk!!!

# lslv -m hd2
hd2:/usr
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0403 hdisk0 0248 hdisk0
0002 0404 hdisk0 0249 hdisk0
0003 0405 hdisk0 0250 hdisk0
0004 0406 hdisk0 0251 hdisk0
0005 0407 hdisk0 0252 hdisk0
0006 0408 hdisk0 0253 hdisk0
0007 0409 hdisk0 0254 hdisk0


How it was possible to create the mirroring on tha same phisical disk? Is it OK???


r,m.
 
The "mirrorvg -c 2 rootvg hdisk0 hdisk1" should work fine. What commands did you run? Are your disks of differing sizes?

 
The VG was extended by the disk having the same size as first one...

$ lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 542 99 26..00..00..37..36
hdisk1 active 542 99 00..00..00..00..99
$ lscfg -vp|grep -p -e hdisk0 -e hdisk1
hdisk0 10-88-00-8,0 16 Bit LVD SCSI Disk Drive (18200
MB)

hdisk1 10-88-00-10,0 16 Bit LVD SCSI Disk Drive (18200
MB)

$


The command I run to setup mirroring was "mirrorvg rootvg".


(I have set proper mirroring creating third copy on proper disk and removing one copy from hdisk0)

The only what is strange how system could allow to create to mirror copies on the same phisical disk.

It was like setting mirror on VG build of one disk - I guess it wouldn't work but my case says something different.


r,m.
 
Could you check the options of the LV's

# smitty lvsc
--> change a logical volume
--> select logical volume

* Logical volume NAME testlv
RANGE of physical volumes minimum
MAXIMUM NUMBER of PHYSICAL VOLUMES [32]
Allocate each logical partition copy yes
on a SEPARATE physical volume?

When the last option is not set to YES then the mirror will not be set on a seperate disk!

RN
 
I thought "mirrorvg" command is so clever that can handle it. As I told mirroring made on one disk is for me none-mirroring. I still guess there is a bug in mirrorvg script.


r.m.
 
@rneve:

The last option should be set to "superstrict".

As far as I understood this parameter it means:

"yes" - create mirrors on the second disk
further copies may reside on the same hdisk.

"superstrict" - create mirrors on the second disk
all further used partitions will too be mirrord on the
second disk.

right?
 
It is possible to create a mirror on the same disk although it doesn't make too much sense. I would recommend using the command that jprabaker suggested (mirrorvg -c2 rootvg hdisk0 hdisk1). I've done this many many times and works as expected.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top