Increase space in /var


 
Thread Tools Search this Thread
Operating Systems Solaris Increase space in /var
# 1  
Old 12-24-2015
Increase space in /var

Hi

Please can I have some help in increasing
Code:
/var

in my
Code:
solaris 10

server.
At the moment the size configured is small and I need to expand it:

Code:
 df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0      869M   510M   307M    63%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   3.8G   1.6M   3.8G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/dev/dsk/c1t0d0s6      4.7G   3.3G   1.4G    71%    /usr
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                       869M   510M   307M    63%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                       869M   510M   307M    63%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/dsk/c1t0d0s3      237M    93M   121M    44%    /var
swap                   3.8G    96K   3.8G     1%    /tmp
swap                   3.8G    56K   3.8G     1%    /var/run
/dev/dsk/c3t500A09829DE3E799d0s6
                       197G    75G   120G    39%    /u01
/dev/dsk/c3t500A09829DE3E799d1s6
                       197G    24G   170G    13%    /u02
/dev/dsk/c1t0d0s5      232M   132M    77M    64%    /opt
/dev/dsk/c1t0d0s1      622M   405M   161M    72%    /usr/openwin
/dev/dsk/c1t0d0s7       59G   2.2G    56G     4%    /export/home
bash-3.2#

# 2  
Old 12-24-2015
How is this disk partitioned?

It looks like /dev/dsk/c1t0d0s4 isn't currently mounted. Can you expand slice 3 to add the space currently allocated to the slice 4, or is slice 4 being used but just not currently mounted?
# 3  
Old 01-07-2016
s4 is probably empty (not used).
In order to give a suggestion for expanding partitions, we need your partition map
Code:
/usr/sbin/prtvtoc /dev/dsk/c1t0d0s0

# 4  
Old 01-08-2016
Hello!

this is my partition map:

Code:
# /usr/sbin/prtvtoc /dev/dsk/c1t0d0s0
* /dev/dsk/c1t0d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*     424 sectors/track
*      24 tracks/cylinder
*   10176 sectors/cylinder
*   14089 cylinders
*   14087 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    4202688   1892736   6095423   /
       1      4    00    6095424   1353408   7448831   /usr/openwin
       2      5    00          0 143349312 143349311
       3      7    00    7448832    518976   7967807   /var
       4      3    01          0   4202688   4202687
       5      0    00    7967808    508800   8476607   /opt
       6      4    00    8476608   9972480  18449087   /usr
       7      8    00   18449088 124900224 143349311   /export/home
#

# 5  
Old 01-08-2016
There are no unused blocks on your disk; all blocks are allocated to existing partitions.

If you want to increase the size of /var and you want to keep it on this disk, you'll have to back up all of the partitions on your disk, reformat it with a larger partition for /var and a smaller partition for one or more of your other filesystems, and then reload the partitions you modified from your backups.
This User Gave Thanks to Don Cragun For This Post:
# 6  
Old 01-08-2016
Thank you very much, I will do that,

But tell me what about space in slice 4?
# 7  
Old 01-08-2016
Slice 4 isn't being used, but to make it part of /var it would have to contain blocks adjacent to slice 3. You could merge slice 0 and slice 4 to grow /, but you can't use the blocks in slice 4 to grow slice 3.

You could move slices 0 and 1 to use lower numbered blocks (keeping the same sizes) and and expand slice 3 using blocks no longer being used at the end of the current slice 1 to expand the start of slice 3.
This User Gave Thanks to Don Cragun For This Post:
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