The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to get the file system size lucaxvu High Level Programming 1 02-13-2008 06:17 PM
file system size magasem AIX 7 02-06-2008 04:21 AM
change the name of a file system pascalbout AIX 0 05-15-2006 05:03 AM
increasing ufs file system size in solaris BG_JrAdmin UNIX for Dummies Questions & Answers 6 12-01-2005 04:56 AM
Free size for File System videsh77 UNIX for Dummies Questions & Answers 7 02-03-2005 06:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-11-2005
jvinn jvinn is offline
Registered User
  
 

Join Date: May 2005
Posts: 5
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 (permalink)  
Old 05-11-2005
jvinn jvinn is offline
Registered User
  
 

Join Date: May 2005
Posts: 5
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 03:44 PM..
  #3 (permalink)  
Old 05-11-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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 (permalink)  
Old 05-11-2005
jvinn jvinn is offline
Registered User
  
 

Join Date: May 2005
Posts: 5
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 04:58 PM.. Reason: Add code tags for readability
  #5 (permalink)  
Old 05-11-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
My advice would be to move /var/sadm into /stg and symlink it back.
  #6 (permalink)  
Old 05-11-2005
jvinn jvinn is offline
Registered User
  
 

Join Date: May 2005
Posts: 5
I'l try that, thanks.
So, there is no way I could possibly use remaining 1.3Gb?
  #7 (permalink)  
Old 05-11-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0