Increase space in /var


 
Thread Tools Search this Thread
Operating Systems Solaris Increase space in /var
# 15  
Old 01-08-2016
So you cannot use the slice 4; you would need to delete the swapfile on it, before you can use it for another purpose.
To follow up my idea in using the /export/home, could you run a
Code:
du -k /export/home

to see if there is any else data, besides the swapfile.
# 16  
Old 01-08-2016
the output is:

Code:
# du -k /export/home
8       /export/home/lost+found
1       /export/home/sae/activation
1172    /export/home/sae/INdeleted
279     /export/home/sae/tumrecon
1       /export/home/sae/anni
1       /export/home/sae/Anni
251085  /export/home/sae
2349278 /export/home
#

# 17  
Old 01-08-2016
Well, the most simple plan is to increase /var to 2GB.
With these steps
0. be sure you can login to a ILO, connect to the console, and login as root - you need that only in the case of a system recovery
1. create another 2 GB swapfile on /export/home, and add it to swap
2. delete the partition /dev/dsk/c1t0d0s4 from swap
3. in format -> partition, change the flag from swap to var
4. create a new file system on /dev/rdsk/c1t0d0s4
5. mount /dev/dsk/c1t0d0s4 to /mnt
6. copy over the data from /var to /mnt, using tar or cpio
7. verify that /mnt looks like /var, then umount the /mnt
9. in /etc/vfstab, change the /var line from /dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s3 to /dev/dsk/c1t0d0s4 /dev/rdsk/c1t0d0s4
9a. in /etc/vfstab, change the swap line from /dev/dsk/c1t0d0s4 to the new swapfile
10. reboot with "shutdown -g 0 -i 6 -y", keep fingers crossed that it comes up
If this is new for you, you should first practice on a non-productive system.

Last edited by MadeInGermany; 01-08-2016 at 04:59 PM.. Reason: 9a
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to increase the /var (UFS) filesystem and root disk under veritas control?

I need to increase the /var (UFS) filesystem and root disk under veritas control or root disk is encapsulated # df -k /var Filesystem kbytes used avail capacity Mounted on /dev/vx/dsk/var 13241195 12475897 674524 96% /var # fstyp /dev/vx/dsk/var ufs # pkginfo... (1 Reply)
Discussion started by: amity
1 Replies

2. Solaris

how to increase space in directory without reboot

hi friends, i am a new system adminstrator and i had a directory /h03 getting full at 95%, how do i give more space to bring down it to about 70% ? i cannot delete any files inside as it is all important to the applications /dev/dsk/c1t3d0s0 64G 60G 3.8G 95% /h03 any idea ? (4 Replies)
Discussion started by: Exposure
4 Replies

3. AIX

Increase for the Page space

Guy's This is our page space , i want some information about page space and I want the good way to how to increase the page space and what's the recommended page space that need to be configured Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum hd6 hdisk0... (8 Replies)
Discussion started by: Mr.AIX
8 Replies

4. Filesystems, Disks and Memory

how to increase space NCR 4.0

Hello, I have a little problem, I would like to know how to add disk space on an NCR version 4 and above all whether it still contains vdisk space smp001-4 4.0 3.0 /dev/dsk/vdisk15 3940505 3807833 132672 97% /data in the dktab : /dev/dsk/vdisk15 mirror 2 ... (0 Replies)
Discussion started by: magnetic
0 Replies

5. AIX

how to increase the space unix directores

Hi have IBM aix. unix my directories are full when i use $ df -k filesystem kbytes used avail capacity mounted on /dev/root 288880 288880 288880 100% / /proc 0 0 0 ... (4 Replies)
Discussion started by: raosurya
4 Replies

6. Filesystems, Disks and Memory

Calculating Drive Space Increase

I trying to calculate drive space with RAID. I know the equation is: (n-1)/n * drive capacity but, when I use that my calculations don't come out when I compare to what I already know exists: I have 3 - 18.2gb SCSI drives that contain two logical drives C & D. Using the math, (3-1)/3 * 18.2... (1 Reply)
Discussion started by: JTalbot017
1 Replies

7. AIX

chfs increase /var limit at 512mb?

Is there a limit of 512Mb when doing a "chfs -a size=XXXXX /myfs" ? I managed to increase /var to 512MB fine, no issues, then i wanted to increase /usr to 2Gb, but when i enter: # chfs -a size=2260992 /usr chfs: 0506-908 Cannot reduce size... (5 Replies)
Discussion started by: craigp84
5 Replies

8. HP-UX

increase fs /var

Question I am not a hp admin but aix admin. I am wondering if to increase the fs /var we really have to umount the fs so means stop the system ... just to do an extendlv ? It is what I saw on man page of extendlv and that surprise me. On aix we can dynamically increase a fs and with version... (2 Replies)
Discussion started by: touny
2 Replies

9. UNIX for Dummies Questions & Answers

How do I increase disk space available to a directory?

I know very basic Unix commands s I would really appreacite the assistance of a Unix guru. I am installing an application on a Sun server, when attempting to install I get an error that says I do not have enough sapce allocated for my install directory. Error says it has 7235m but needs 15360m.... (2 Replies)
Discussion started by: rhack
2 Replies

10. Filesystems, Disks and Memory

increase /var on DG-UX box

Hello, I need to increase /var on a DG-UX R4.2 AViion Pentium Pro box - having never used DG-UX I'm unsure how to do this - can anyone point me in the right direction? Also, can I do it with the system up or do I have to take it to single user mode?? MAny thanks. (0 Replies)
Discussion started by: AnneliseW
0 Replies
Login or Register to Ask a Question