Operating System - HP-UX
1748182 Members
3534 Online
108759 Solutions
New Discussion юеВ

Re: mirroring the volume group

 
SOLVED
Go to solution
gany59
Regular Advisor

mirroring the volume group

how to mirror the volume group.
Can any one tell me the steps.
6 REPLIES 6
Manix
Honored Contributor

Re: mirroring the volume group

Hello !!

AFAIK lvols are mirrored no the VGs
secondly whats the machine model PA /IA ?
is this the root vg ?,send vgdisplay -v /dev/vgname output

uname -a , model , post the output so that
people can help.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
gany59
Regular Advisor

Re: mirroring the volume group

Hi,

The below is my output:
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1064960 291648 767280 28% /
/dev/vg00/lvol1 1835008 127328 1694448 7% /stand
/dev/vg00/lvol8 15728640 13592392 2120144 87% /var
/dev/vg00/lvol7 8159232 3132304 4987664 39% /usr
/dev/vg00/lvol4 10485760 2920488 7506280 28% /tmp
/dev/vg00/lvol6 9633792 6422384 3186416 67% /opt
/dev/vg00/lvol5 3145728 906808 2221464 29% /home
/dev/dbvg/lvoldata 13107200 6308090 6374172 50% /var/opt/eloquence/8.1/data
/dev/dbvg/lvollog 6815744 4210411 2442507 63% /var/opt/eloquence/8.1/log
/dev/vg00/lvolfwlog
4194304 17705 3915567 0% /var/opt/eloquence/8.1/fwlog
# uname -a
HP-UX dmocoi B.11.23 U ia64 2031643528 unlimited-user license

# vgdisplay -v dbvg
--- Volume groups ---
VG Name /dev/dbvg
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 17405
VGDA 2
PE Size (Mbytes) 256
Total PE 271
Alloc PE 76
Free PE 195
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/dbvg/lvoldata
LV Status available/syncd
LV Size (Mbytes) 12800
Current LE 50
Allocated PE 50
Used PV 1

LV Name /dev/dbvg/lvollog
LV Status available/syncd
LV Size (Mbytes) 6656
Current LE 26
Allocated PE 26
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c3t3d0
PV Status available
Total PE 271
Free PE 195
Autoswitch On
Proactive Polling On


Now i want to mirror the /dev/dbvg and their respective lvols.

Please let me know the procedure.

Thanks in advance!!!!
Manix
Honored Contributor
Solution

Re: mirroring the volume group

Now it`s clear what you want to do exactly..
>>Now i want to mirror the /dev/dbvg and their respective lvols.

So /dev/dbvg is not a boot VG & you just have one PV there ,so add a new PV ( of same size if possible ) then mirror the lvols.
--- Physical volumes ---
PV Name /dev/dsk/c3t3d0
PV Status available

steps for you:-

1) pvcreate /dev/rdsk/cxtxdx ( new disk)
2) vgextend /dev/dbvg /dev/dsk/cxtxdx
3) lvextend -m 1 /dev/dbvg/lvolname /dev/dsk/cxtxdx
( it will by default extend on new disk if it`s the only other disk)

Hope this helps.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
gany59
Regular Advisor

Re: mirroring the volume group

thanks Manix...

i got a clear view on that :)
Ismail Azad
Esteemed Contributor

Re: mirroring the volume group

Hi gany,


MIRRORRING IS DONE AT LV LEVEL AND NOT AT VG LEVEL WITH THE LVM DISK PARTITIONING APPROACH USING HPUX.

Just a thought.... However, although the subject of your question was quiet perplexing at first, the command that came into mind included in LVM v2 if I remember right is vgmove. However, that would not be "mirroring" but "migration" . :)

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Kranti Mahmud
Honored Contributor

Re: mirroring the volume group

Hi gany59,

U need to do LV mirror in following way:

Data mirroring is provided by an additionnal purchasable software product called MirrorDisk/UX.

Note: the following example is using the volume group vg01 and the logical volume lvhome

To add a mirror to an existing logical volume:
lvextend -m 1 /dev/vg01/lvhome

This will add 1 mirror (2 copies of the filesystem).
To add 2 mirrors (3 copies of the filesystem) use -m 2 instead.

To create a new logical volume of 200M with 1 mirror:
lvcreate -m 1 -L 200 /dev/vg01


Rgds-Kranti
Dont look BACK as U will miss something INFRONT!