1829119 Members
2023 Online
109986 Solutions
New Discussion

expanding /var

 
Larry Cole
Occasional Contributor

expanding /var

I need to expand /var to hold my netdump client crash... Is there a tool like unix's fsadm to expand /var on the fly ? or do I have to unmount the file system. Also what are the steps and commands involved with this ..
thanks

gnuckles@pacificex.com
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: expanding /var

If there is disk space you should be able to expand /var with the linuxconf utility.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Balaji N
Honored Contributor

Re: expanding /var

hi

check out GNU parted.
http://www.gnu.org/software/parted/

assuming that you have free space on your disk and all you are running is ext2/ext3 FS, u should be able to do with this.
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Jerome Henry
Honored Contributor

Re: expanding /var

Hi !

Parted is a great tool, you'll have a good tut on the site suggested by Balaji.

Adding to these tips, here are some bad and good news :

- you can't do it on the fly. You have to umount the partitions you want to resize...
- One easy way is to add a HD, and mount it under the partition you want to expand.

Whatesoever, the best way to do this resizing is :
Go to parted,
Make yourself a boot disk, they provide many .img files for that according to your hardware.
Read parted how to, but you'll see it's quite easy tool.
Boot from boot disk, and just do it (of course you backed up what you could from the crash...)

Good luck.

J

You can lean only on what resists you...
Caesar_3
Esteemed Contributor

Re: expanding /var

Hello!

As the guys says the parted is the good
tool.
If not use GNU/Linux then you will need to
create boot disket of GNU/Linux
This you could find on the site of parted
www.gnu.org/software/parted/

Caesar
Larry Cole
Occasional Contributor

Re: expanding /var

This should have included the release Redhat9 (linuxconf is no longer included) and the fact that we are using lvm and have enough space on the existing volume group. We ended up creating a new(to keep it separate) logical volume and filesystem with: lvcreate, mke2fs -j followed by mount. Thanks for your responses.
Balaji N
Honored Contributor

Re: expanding /var

it got removed since RHL7.3
http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/release-notes/x86/

it is good that they got rid of it. i remember people telling that if u edit a config manually and then use linux conf to edit it again, all the manual changes or lost and something like that.

ur better of with vi and the shell than using any fancy gui's unless u are new.

-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.