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 > 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 12:10 PM
Disk space for root partition chiru_h Shell Programming and Scripting 3 07-24-2007 12:25 PM
Reinstall root partition jbestor SUN Solaris 4 04-25-2007 05:18 PM
Ran out of space on /dev/root partition Martyn Filesystems, Disks and Memory 2 07-07-2006 09:58 AM
Root partition fills up very quickly svjn AIX 1 06-02-2006 12:02 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 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: 542
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 offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,265
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: 542
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-14-2008
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,265
I guess that file was located in the /var/crash/<your host name>/ directory.

If that is the case, that would mean you had a kernel panic.

As I was supposing, your / and /export/home filesystems are contiguous so growing the root filesystem might still be an option.
Sponsored Links
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 03:03 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