LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-01-2008, 02:09 AM   #1
saigiridhar
LQ Newbie
 
Registered: Dec 2007
Posts: 19

Rep: Reputation: 0
Modifying partitions in solaris


i installed solaris 10 11/06 in x86.. The ouput of df command shows that 5.5GB is in /dev/dsk/c1d0s0 which is mounted in / and 38GB in /dev/dsk/c0d0s7 which is mounted in /export/home.. of the 5.5GB in / only 23MB is free... I need modify the partition table such that i need to decrease the size of /export/home and increase the size of /..
 
Old 02-01-2008, 07:54 AM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Are there unused/unmounted partitions between s0 and s7? You can use format to modify the partition tables, but shrinking one is a totally different story from growing one. I'm not sure you can get away with that. If you had almost nothing in /export/home and were willing to newfs it, then you could do it. Or tar it out to somewhere, make the changes, newfs it, and then tar it back.

I've changed partition tables on live drives and gotten away with it, but I was just changing unused partitions before putting them into use. You have to be absolutely careful, because, if you make a mistake, you could blow the whole thing. Since you are wanting to increase /, I believe you will have to use growfs after changing the tables.

Check all the man pages. Double check everything you do before committing. Do a backup before you start if you want to be extra careful.

Or you could just go through the whole install again and just allocate space appropriately.
 
Old 02-06-2008, 02:23 PM   #3
OuterVillage.com
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by saigiridhar View Post
i installed solaris 10 11/06 in x86.. The ouput of df command shows that 5.5GB is in /dev/dsk/c1d0s0 which is mounted in / and 38GB in /dev/dsk/c0d0s7 which is mounted in /export/home.. of the 5.5GB in / only 23MB is free... I need modify the partition table such that i need to decrease the size of /export/home and increase the size of /..
I'd recommend starting over and rebuilding the box if you can. If you try to modify the / partition and aren't careful with you start/stop cylinders you'll end up blowing away the partition.

Another option if you can't rebuild is to offload some of the stuff off of root to a different partition and setup sym links to point back. For example you could mv /opt and sym link it to /export/home/opt... Good luck!
 
Old 02-06-2008, 03:04 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by OuterVillage.com View Post
Another option if you can't rebuild is to offload some of the stuff off of root to a different partition and setup sym links to point back. For example you could mv /opt and sym link it to /export/home/opt... Good luck!
Beware that you need to be very careful when selecting directories to offload. Some directories are required to be on / for the boot process to succeed.

Another point: /opt is a good choice to be relocated on a different filesystem. I would however recommend not to use symbolic links for directories containing files belonging to packages. The reason is the symlink would be broken after any patch or further package installation.

Use lofs mounts instead which do not exhibit this issue.

eg. in /etc/vfstab

Code:
/export/home/opt - /opt lofs - yes -
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to allocate partitions for Solaris 10? Randux Solaris / OpenSolaris 5 01-11-2007 12:56 PM
solaris partitions .. filling up. Flame2k Solaris / OpenSolaris 4 10-28-2006 04:36 PM
add partitions in solaris Maidros Solaris / OpenSolaris 4 01-21-2006 01:06 PM
How to resize solaris partitions? subaruwrx Solaris / OpenSolaris 2 08-23-2004 05:55 AM
How do I resize sparc partitions in Solaris 9? wjbarton Solaris / OpenSolaris 1 03-18-2004 05:58 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration