Solved

veritas fs expansion

Posted on 2011-09-22
2
197 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now