Disk space on Solaris

  • Follow


Pardon for the dumb questions below, I am just learning Unix and trying 
to understand this stuff.  I have installed Solaris 10 on a Sunfire 
X2100 with a single 250 gb disk.  When I do a DF -h, it shows two 
logical disks, cld0s0 which has 4 gb and is mounted on /, the other
cld0s7, with the remaining 225+ gb, and is mounted on /export/home.
Why did the Solaris install do this, instead of giving me all my disk 
space on one drive?  This seems to be a pain in the butt, because I am
trying to install Sun Communication Suite, and the default location for
all these files is a directory off of /, and there isn't enough space.
I have tried for some of the products to specify a directory off of
/export/home, but one in particular won't allow it, so I am screwed.
Is there a way I can reconfigure things without re-installing Solaris?
0
Reply Jeff 4/9/2008 5:49:59 AM

The diskspace allocation for a default Solaris install is somewhat...
odd and not what anyone would like.

An option (apart from reinstalling) is putting selected directories on
the /export/home partition and making a symlink to /root. This should
be possible for /usr and /var, some of the larger directories in any
installation (apart from users' home directories ofcourse).

Maarten
-- 
"The train now approaching Platform One is the stolen InterCity 125
 from London King's Cross. Passengers are assured that British
 Transport Police are doing everything in their power to arrest it"
 
0
Reply Maarten 4/9/2008 6:23:40 AM


Jeff McKay wrote:
> Pardon for the dumb questions below, I am just learning Unix and trying 
> to understand this stuff.  I have installed Solaris 10 on a Sunfire 
> X2100 with a single 250 gb disk.  When I do a DF -h, it shows two 
> logical disks, cld0s0 which has 4 gb and is mounted on /, the other
> cld0s7, with the remaining 225+ gb, and is mounted on /export/home.
> Why did the Solaris install do this, instead of giving me all my disk 
> space on one drive? 


You do have all your space on one drive, but it is split across file 
systems.

It is somewhat easier to back up data if the OS is on one file system 
and  user files on another. It is somewhat more convenient to have file 
systems no bigger than the size of the tapes in a tape drive. But now, 
with huge disks costing next to nothing, and modest tape drives being 
very expensive, tape is getting a bit of an expensive way to back up.

Unfortunately, the defaults on Solaris seem to be pretty bad, as / is 
far too small.

  This seems to be a pain in the butt, because I am
> trying to install Sun Communication Suite, and the default location for
> all these files is a directory off of /, and there isn't enough space.
> I have tried for some of the products to specify a directory off of
> /export/home, but one in particular won't allow it, so I am screwed.
> Is there a way I can reconfigure things without re-installing Solaris?


You can get around this by use of symbolic links. Lets assume your 
program needs to go into /usr/local (as many will want to), but you have 
insufficient space on the root file system.

# mkdir /export/home/local
# chmod 755 /export/home/local
# ln -s /export/home/local /usr
# ls -ld /usr/local (will show link)

Permissions for /usr/local must be set on the file system where the 
files actually reside, which is /export/home


0
Reply Dave 4/9/2008 6:47:38 AM

On Tue, 08 Apr 2008 22:49:59 -0700, Jeff McKay wrote:

> Pardon for the dumb questions below, I am just learning Unix and trying 
> to understand this stuff.  I have installed Solaris 10 on a Sunfire 
> X2100 with a single 250 gb disk.  When I do a DF -h, it shows two 
> logical disks, cld0s0 which has 4 gb and is mounted on /, the other
> cld0s7, with the remaining 225+ gb, and is mounted on /export/home.


> Why did the Solaris install do this, instead of giving me all my disk 
> space on one drive?  This seems to be a pain in the butt, because I am
> trying to install Sun Communication Suite, and the default location for
> all these files is a directory off of /, and there isn't enough space.

There is no possible way for anybody at Sun to predict how much drive
space you would require.  During the installation you were advised how
much would be used by the software on the installation media.  Since you
chose not to allocate additional space for your applications you did
run short on space.

> I have tried for some of the products to specify a directory off of
> /export/home, but one in particular won't allow it, so I am screwed. Is
> there a way I can reconfigure things without re-installing Solaris?

Reinstallations are a part of the learning process.  At least you got to
this lesson before incurring any real damage.

Considering that you may want to update your system at some time in the
future and do that using Live Upgrade you will want to allocate a
partition for the upgrade installation the same size as this present
install.

You will also need to patch the system and that will require a LOT of
space if you wish to retain the ability to backout your patches.  Since
you almost certainly do not want to reinstall your apps after an OS
upgrade then allocate enough space for your apps and data.

Give yourself at least 30 GB partitions for the present install and the
upgrade install.  Add more swap space, the default install probably only
gave you ~540 MB of swap.  Add another partition for your apps and be
generous in allocating enough space.

0
Reply Dave 4/9/2008 8:21:08 AM

Dave schrieb:
> Jeff McKay wrote:
>> Pardon for the dumb questions below, I am just learning Unix and 
>> trying to understand this stuff.  I have installed Solaris 10 on a 
>> Sunfire X2100 with a single 250 gb disk.  When I do a DF -h, it shows 
>> two logical disks, cld0s0 which has 4 gb and is mounted on /, the other
>> cld0s7, with the remaining 225+ gb, and is mounted on /export/home.
>> Why did the Solaris install do this, instead of giving me all my disk 
>> space on one drive? 
> 
> 
> You do have all your space on one drive, but it is split across file 
> systems.
> 
> It is somewhat easier to back up data if the OS is on one file system 
> and  user files on another. It is somewhat more convenient to have file 
> systems no bigger than the size of the tapes in a tape drive. But now, 
> with huge disks costing next to nothing, and modest tape drives being 
> very expensive, tape is getting a bit of an expensive way to back up.
> 
> Unfortunately, the defaults on Solaris seem to be pretty bad, as / is 
> far too small.
> 
>  This seems to be a pain in the butt, because I am
>> trying to install Sun Communication Suite, and the default location for
>> all these files is a directory off of /, and there isn't enough space.
>> I have tried for some of the products to specify a directory off of
>> /export/home, but one in particular won't allow it, so I am screwed.
>> Is there a way I can reconfigure things without re-installing Solaris?
> 
> 
> You can get around this by use of symbolic links. Lets assume your 
> program needs to go into /usr/local (as many will want to), but you have 
> insufficient space on the root file system.
> 
> # mkdir /export/home/local
> # chmod 755 /export/home/local
> # ln -s /export/home/local /usr
> # ls -ld /usr/local (will show link)
> 
> Permissions for /usr/local must be set on the file system where the 
> files actually reside, which is /export/home
> 
> 

I'd rather use lofs instead of a symlink for this kind of use case. I.e.

# mkdir /export/local
# mkdir /usr/local
# mount -F lofs /export/local /usr/local

- Thomas
0
Reply Thomas 4/9/2008 9:29:07 AM

Thomas Maier-Komor wrote:

>> # mkdir /export/home/local
>> # chmod 755 /export/home/local
>> # ln -s /export/home/local /usr
>> # ls -ld /usr/local (will show link)
>>
>> Permissions for /usr/local must be set on the file system where the 
>> files actually reside, which is /export/home
>>
>>
> 
> I'd rather use lofs instead of a symlink for this kind of use case. I.e.
> 
> # mkdir /export/local
> # mkdir /usr/local
> # mount -F lofs /export/local /usr/local
> 
> - Thomas

I was not aware of that method. What is the advantage(s) over a link?

0
Reply Dave 4/9/2008 11:16:20 AM

Jeff McKay wrote:
> Pardon for the dumb questions below, I am just learning Unix and trying 
> to understand this stuff.  I have installed Solaris 10 on a Sunfire 
> X2100 with a single 250 gb disk.  When I do a DF -h, it shows two 
> logical disks, cld0s0 which has 4 gb and is mounted on /, the other
> cld0s7, with the remaining 225+ gb, and is mounted on /export/home.
> Why did the Solaris install do this, instead of giving me all my disk 
> space on one drive?  This seems to be a pain in the butt, because I am
> trying to install Sun Communication Suite, and the default location for
> all these files is a directory off of /, and there isn't enough space.
> I have tried for some of the products to specify a directory off of
> /export/home, but one in particular won't allow it, so I am screwed.
> Is there a way I can reconfigure things without re-installing Solaris?

FWIW

My canonical installation process:

   1st time - find out what the installer attempts to do

   2nd time - find out how to make the installer do what I want

   3rd time - install the OS the way I want it

I've been doing this w/ various operating systems for over 20 years. 
Complex multiboot installs can take a dozen iterations before the proper 
procedure is found.  You *will* find the things you learn useful later. 
  It's just impossible to predict what will be useful.

Have Fun!
Reg
0
Reply Reginald 4/9/2008 1:29:18 PM

Dave wrote:
> Thomas Maier-Komor wrote:
>> I'd rather use lofs instead of a symlink for this kind of use case. I.e.
>>
>> # mkdir /export/local
>> # mkdir /usr/local
>> # mount -F lofs /export/local /usr/local
> 
> I was not aware of that method. What is the advantage(s) over a link?

some buggy installers silently remove the symlink and create a new directory
and you end up with a mess...  been there.
0
Reply Oscar 4/9/2008 2:07:22 PM

Reginald Beardsley wrote:

>   1st time - find out what the installer attempts to do
> 
>   2nd time - find out how to make the installer do what I want
> 
>   3rd time - install the OS the way I want it

4th time - remember to reserve slices for live-upgrade
0
Reply Oscar 4/9/2008 2:11:06 PM

On Apr 9, 4:16 am, Dave <f...@coo.com> wrote:
> Thomas Maier-Komor wrote:
> >> # mkdir /export/home/local
> >> # chmod 755 /export/home/local
> >> # ln -s /export/home/local /usr
> >> # ls -ld /usr/local (will show link)
> >> Permissions for /usr/local must be set on the file system where the
> >> files actually reside, which is /export/home
> > I'd rather use lofs instead of a symlink for this kind of use case. I.e.
> > # mkdir /export/local
> > # mkdir /usr/local
> > # mount -F lofs /export/local /usr/local
> I was not aware of that method. What is the advantage(s) over a link?

There is NO symlink. ?? That for one is enough for me - a known hater
of
gratuitous usage of symlinks : >

But that does not address the OP's problem. It's possible
that the system was delivered with a "pre-installed" OS but
I dont think so as the tell tale sign is usually a directory called "/
spare".

Therefore Im tempted to conclude that the OP chose to install the
system
the way it is now. Or someone else did.
Either way its an odd choice. I mean 4 GB for /,/usr/var ??
Im surprised its even bootable. Just start over - do a FULL install on
one
system partition and have a swap slice greater than physical RAM..

I dont know what the "Sun Communication Suite" is but it probably has
some installation instructions with some important info in there.
If thats the intention of the box someone should have read that first
before installing anything.

Yes it is possible to back out and re-slice etc but its much easier to
start over from scratch.
Nothing screwed about it - its an opportunity!
0
Reply usenetpersongerryt 4/9/2008 2:17:56 PM

Jeff McKay wrote:
> Pardon for the dumb questions below, I am just learning Unix and trying 
> to understand this stuff.  I have installed Solaris 10 on a Sunfire 
> X2100 with a single 250 gb disk.  When I do a DF -h, it shows two 
> logical disks, cld0s0 which has 4 gb and is mounted on /, the other
> cld0s7, with the remaining 225+ gb, and is mounted on /export/home.
> Why did the Solaris install do this, instead of giving me all my disk 
> space on one drive?  This seems to be a pain in the butt, because I am
> trying to install Sun Communication Suite, and the default location for
> all these files is a directory off of /, and there isn't enough space.
> I have tried for some of the products to specify a directory off of
> /export/home, but one in particular won't allow it, so I am screwed.
> Is there a way I can reconfigure things without re-installing Solaris?

Sort of!  You'll need to back up c1d0s0 and c1d0s7, use format to create 
a more sensible layout, and then restore.

As to why the install did this; YOU allowed it to happen.  There are 
various ways to install Solaris but I think that all of them give you 
some control of disk layout.  If you let it use the defaults, your 
chances of getting exactly what you need are nearly zero.  Neither the 
software nor the people who wrote it have a clue about what YOU need.

As a starting point, I recommend 4 GB for / plus /usr, 4 GB for /var, 
and 2GB for swap.  You may "season to taste".  (and probably should!)

ISTR that the installer tries to tell you the minimum sizes for things. 
  You can't get any smaller than that and you almost certainly should 
not try to!  Remember that just about every patch you install will eat a 
piece of / and a piece of /var.  When you run out of space you either 
have to go back and repartition or use symbolic links to make it appear 
that things are where they are supposed to be.  I don't particularly 
care for either option!  Also keep in mind that just about every O/S 
upgrade will use a little more space!  Some may use a lot more!!

With 250 GB it sounds as if you can afford to be generous!

Also compare the price of disk space with the price of your time and 
system down time!!
0
Reply Richard 4/9/2008 2:46:56 PM

In article <ftiipp$gs2$2@news.mie>,
 Oscar del Rio <delrio@mie.utoronto.ca> wrote:

> Reginald Beardsley wrote:
> 
> >   1st time - find out what the installer attempts to do
> > 
> >   2nd time - find out how to make the installer do what I want
> > 
> >   3rd time - install the OS the way I want it
> 
> 4th time - remember to reserve slices for live-upgrade

Don't forget the 0th time - take coupius notes of everything you do _as 
you go_ so you can recreate whatever you did later.  AND you can make 
annotations as to why you had to go back and do something else.  6 
months from now you may not remember why you setup user directories in 
/export/home and when users login, the directories show up in /home (a 
foreign concept for many Linux admins who may not have setup and used 
automounter at their sites).

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...



0
Reply Michael 4/9/2008 4:02:56 PM

Oscar del Rio wrote:
> Reginald Beardsley wrote:
> 
>>   1st time - find out what the installer attempts to do
>>
>>   2nd time - find out how to make the installer do what I want
>>
>>   3rd time - install the OS the way I want it
> 
> 
> 4th time - remember to reserve slices for live-upgrade


Now that you mention it ..... :-)
0
Reply Reginald 4/10/2008 2:13:10 PM

12 Replies
234 Views

(page loaded in 0.161 seconds)

Similiar Articles:


















7/26/2012 10:24:10 PM


Reply: