Solved

veritas fs expansion

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

749 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