1836626 Members
1610 Online
110102 Solutions
New Discussion

MCSG increase lvol size

 
SOLVED
Go to solution
Chi Yi Lee
Advisor

MCSG increase lvol size

Hello~

We have two nodes.
we have vg00 and vg01.
vg01 is package.
We would like to increase lvol size
on one of the lvol in vg01.

I tried:
#lvextend -L 512 /dev/vg01/lvol_log
but nothing happen. It says the change has been saved, but I don't see any changes.

the lvol is mirrored.

can someone help me?
steps of command will be great help
thanks~
3 REPLIES 3
Ermin Borovac
Honored Contributor
Solution

Re: MCSG increase lvol size

You have extended lvol, so now you have to extend filesystem that resides on that lvol.

If you don't have OnlineJFS you have to umount fs first.

# umount /dev/vg01/lvol_log
# extendfs /dev/vg01/rlvol_log
# mount /dev/vg01/lvol_log

With OnlineJFS you don't need to umount.

# fsadm -b
Chi Yi Lee
Advisor

Re: MCSG increase lvol size

Do I need to unmirror it first?
Shaikh Imran
Honored Contributor

Re: MCSG increase lvol size

Hi,
I will advise you to take a complete backup first before doing this excercise.

& Yes you have to unmirror first--extend the origininal F.S. then mirror it again.
To mirror is very simple :

FYI:
unmirror:
lvreduce -m 0 /dev/vg01/lvol_log

since you already created the lvol,now extend the required filesystem. with

# extendfs /dev/vg01/rlvol_log

Now do the mirroring again as per this:

Mirroring on non-root logical volumes:
Reference the above steps to determine if MirrorDisk/UX
is installed before continuing. For this example, /dev/vg01 will be the volume group and /dev/dsk/c0t5d0 will be the mirror disk.

1) pvcreate /dev/rdsk/c0t5d0

2) vgextend /dev/vg01 /dev/rdsk/c0t5d0

3) lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c0t5d0

4) lvextend -m 1 /dev/vg01/lvol2 /dev/dsk/c0t5d0

Continue for the remaining logical volumes...


Regards,


I'll sleep when i am dead.