Koozali.org: home of the SME Server

Hard Drive Space Issue

Gaspar Raposo

Hard Drive Space Issue
« on: August 03, 2001, 06:22:30 PM »
I am atthe moment using 2 hard drives in my e-smith server machine (for which one is 2.1 GB and the other is 1.2 GB) and the total should be 3.XGB something. For some reason or the other. when i log into root and execute the command "df -h" it shows that i have only 678+11 MB on the server as total hard drive space.

Can anyone help and tell me of what i should do please.

Kees Blokland

Re: Hard Drive Space Issue
« Reply #1 on: August 04, 2001, 12:42:29 PM »
Hi Gaspar,

Everybody will shout: get a bigger drive! but other than that:
E-smith uses a SINGLE drive only in it's standard format.
( or 2 identical ones if you use drive mirroring)
I think your system is using the small drive only (standard install takes about 310Mb) Disconnect the small one, install everything and then do the following:

HOWTO add more diskspace to a e-smith server
Reason: because I have loads of small drives..
I wanted to add extra storage for ibays and users.
The directory structure is as follows:

/home/e-smith/files/ibays
/home/e-smith/files/users

The main system lives on a 2 G harddisk. (Install e-smith on this disk
first.)

to add disks:  ( from: www.linuxnewbie.org/nhf/intel/hardware/hd_add.html)
connect the disk(s) to you motherboard and look at dmesg |more
see what the new disks are called. mine were:

/dev/hdc and /dev/hdd

need to partition them. I choose a single partition per disk.

fdisk /dev/hdc     ( have a look at the above link for more details)
fdisk /dev/hdd

and create the partition with 'n'
don't forget to write it to the disk!

mkfs /dev/hdc1
mkfs /dev/hdd1

make some directories under the / . I made 'ibays' and 'users'

mkdir users
mkdir ibays

copy the contents (should not be much) from  /home/e-smith/files/ibays/
to /ibays/

same for users..  ( you end up with  /home/e-smith/files/ibays/ibays, but
you have to keep the stuff in the original ibays somewhere, you can't (want)
keep the stuff in root.. think about it for a while..)

now use vi to edit /etc/fstab  ( or mc, which is probably easier)
my fstab now looked like this

LABEL=/               /                                    ext2    defaults
1 1
LABEL=/boot         /boot                              ext2    defaults
1 2
/dev/hdc1               /home/e-smith/files/ibays ext2    defaults        1
1
/dev/hdd1               /home/e-smith/files/users ext2    defaults        1
1
/dev/cdrom             /mnt/cdrom                     iso9660
noauto,owner,ro 0 0
/dev/fd0                  /mnt/floppy                     auto
noauto,owner    0 0
none                      /proc                              proc
defaults        0 0
none                      /dev/pts                          devpts
gid=5,mode=620  0 0
/dev/hda5               swap                              swap    defaults
0 0

do a mount -a

and bingo.. all is well.
manually copy the files in ibays to the right place.
now create users, ibays etc..

no garantees, no complaints, it there to learn, and if all fails, do a reinstall ;-)

good luck..