The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to increase size of the root partition pshelke SUN Solaris 6 08-15-2008 01:10 PM
Disk space for root partition chiru_h Shell Programming and Scripting 3 07-24-2007 01:25 PM
Reinstall root partition jbestor SUN Solaris 4 04-25-2007 06:18 PM
Ran out of space on /dev/root partition Martyn Filesystems, Disks and Memory 2 07-07-2006 10:58 AM
Root partition fills up very quickly svjn AIX 1 06-02-2006 01:02 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-14-2008
b1f30's Avatar
b1f30 b1f30 is offline
Registered User
  
 

Join Date: Aug 2008
Location: New England, U.S.A.
Posts: 18
Want to expand Solaris 10_x86 root UFS partition

OS: Solaris 10_x86.

Problem:

Server needs to be patched, but root "/" is near full.

/dev/dsk/c1t1d0s0 4.2G 3.9G 284M 94% /

The /exports/home dir has a lot more space, and I'd like to either move root "/" to it, or delete it all together:

/dev/dsk/c1t1d0s7 12G 4.7G 7.1G 40% /export/home

Note: Server *can* have downtime, but I *don't* have another disk in the system I can install onto or partition.

/etc/vfstab:

Code:
# cat /etc/vfstab 
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t1d0s1       -       -       swap    -       no      -
/dev/dsk/c1t1d0s0       /dev/rdsk/c1t1d0s0      /       ufs     1       no      -
/dev/dsk/c1t1d0s7       /dev/rdsk/c1t1d0s7      /export/home    ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
Ideas?
  #2 (permalink)  
Old 08-14-2008
pupp's Avatar
pupp pupp is offline Forum Staff  
cap_10hdx 1
  
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 553
looking for the output of format as far as the disk with the root partition on it. we can make a better assessment with that.

however, you would have to back up /export/home. change start cylinder of /export/home (shrinking this), change cylinders for swap and then change the end cylinder for root (thus making it larger). save, label etc.

once out growfs /dev/rdsk/c1t1d0s0. newfs /export/home. restore /export/home

something to this effect.
  #3 (permalink)  
Old 08-14-2008
b1f30's Avatar
b1f30 b1f30 is offline
Registered User
  
 

Join Date: Aug 2008
Location: New England, U.S.A.
Posts: 18
Smile

Quote:
Originally Posted by pupp View Post
looking for the output of format as far as the disk with the root partition on it. we can make a better assessment with that.

however, you would have to back up /export/home. change start cylinder of /export/home (shrinking this), change cylinders for swap and then change the end cylinder for root (thus making it larger). save, label etc.

once out growfs /dev/rdsk/c1t1d0s0. newfs /export/home. restore /export/home

something to this effect.
Any of these items need to be done in single user mode per se?

I'm following your thought here - makes sense - but I'm just trying to apply what I know.

Thanks for the insight. I will start doing some RTFM before I post more 'WTF'.

;-)
  #4 (permalink)  
Old 08-14-2008
jlliagre jlliagre is online now Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,443
I don't think there is anything to change with swap which should be located elsewhere assuming you used the default layout.

To be sure, post the output of this command:
Code:
# prtvtoc /dev/dsk/c1t1d0s2
However, there is an issue with these steps. The growfs command cannot be used with the root partition according to its documentation. That means this won't work even in single user mode.

One possible workaround would be to boot on an installation media and run all of that from a shell there.

In any case, you should really make a reliable backup of your system before attempting this.
  #5 (permalink)  
Old 08-14-2008
pupp's Avatar
pupp pupp is offline Forum Staff  
cap_10hdx 1
  
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 553
interesting. i see what you mean jiliagre. thanks for pointing that out. i thought i had seen it before but i guess the documentation proves me wrong (i've actually never attempted to grow the root fs but i've done this with other FSs).

when i get home i want to try this out on the root fs though. see if it truly is the case.
  #6 (permalink)  
Old 08-14-2008
b1f30's Avatar
b1f30 b1f30 is offline
Registered User
  
 

Join Date: Aug 2008
Location: New England, U.S.A.
Posts: 18
Quote:
Originally Posted by jlliagre View Post
I don't think there is anything to change with swap which should be located elsewhere assuming you used the default layout.

To be sure, post the output of this command:
Code:
# prtvtoc /dev/dsk/c1t1d0s2
However, there is an issue with these steps. The growfs command cannot be used with the root partition according to its documentation. That means this won't work even in single user mode.

One possible workaround would be to boot on an installation media and run all of that from a shell there.

In any case, you should really make a reliable backup of your system before attempting this.
Code:
# prtvtoc /dev/dsk/c1t1d0s2
* /dev/dsk/c1t1d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*     255 tracks/cylinder
*   16065 sectors/cylinder
*    2211 cylinders
*    2209 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector 
*    35471520     16065  35487584
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    1092420   8964270  10056689   /
       1      3    01      16065   1076355   1092419
       2      5    00          0  35487585  35487584
       7      8    00   10056690  25414830  35471519   /export/home
       8      1    01          0     16065     16064
I found a huge vmcore file that was 600+MB. None of my lab people needed it, so I backed it up to another server, then rm -rf'ed it locally. Now I've got some space to work with, and the patching seems to be coming along just fine.

I'm keeping my eye on this thread anyhow, since you make some valid points.

Thanks again for sharing your knowledge.

P.S. The command I used to find the vmcore file:

Code:
find / -size +100000
  #7 (permalink)  
Old 08-15-2008
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,754
Quote:
Originally Posted by b1f30 View Post
I found a huge vmcore file that was 600+MB. None of my lab people needed it.....
This is a reason that many people simply set the file size of core files and dumps to zero (or simply disable completely), as they don't debug them (since they are not application or kernel developers).

If you don't use them and do not actively look for or manage them, they can really cause problems, as you experienced.

So, if you are not using them (or do not know how to use them), just disable them.....

You can always turn them back on if you start to see problems where you might need a core file, etc

Edit: See also:

http://developers.sun.com/solaris/ar...core_dump.html

See for example, this example, in the link above:

Below is a typical scenario, which shows the current system configuration for core dumps:

Quote:
-bash-3.00# coreadm
global core file pattern:
global core file content: default
init core file pattern: core
init core file content: default
global core dumps: disabled
per-process core dumps: enabled
global setid core dumps: disabled
per-process setid core dumps: disabled
global core dump logging: disabled
Closed Thread

Bookmarks

Tags
partition, resize, solaris, ufs, x86

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 11:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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