Solved

veritas fs expansion

Posted on 2011-09-22
2
210 Views
Last Modified: 2012-05-12
I would like to expand the fs below by 2 GB. How best to calculate the 2GB in order to be able to add it to the current size 61444096. lvextend uses the final size in MB you see. Would I just do ((1024 x 2)+ (61444096/1024))

I have fs that i want to expand and i've more than 12G space in my vg vg02 to do it.

#bdf /test

Filesystem            kbytes       used          avail          %used Mounted on
/dev/vg02/lvol1     61444096   50928704 10497768  83%    /test

#vgdisplay /dev/vg02
...
....
....
PE Size (Mbytes) 4
...
...
Free PE 3213

lvextend  -L 62052 /dev/vg02/lvol1
fsadm -F vxfs -b 62052M test

bc
61444096/1024
60004
1024*2
2048
2048+60004
62052


0
Comment
Question by:lolaferrari
2 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36582509
Looks good.  To make your life a bit easier, the lv commands can work with offsets ( +2G ) as opposed to absolute sizes, which I believe is all fsadm can work with.  fsadm however can use unit modifiers other than M.
lvextend  -L+2G /dev/vg02/lvol1

Open in new window

0
 

Author Comment

by:lolaferrari
ID: 36817641
so you can give an offset to lv command but you have to give the total new size of the fs with fssadm?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question