Operating System - HP-UX
1833012 Members
2841 Online
110048 Solutions
New Discussion

Re: howto increase mounted vxfs mirror

 
SOLVED
Go to solution
David Scholz
Frequent Advisor

howto increase mounted vxfs mirror

Hi,
I need to understand what todo if I want to increase a mounted /usr/local and /var filesystem.
I found in fsadn manpage that this can be done online, but I'm new to vxfs, coming from solaris (lvm), and need advice if I can do this online. Attached is a screenshot of the sam admin window.
Can I use sam to do this? Is sam using fsadmor extendfs?

Here is the volume group that exists.

# vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 22
Open LV 22
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 7623
Free PE 1125
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

regards,

David
6 REPLIES 6
Hasan  Atasoy
Honored Contributor

Re: howto increase mounted vxfs mirror

hi david;
you have 2 phyical disk in vg00.
in order to us mirror. you need mirror-ux license. if you have it ; you can mirror your lv by
lvextend -m 1 /dev/vg00/lvname /dev/dsk/cxtydz .
also you have ~16Gb free space in vg00

hasan.
J. Bravo
Respected Contributor

Re: howto increase mounted vxfs mirror

Hi!

To verify that you have installed OnlineJFS:

swlist -l product|grep -i online

The output is something like this:

OnlineJFS01 4.1.008 Online features of the VxFS File System


If you have OnlineJFS, then the extend is easy to do:

lvextend -L SizeInMB /dev/vg00/lvolx
fsadm -F vxfs -b SizeinK /mountpoint

If you don't have OnlineJFS then you need to umount the filesystems in order to extendfs it, and you need to boot in single user mode in order to extend /var.

With SAM you can extend file systems too, but for LVM the best way is to do it through line interface.

Regards;

J. Bravo.
whiteknight
Honored Contributor

Re: howto increase mounted vxfs mirror

David,

You can use sam to extend the lvol online without umount the mount point
make sure your have online JFS installed in the system.

Example:-
# swlist -l product | grep -i online
OnlineJFS B.11.11 Online features of the VxFS File System

WK
Problem never ends, you must know how to fix it
David Scholz
Frequent Advisor

Re: howto increase mounted vxfs mirror

I don't seem to have the OnlineJFS feature installed. How can I get this? Is it bound to and specific contract (money, maybe stupid question ;)?

# swlist -l product|grep -i online
PHCO_25831 1.0 SCSI Ultra160 driver Online Addition script
[root@bbmagvc:/]


the procdure is like this then?

umount /dev/vg00/lvol1

lvextend -L larger_size /dev/vg00/lvol1

extendfs -F hfs /dev/vg00/rlvol1

mount /dev/vg00/lvol1 mount_directory
J. Bravo
Respected Contributor
Solution

Re: howto increase mounted vxfs mirror

Hi!

OnlineJFS in not a free of charge tool... However, it's very recommendable to buy it, because it makes your work easier.

Well, since you don't have OnlineJFS, that you need is to boot in single user mode if you want to umount /var and follow the steps you are said.

By the way, the default filesystem type in HP-UX is VxFS, HFS is only used in /stand.

Regards;

J. Bravo.

Pete Randall
Outstanding Contributor

Re: howto increase mounted vxfs mirror

David,

Yes, Online JFS is a purchaseable product. See http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3929CA
You will need to contact HP or your local reseller.

Your procedure looks good. I always refer to the EXAMPLES section of the lvextend man page to make sure I'm not forgetting something.


Pete

Pete