1836725 Members
3241 Online
110109 Solutions
New Discussion

Re: MIRROR - UX

 
Daniel Duarte
Frequent Advisor

MIRROR - UX

I need to include 2 (two) disks in one VG to increase one specific LVOL where it´s already in a mirror, and I need to share these disks in mirrors too.

Attachment file the configuration actu
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: MIRROR - UX

So, vgextend the volume group with the 2 new disks.

Then, lvextend the lvol with the 2 new disks as well.

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Slawomir Gora
Honored Contributor

Re: MIRROR - UX

Hi,

you have to:
1. initialize disks:
pvcreate /dev/rdsk/disk1
pvcreate /dev/rdsk/disk2
2. extend vg with your new two disks
vgextend vgname /dev/dsk/disk1 /dev/dsk/disk2
3. extend logical volumen
lvextend -L new_size /dev/vgname/lvolX /dev/disk1 /dev/disk2

4. extend file system
if you have OnlineJFS installed use fsadm command
if not then umount lvol and use extendfs command


Suraj_2
Valued Contributor

Re: MIRROR - UX

Hi Gora

Out of query.
in your post you asked to just extend the lv after adding the disks in VG.

But as per Daniel he is having two disks in VG having mirror copy of each.
take a eg:

VG: VG01
PV name : pv1, pv2

New PV added : pv3, pv4

After adding these two new PVs, the lv should be extended in pv3 and should have mirror of this in pv4.

Correct me if I am wrong.

Can you clarify please

Rgds
Suraj
Bharat Katkar
Honored Contributor

Re: MIRROR - UX

Hi Daniel,

1. initialize disks:
pvcreate /dev/rdsk/disk1
pvcreate /dev/rdsk/disk2
(use -f option if they have existing PV's on it)

2. extend vg with your new two disks
vgextend vgname /dev/dsk/disk1 /dev/dsk/disk2

3. Extending and mirroring logical volume for e.g. lvol12
** lvreduce -m 0
** lvextend -L
** lvextend -m 1 .......
{ PLease refer to the man pages for complete syntax of command }
4. extendfs ...

Hope that helps.
Regards,
You need to know a lot to actually know how little you know