Operating System - HP-UX
1825512 Members
1812 Online
109681 Solutions
New Discussion юеВ

Extend file system (/opt) size

 
SOLVED
Go to solution
prateek_1
Advisor

Extend file system (/opt) size

hi all,

i need to extend my file system /opt size form 5Gb to 10 Gb when i use fsadm command i got folloing msg;-
bash-2.05# fsadm -F vxfs -b 10240 /opt
vxfs fsadm: V-3-23544: sectors must be >= 4359121 as they are currently in use.
as i have a internal disk with 33Gb size how can i use it to extend file system size.
thanks in advance
14 REPLIES 14
SoorajCleris
Honored Contributor

Re: Extend file system (/opt) size

Hi Prateek,

Remember , in fsadm , "-b" option takes the size in KB.

May I know what is 10240 ??? now your filesystem will reduce to 10MB aprox.

If you want to use 10 GB mention as -b 10485760

-b 10240M

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
prateek_1
Advisor

Re: Extend file system (/opt) size

its 10485760 Kb
SoorajCleris
Honored Contributor

Re: Extend file system (/opt) size

Ok

Mention that in that command. What happens then???

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
prateek_1
Advisor

Re: Extend file system (/opt) size

vxfs fsadm: V-3-25811: cannot expand /dev/vg00/rlvol8 more than size of the underlying device - 5349376 sectors

/opt max size is ~5Gb only i want to add one of my free internal disk in so i use that space to increase file system size
TTr
Honored Contributor

Re: Extend file system (/opt) size

Did you expand the volume first with lvextend? You need to do that before running fsadm.
Hakki Aydin Ucar
Honored Contributor

Re: Extend file system (/opt) size

Hi,
What vgdisplay says for free PE ?

# vgdisplay -v vg00 | more

Look for the PE size AND Free PE (at bottom)

then calculate ( PE Size * Free PE ) to find realy have that space.
singh sanjeev
Trusted Contributor

Re: Extend file system (/opt) size

fsadm -F vxfs -b 10240 /opt

use "M"

fsadm -b 10240M /opt

i hope this will solve your problem. assuming you have already done lvextend like below.

lvextend -L 10240


Sanjeev Singh
prateek_1
Advisor

Re: Extend file system (/opt) size

i had done this
prateek_1
Advisor

Re: Extend file system (/opt) size

got error message :-lvextend: Volume group "/dev/vg00" does not exist in the "/etc/lvmtab" file.

after lvmcommand
SoorajCleris
Honored Contributor

Re: Extend file system (/opt) size

paste the full command and output here.

lvextend and

#strings /etc/lvmtab

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
S. Ney
Trusted Contributor
Solution

Re: Extend file system (/opt) size

You mentioned you wanted to add a free internal disk and then extend /opt?

Also I'm not sure what difference it makes with LVM commands but I usually do system admin tasks as root with the default posix shell.

pvdisplay /dev/dsk (or /dev/disk) to verify disk is not currently in use
pvcreate -f /dev/rdsk (/dev/rdisk)
vgextend /dev/vg00 /dev/dsk/
vgdisplay -v /dev/vg00 (ensure disk was added to vg properly)
lvextend -L 10240 /dev/vg00/lvol# (that corresponds to the lvol /opt is mounted on)
fsadm -F vxfs -b 10240M /opt
lvdisplay
bdf


madhuchakkaravarthy
Trusted Contributor

Re: Extend file system (/opt) size

hi

don't use -f option to pvcreate unless recommended .use the tool like evainfo to find out the lun to be used.

suppose if ur not sure and made some mistake u will in a position to answer.

regards

MC
prateek_1
Advisor

Re: Extend file system (/opt) size

thanks all it helps me
prateek_1
Advisor

Re: Extend file system (/opt) size

thanks