/opt FS extention

 
silusan
Regular Advisor

/opt FS extention

 

 

Need to increase /opt file system from 8Gb to 10 GB. Can I do it without unmounting? How do I do it?

Thank you.

 

# cat /etc/fstab

# System /etc/fstab file. 

Static information about the file systems

# See fstab(4) and sam(1M) for further details on configuring devices.

/dev/vg00/lvol3 / vxfs delaylog 0 1

/dev/vg00/lvol1 /stand vxfs tranflush 0 1

/dev/vg00/lvol4 /home vxfs delaylog 0 2

/dev/vg00/lvol5 /opt vxfs delaylog 0 2      ===> need to increase its size from 8Gb to 10GB

/dev/vg00/lvol6 /tmp vxfs delaylog 0 2

/dev/vg00/lvol7 /usr vxfs delaylog 0 2

/dev/vg00/lvol8 /var vxfs delaylog 0 2

/dev/vg00/osmf /osmf vxfs delaylog 0 2

/dev/vg00/lvol9 /var/adm/crash vxfs delaylog 0 2

#

# fstyp /dev/vg00/lvol5

vxfs

#

# swlist -l product | grep vxfs  

PHCO_40671            1.0            VRTS 5.0.1 GARP1 VRTS vxfs Command Patch  

PHKL_40670            1.0            VRTS 5.0.1 GARP1 VRTSvxfs Kernel Patch  

PHKL_41710            1.0            vxfs4.1 cumulative patch  

VRTSvxfs              5.0.31.5       VERITAS File System

#

1 REPLY 1
Patrick Wallek
Honored Contributor

Re: /opt FS extention

If you have Online JFS / Advanced JFS installed on your system, you can do this online.

 

# lvextend -L 10240 /dev/vg00/lvol5

# fsadm -b 10240m /opt

# bdf /opt 

 

If you do not have online JFS, you will have to boot to single-user mode, so that /opt is unmounted, and then do the following:

 

# vgchange -a y vg00

# mount /usr

# lvextend -L 10240 /dev/vg00/lvol5

# extendfs -F vxfs /dev/vg00/rlvol5

# mount /opt

# bdf /opt

 

The 'bdf' in both steps is just to verify the new size.

 

To check and see if you have the Online JFS / Advanced JFS license you can try the following:

 

1) Try the 'vxlicrep' command.  If it is installed you should see something like this --

# vxlicrep

VERITAS License Manager vxlicrep utility version 3.02.006
Copyright (C) 1996-2004 VERITAS Software Corp. All Rights reserved.

Creating a report on all VERITAS products installed on this system

-----------------***********************-----------------

License Key = 010449565889805115946529
Product Name = VERITAS File System
License Type = PERMANENT
Site License = YES

Features :=
HP_OnlineJFS = Enabled

 

2) Look for the Online JFS bundle of software:

 

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

 

3) If you execute the 'fsadm -b' command above and it works, then you have the appropriate software.  If it does not work, then you will have to use the 2nd set of steps above in single-user mode.