Operating System - HP-UX
1751712 Members
5187 Online
108781 Solutions
New Discussion юеВ

Extending a LV when mirrored

 
SOLVED
Go to solution
David Owens_1
Advisor

Extending a LV when mirrored

I have a logical volume that is mirrored. I want to increase the size from 26 GB to 30 GB.
# lvextend -L 30000 /dev/vg02/lvol1

After extending the LV, I cannot unmount to extend the file system.

Is that because its mirrored or should I go to single user?

Is there anything that I must do to the mirror after extending the file system?


Thanks,
David Owens
Ingersoll-Rand Co.
6 REPLIES 6
Stf
Esteemed Contributor
Solution

Re: Extending a LV when mirrored

Hello,

you should go into single user mode, or use the command fuser on the fs.

it's better going into single user mode, after that your mirror copy should synchronyse at reboot.

you can verify if it does with lvdisplay -v /dev/vgxx/lvoly

If it didn't synchronise use vgsync /dev/vgxx

Stf ;-)
David Owens_1
Advisor

Re: Extending a LV when mirrored

I was able to run

# fuser -u /dev/vg02/lvol1

and find the process that was preventing me from unmounting. I gracefully killed (-15) the process and was able to unmount, extend the file system and mount.

After remounting, the mirrors were in sync.

Thanks
Bill Hassell
Honored Contributor

Re: Extending a LV when mirrored

ust a note: When a logical volume is mirrored (double or triple mirror), lvextend will automatically extend the mirror(s). In simple mirror configs, the additional PE's are taken from the same disks as the original LV. Note that extending a disk has no effect on the filesystem. The filesystem must be rearranged/reconfigured to access the additional space, hence the need to un-mount the filesystem. With the optional Online JFS product, fsadm can be used to extend the lvol as well as the filesystem without un-mounting.


Bill Hassell, sysadmin
abhijeet_7
Advisor

Re: Extending a LV when mirrored

i think,ONLINE JFS(ver 3.3) can sort these
problems.

regards
abhik
we work, to become...not acquire
Ivajlo Yanakiev
Respected Contributor

Re: Extending a LV when mirrored

First if you have Online JFS you no need to umount FS. Just extend it
If you have not Online JFS you must unmount FS and extend fs using
extendfs /dev/vg02/lvol1
you no need to go into single user mode
just stop all process that work over FS
and unmount it.
Use fuser -uk /dev/vg02/lvol1

Ivajlo Yanakiev
Respected Contributor

Re: Extending a LV when mirrored

also your LV is mirror automaticly.
If you want to Sync anyway , use
#vgsync vg02