Increase space in /var


 
Thread Tools Search this Thread
Operating Systems Solaris Increase space in /var
# 8  
Old 01-08-2016
I dont have much experience in moving slices, or SVM, so I am bit reluctant to do that on a production server....
# 9  
Old 01-08-2016
What is stopping you to create a virtual machine and learn ?

Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
# 10  
Old 01-08-2016
they will give me an old v240 SUN server, and I will try on that
# 11  
Old 01-08-2016
If there is a large directory hierarchy under /var, you could also use the existing slice 4 as /var/subdir (splitting /var into two filesystems). Note that this will only work if there are no hard links between files under /var/subdir and other parts of /var.

Mount slice 4 as /x, copy the current /var/subdir file hierarchy to /x, move /var/subdir to /var/oldsubdir, unmount /x, mount slice 4 as /var/subdir, resolve any differences you find between /var/oldsubdir and /var/subdir (which would only happen if files were being updated in /var/subdir while you were copying the old /var/subdir to the newly mounted partition), and then rm -rf /var/oldsubdir to free up the space that is now duplicated elsewhere.
# 12  
Old 01-08-2016
Attention! s4 is marked with a flag, check with
Code:
swap -l

if it's used as a swap area.
If yes, you may not use it!!
Actually I would look if you can sacrifice the /export/home partition, this seems hardly used and over-dimensioned.
# 13  
Old 01-08-2016
Is there more than one disk in that server? If so, you can use "liveupgrade" to create a new disk layout and after one reboot you are done with resizing everything to your needs...

https://docs.oracle.com/cd/E19455-01/806-7933/
# 14  
Old 01-08-2016
for swap:

Code:
# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c1t0d0s4   32,28     16 4202672 4202672
/export/home/swapfile  -       16 4194288 4194288
#


two disk on the server
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