Operating System - HP-UX
1834639 Members
2612 Online
110069 Solutions
New Discussion

Extending the size of a filesystem

 
SOLVED
Go to solution
Simon R Wootton
Regular Advisor

Extending the size of a filesystem

I have a filesystem in VG00 called /backup, this filesystem has 1 mirror.

Q. How do I extend the size of both /archive and it's mirror ? I have free space available in VG00. If I extend it using SAM, will SAM extend both for me ?

All help rewarded !
Simon
5 REPLIES 5
Armin Feller
Honored Contributor
Solution

Re: Extending the size of a filesystem

Yes, SAM will extend both the primary- and the mirrored side.

If you don't have OnlineJFS you need to umount the filesystem first.

Here the steps if you want to use the command line:

# cd /
# umount /backup

# lvextend -L /dev/vg00/lvolX
# extendfs -F vxfs /dev/vg00/rlvolX

# mount -F vxfs /dev/vg00/lvolX /backup
# bdf

Regards ...
Armin
Rainer von Bongartz
Honored Contributor

Re: Extending the size of a filesystem

No problem here:
SAM and the lvextend/extendfs commands will take care of the mirror

Umount the file system first, then extend the logical volume
with lvextend or SAM.

Afterwards extend the filesystem with SAM or extendfs

SEE: man lvextend extendfs

Regards ...
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
T G Manikandan
Honored Contributor

Re: Extending the size of a filesystem

Make sure that you have enough space on both the disks(including mirror) to increase the logical volume.

If that is okay then you can just do a

lvextend and fsadm to increase the size.(onlineJfs)
lvextend and extendfs(without Online jfs)
T G Manikandan
Honored Contributor

Re: Extending the size of a filesystem

Ravi_8
Honored Contributor

Re: Extending the size of a filesystem

Hi,

If you have online JFS you can extend without unmounting the file system, otherwise unmout the file system and follow the procedure as posted by Armin.
when you extend the file system (say 100 MB) both the archive and mirror lvol's will be extended by same amount (i.e 100 MB)
never give up