File system size change


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users File system size change
# 1  
Old 05-11-2005
File system size change

Good morning folks!
I'm new here.. trying to find an answer on how to resize filesystem. Need to add some space to c0t0d0s5, /var... Is it possible at all?
JV
# 2  
Old 05-11-2005
I'm looking at growfs command...
uname -a :
SunOS unknown 5.9 Generic sun4u sparc SUNW,Ultra-5_10
df -k :
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 2031101 1098483 871685 56% /
/dev/dsk/c0t0d0s5 95951 37884 48472 44% /var
/dev/dsk/c0t0d0s6 2031101 588630 1381538 30% /stg
/dev/dsk/c0t0d0s7 492422 14 443166 1% /export/home

hm.., I should have been more specific from very beginning. This is a single disk ultra5 machine and I dont have enough space to load 9_Recomm patches. When I started running ./install_cluster, it aborted with "not enouhgt space in /var/sadm.." message. I know that I have some unallocated space on the disk which I was trying to use to add space to /dev/dsk/c0t0d0s5. Do you think it's possible?

thanks in advance,
JV

Last edited by jvinn; 05-11-2005 at 04:44 PM..
# 3  
Old 05-11-2005
Check /var/adm - see if your messages file(s) can be removed (well, emptied - you probably don't need to remove them) if not needed - look throughout that directory to see if you can get some space back.

As far as growfs, if you read the man page for it, it looks to be used for metadevices which you aren't using (DiskSuite). I don't know if it would work on your file partitons.

How much more space do you have? If it's larger than /var, you could mount it as /mnt and dump /var into it then remount /mnt as /var.
Or, if /var/adm is huge, you could use the space in one of your free partitions (slice 3 assuming it isn't swap) and then have /var and /var/adm as mount points.

You might want to post the partition table of that disk ( c0t0d0 ) from format - then we can tell where the free space is and which options would be easiest to gain more space.
# 4  
Old 05-11-2005
RTM,
thanks for respond. Here is my partition table:
Code:
========================================================
partition> pr
Current partition table (original):
Total disk cylinders available: 17660 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm   13499 - 17659        2.00GB    (4161/0/0)   4194288
  1       swap    wu       0 -  1040      512.37MB    (1041/0/0)   1049328
  2     backup    wm       0 - 17659        8.49GB    (17660/0/0) 17801280
  3 unassigned    wm    7258 -  9337     1023.75MB    (2080/0/0)   2096640
  4        usr    wm    5178 -  7257     1023.75MB    (2080/0/0)   2096640
  5        var    wm    3935 -  4137       99.91MB    (203/0/0)     204624
  6 unassigned    wm    9338 - 13498        2.00GB    (4161/0/0)   4194288
  7       home    wm    4138 -  5177      511.88MB    (1040/0/0)   1048320
==========================================================

Partition 6 is my "storage" where I unzipped 9_Recomm. file. For some reason it shows up here as unassigned... Partition 3 is where my /opt mounted. And as I mentioned before, I have 1.3Gb of unused space
thanks in advance

Last edited by Perderabo; 05-11-2005 at 05:58 PM.. Reason: Add code tags for readability
# 5  
Old 05-11-2005
My advice would be to move /var/sadm into /stg and symlink it back.
# 6  
Old 05-11-2005
I'l try that, thanks.
So, there is no way I could possibly use remaining 1.3Gb?
# 7  
Old 05-11-2005
I don't understand your comment "Partition 3 is where my /opt mounted"

These are what you have mounted which I would assume is all your mount points mounted:
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 2031101 1098483 871685 56% /
/dev/dsk/c0t0d0s5 95951 37884 48472 44% /var
/dev/dsk/c0t0d0s6 2031101 588630 1381538 30% /stg
/dev/dsk/c0t0d0s7 492422 14 443166 1% /export/home

No /opt in there. ? No /usr in there either - so you can take part of slice 3 and part of slice 4 and make them new sizes - in effect, make one of them the size you need - then dump /var into it (easy to say - little more work than that).

Perderabo's suggestion is the quickest and easiest.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Help with increasing file system size in Sun OS 5.9

Hi, I have recently taken up to support these SunOS 5.9 sun4u sparc SUNW,Sun-Fire-V240 boxes and got a request to increase the size of /backup01 as its getting filled up quickly and can't play much on it as these are production servers. As I have no idea about how to do this, can anyone let me... (0 Replies)
Discussion started by: phanidhar6039
0 Replies

2. Shell Programming and Scripting

Script to check file system size

Dears, the output of this command df -h | tr -s ' ' | cut -f5 -d' ' is capacity 24% 0% 0% 0% 0% 1% 0% 24% 24% 0% 93% 1% (4 Replies)
Discussion started by: xxmasrawy
4 Replies

3. Shell Programming and Scripting

file size on the operating system

When I do df -h, I see that one of my partitions is out of space. Then when I do du -h, I get thousands of files. How do I only look at files over a specific size. I want directories over 500m to be returned only. (2 Replies)
Discussion started by: guessingo
2 Replies

4. AIX

How to trace file sytem size change?

I need write a script to trace filesystem size change, such as /home will increase some size and then release some space. I don't know when increase happen. I want to get the size before increase and the size after release. How to write this script? (1 Reply)
Discussion started by: rainbow_bean
1 Replies

5. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

6. AIX

increase the size of file system

Hi all, we are usig aix 4.3 and i need to increase the size of "/u01" file sytem which is mounted on logical volume "lv00", but "/u01" file system size is 9 GB and logical volume "lvoo" size 9 GB.how do i increase the size of /u01.do i increase the size of logical volume "lv00" and then... (2 Replies)
Discussion started by: younusdba
2 Replies

7. Solaris

increasing file system size

Hi Can anyone explain me how to increase the filesystem size. We can do it when the system is running? It needs an reboot? (8 Replies)
Discussion started by: rogerben
8 Replies

8. Programming

how to get the file system size

I have the next code, and the output is incosistent, what is the problem: free blocks: 1201595 block size: 4096 total size(free blocks * block size): 626765824 1201595 * 4096 not is 626765824, what's the problem??? #include <sys/statvfs.h> #include <stdio.h> int main(){ ... (1 Reply)
Discussion started by: lucaxvu
1 Replies

9. AIX

file system size

Dear ALL Today I faced one problem in the file system, during invoking the command #df -k , I saw /usr reached to 95% Used, could any one give advice ? thanks & regarded (7 Replies)
Discussion started by: magasem
7 Replies

10. UNIX for Dummies Questions & Answers

Free size for File System

How to find the free size currently FileSystem has, on the disk mounted? I know 'df' lists all the mounted disks, but I am interested to know details for the filesystem, in which currently I am working. (7 Replies)
Discussion started by: videsh77
7 Replies
Login or Register to Ask a Question