Computing.Net > Forums > Solaris > /var filesystem fuLL!!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

/var filesystem fuLL!!

Reply to Message Icon

Name: Lostinkmart
Date: October 21, 2002 at 02:28:59 Pacific
OS: solaris 8
CPU/Ram: 170/138
Comment:

my /var directory currently is only 30 megs.
i have unassigned space on my hard drive and i need to make the /var directory bigger without lossin the data thats on it already
any suggestions?




Sponsored Link
Ads by Google

Response Number 1
Name: belov
Date: October 21, 2002 at 06:07:04 Pacific
Reply:

Hi

In order to grow file system and do not loose your data, use Solstice DiskSuite 4.2

You should install it from Software Disk 2 of 2 located there in Early Access directory

run pkgadd -d /{directory path *(all packages)

if you use CDE run metatool
do replicas on unused slices
then concatenate your var directory (I RECOMMEND to see docs.sun.com for step by step configurations of doing stripe sets and concatenations)

In command line growfs -M slice1 slice2 (in graphics it construct concatination for you)

It's a very flexible tool for solving such problems like yours

Good luck

Write me if you have questions



0

Response Number 2
Name: Mark M
Date: October 21, 2002 at 13:17:30 Pacific
Reply:

You know, you might be able to avoid doing this.

The main reason for the var partition filling up so quickly is system accounting logs growing.

change to /var/adm and ls -l to see if your wtmp and wtmpx files are huge. If they are then you can just do

cat /dev/null > /var/adm/wtmp
cat /dev/null > /var/adm/wtmpx

Note that you won't have any last logs for the time previous to doing this if you do it.

It's ok if this is just a personal machine though, the logs will start rebuilding. I always put a script on my machines (and servers at work) to backup these files every month and to create empty versions. It stops the var partition usage flying up through the roof.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: /var filesystem fuLL!!

how to increase var filesystem in solaris www.computing.net/answers/solaris/how-to-increase-var-filesystem-in-solaris/5106.html

Identifying disks www.computing.net/answers/solaris/identifying-disks/2425.html

Cannot access /var/adm/utmpx, www.computing.net/answers/solaris/cannot-access-varadmutmpx/4935.html