Solved

veritas fs expansion

Posted on 2011-09-22
2
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: 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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
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…
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.

724 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