Operating System - HP-UX
1753740 Members
3679 Online
108799 Solutions
New Discussion юеВ

DRD clone and MirrorDisk/UX under HPUX

 
SOLVED
Go to solution
ouazir
Frequent Advisor

DRD clone and MirrorDisk/UX under HPUX

Hello evry one,
on a Itanium with HP-UX V 3 I have two disks allocated to vg00 and the disks are mirrored, i want to remove the mirrored disk withou altering the operating system and replace it with a drd clone because i have already a physical mirrored disk.
this is my configuration:

#vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4353
VGDA 4
PE Size (Mbytes) 32
Total PE 8690
Alloc PE 7806
Free PE 884
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2228736m
VG Max Extents 69648

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

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

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

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 128
Current LE 4
Allocated PE 8
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 10336
Current LE 323
Allocated PE 646
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 5632
Current LE 176
Allocated PE 352
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 8704
Current LE 272
Allocated PE 544
Used PV 2

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

LV Name /dev/vg00/lvbackup
LV Status available/syncd
LV Size (Mbytes) 153600
Current LE 4800
Allocated PE 4800
Used PV 2


--- Physical volumes ---
PV Name /dev/disk/disk2_p2
PV Status available
Total PE 4343
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c2t0d0s2
PV Status available
Total PE 4347
Free PE 884
Autoswitch On
Proactive Polling On

#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk2_p2 -- Boot Disk
/dev/dsk/c2t0d0s2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk2_p2
/dev/dsk/c2t0d0s2
Root: lvol3 on: /dev/disk/disk2_p2
/dev/dsk/c2t0d0s2
Swap: lvol2 on: /dev/disk/disk2_p2
Dump: lvol2 on: /dev/disk/disk2_p2, 0

#setboot
Primary bootpath : 0/4/1/0.0xbb443e5fb4b1c55.0x0 (/dev/rdisk/disk2)
HA Alternate bootpath : 0/4/1/0.0x5000c5001cb2629d.0x0 (/dev/rdisk/disk3)
Alternate bootpath : 0/4/2/0 (LAN Interface)

Autoboot is ON (enabled)
Hyperthreading : ON
: ON (next boot)

2 REPLIES 2
No├й
Valued Contributor

Re: DRD clone and MirrorDisk/UX under HPUX

You can reduce the mirror with "lvreduce -m 0 ..." and then you can use this procedure:

http://www.hpuxtips.es/?q=node/146

I hope it's what you want.
Regards
robin antony
New Member
Solution

Re: DRD clone and MirrorDisk/UX under HPUX

1. reduce the mirrored Lvs:

# for i in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8
> do lvreduce -m 0 /dev/vg00/$i /dev/dsk/c2t0d0s2
> done

2. reduce vg:

vgreduce /dev/vg00 /dev/dsk/c2t0d0s2

3.lvlnboot -R

Edit the /stand/boot.conf and remove the entries for the disk /dev/dsk/c2t0d0s2

Procedure for DRD cloning.
==========================
Ensure DRD software is installed.

1.- Clone the root disk.

root@sheldon:/ # drd clone -x overwrite=true -v -t /dev/dsk/c2t0d0s2
2.- Mount the image.

root@sheldon:/ # drd mount

3.Check the mount by displaying the drd00 volume group.

root@sheldon:/ # vgdisplay drd00