On Mon, Oct 29, 2001 at 10:02:10AM -0800, Michael Arolan wrote:
> HI,
> 
> I have a Dell 1400 intel-based server with 2 slots of 9 Gig hard drive. I
                                               ^^^^^
You mean partitions?

> installed Redhat Linux 7.0 on this server and used the automatic disk
> partitioning option during installation.  When I checked the size of the
> hard disk using the "df" command, I only saw 9 Gig instead of 18 Gig.  I
> think the Linux installation only used the first 9 Gig disk slot.  My
> questions are:
> 
> 1) How can I check the total size of my hard disk in Redhat Linux? I know
> about the df command, is there another way?  Is the df command the proper
> way to check the size of a hard disk in Linux?

The size of the partitions, with fdisk. 
   fdisk -l /dev/<device>
will give you the size of the partitions.

The size of the mounted filesystems you can find with df.

> 2) How can I get Linux to use the entire hard disk space (18 Gig) short of
> re-installing and selecting the manually partitioning option - this is
> something I just thought of but it seems too drastic, there must surely be
> another way!    

Create the partitions/filesystems you want and mount it where appropriate.

Assuming you have an unused partition on your harddrive /dev/hda, be it
/dev/hda2, you could:
   mke2fs /dev/hda2
   mkdir /u01
   mount /dev/hda2 /u01
Or add the following entry in /etc/fstab:
   /dev/hda2   /u01  ext2  defaults 1 2

> 3) How can I control which directories are mounted on different partitions
> e.g /u01 on a different partition to /u02 e.t.c?  I am planning to use this
> box as a database server but need to be able to control the size of the
> partitions so that I can decide which datafiles resides on which partitions.

By creating different partitions and using the answer from the second 
question.

> Don't hold back even if your solution requires re-installation or starting
> all over again.

On the other hand, if you want to use the box as a database server you might
want to make partitions for / /usr /usr/local /var /tmp /home /boot +
your partitions for the database program and files.

If the box will be only a database server, I can recommand the following sizes:
   /dev/hda1      /     256 Mb
   /dev/hda2      /boot  32 Mb
   /dev/hda3      swap  2 x sizeof(RAM)
   /dev/hda4      extended
   /dev/hdaX      /tmp  ???
   /dev/hda5      /var  128 Mb
   /dev/hda6      /home 128 Mb
   /dev/hda7      /usr    1 Gb
   /dev/hda8      /usr/local  1 Gb
   /dev/hda9,10,11   /u01,u02,u03 the rest
 
/tmp is "grayed" because you might want to use the tmpfs file system which will
use some RAM but is very fast. It is available in kernel 2.4 series.

florin

-- 

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20011029/b2eae7ad/attachment.pgp