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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mirroring disks.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm new to HP-UX 10.x and could use some instruction on the proper way to mirror 4 disks (jamaica drives).....

Here's all the info I think will be needed:

disks ( btw, what the diff between /dev/dsk and /dev/rdsk)
c4t1d0 c4t3d0 c4t5d0 c4t9d0
c4t2d0 c4t4d0 c4t8d0

unused:
8/12.1.0
8/12.10.0
8/12.2.0
8/12.3.0
8/12.4.0
8/12.5.0
8/12.6.0
8/12.7.0
8/12.8.0
8/12.9.0

from: ls -l /dev/vg*
vg-d00
vg-d01
vg-d02
vg-d03
vg-d04
vg-d05
vg00
vgu00

 
/dev/dsk/ = block device files (read/write happens in block mode)
/dev/rdsk = raw device file (read/write works bit by bit)

Did you run pvcreate commnad on all this?
You have not mention which one is mirrored disk and which one is not. Looks like you have vg already created. Need more info. like which disk is belog to vg00 and so.

Sachin
 
I'm lost here... what info do you need?

All that I know is that there is already 2 other sets of disks mirrored.

the listing of disks above are those that need to be mirrored.

 
Hi eltorito,
second disk is c?t?d0
This is simple process for one disk to mirror.

1. pvcreate -B /dev/rdsk/c?t?d0
2. vgextend /dev/vg00 /dev/dsk/c?t?d0
3. mkboot /dev/rdsk/c?t?d0
4. mkboot -a "hpux -lq" /dev/rdsk/c?t?d0
6. For x in 1 2 3 4 5 6 7 8 9
do
lvextend -m 1 /dev/vg00/lvol$x /dev/dsk/c?t?d0
done
7. lvlnboot -R

to check after boot
lvlnboot -v

Also you need extra software HP-UX mirror. it is not part of OS.

 
do I want to use vg00? or should I create vg-d06?

here's the output of vgdisplay -v vg* (if it helps)--- Volume groups ---
VG Name /dev/vg-d00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 1024
VGDA 4
PE Size (Mbytes) 4
Total PE 2046
Alloc PE 2046
Free PE 0
Total PVG 0

--- Logical volumes ---
LV Name /dev/vg-d00/lv-d00
LV Status available/syncd
LV Size (Mbytes) 4092
Current LE 1023
Allocated PE 2046
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c0t3d0
PV Status available
Total PE 1023
Free PE 0

PV Name /dev/dsk/c1t3d0
PV Status available
Total PE 1023
Free PE 0


VG Name /dev/vg-d01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 1024
VGDA 4
PE Size (Mbytes) 4
Total PE 2046
Alloc PE 2046
Free PE 0
Total PVG 0

--- Logical volumes ---
LV Name /dev/vg-d01/lv-d01
LV Status available/syncd
LV Size (Mbytes) 4092
Current LE 1023
Allocated PE 2046
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t4d0
PV Status available
Total PE 1023
Free PE 0

PV Name /dev/dsk/c1t4d0
PV Status available
Total PE 1023
Free PE 0
VG Name /dev/vg-d02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 1024
VGDA 4
PE Size (Mbytes) 4
Total PE 2046
Alloc PE 2046
Free PE 0
Total PVG 0
--- Logical volumes ---
LV Name /dev/vg-d02/lv-d02
LV Status available/syncd
LV Size (Mbytes) 4092
Current LE 1023
Allocated PE 2046
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t5d0
PV Status available
Total PE 1023
Free PE 0

PV Name /dev/dsk/c1t5d0
PV Status available
Total PE 1023
Free PE 0

VG Name /dev/vg-d03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2171
VGDA 4
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4340
Free PE 0
Total PVG 0

--- Logical volumes ---
LV Name /dev/vg-d03/lv-d03
LV Status available/syncd
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t0d0
PV Status available
Total PE 2170
Free PE 0

PV Name /dev/dsk/c1t0d0
PV Status available
Total PE 2170
Free PE 0

VG Name /dev/vg-d04
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2171
VGDA 4
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4340
Free PE 0
Total PVG 0

--- Logical volumes ---
LV Name /dev/vg-d04/lv-d04
LV Status available/syncd
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Used PV 2

--- Physical volumes ---
PV Name /dev/dsk/c0t1d0
PV Status available
Total PE 2170
Free PE 0

PV Name /dev/dsk/c1t1d0
PV Status available
Total PE 2170
Free PE 0


VG Name /dev/vg-d05
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2171
VGDA 4
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4340
Free PE 0
Total PVG 0

--- Logical volumes ---
LV Name /dev/vg-d05/lv-d05
LV Status available/syncd
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t15d0
PV Status available
Total PE 2170
Free PE 0
PV Name /dev/dsk/c1t15d0
PV Status available
Total PE 2170
Free PE 0


VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2500
VGDA 4
PE Size (Mbytes) 4
Total PE 2046
Alloc PE 1444
Free PE 602
Total PVG 0
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 48
Current LE 12
Allocated PE 24
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1120
Current LE 280
Allocated PE 560
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 84
Current LE 21
Allocated PE 42
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 32
Current LE 8
Allocated PE 16
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 100
Current LE 25
Allocated PE 50
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 492
Current LE 123
Allocated PE 246
Used PV 2
LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 500
Current LE 125
Allocated PE 250
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 1023
Free PE 301
PV Name /dev/dsk/c1t6d0
PV Status available
Total PE 1023
Free PE 301


VG Name /dev/vgu00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2171
VGDA 4
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4340
Free PE 0
Total PVG 0

--- Logical volumes ---
LV Name /dev/vgu00/lvu00
LV Status available/syncd
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t2d0
PV Status available
Total PE 2170
Free PE 0

PV Name /dev/dsk/c1t2d0
PV Status available
Total PE 2170
Free PE 0


anything else you may need to know?


 
Here's /dev/dsk:
c0t0d0 c0t1d0 c0t3d0 c0t5d0 c1t0d0 c1t1d0 c1t3d0 c1t5d0 c2t2d0 c4t1d0 c4t3d0 c4t5d0
c4t9d0 c0t15d0 c0t2d0 c0t4d0 c0t6d0 c1t15d0 c1t2d0 c1t4d0 c1t6d0 c4t10d0 c4t2d0 c4t4d0
c4t8d0

According to SAM, everything is being use but the c4t*d*(They're already being mirrored to/from)
[ there are 8 new drives, the c4t*d*... basically using 4, and mirroring each to one of their own)

so shouldn't I have to create a new logical drive for 4 of the c4*? (sorry for my ignorance.. :( )
From the way it looks in same, there are logical drives for the others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top