Koozali.org: home of the SME Server

add new disks to e-smith-server

Lo DIablo

add new disks to e-smith-server
« on: May 06, 2001, 07:43:11 PM »
Hey,

I'm using e-smith for some time but now I'dd like to add some diskspace, I'm gonna add 2 disks of 4gb and I'dd like to create a logical drive of 8Gb and use this space for file sharing and web-space with i-bay.Is this possible with e-smith and how do I do that? If not what software do I need?

THX

Lo Diablo

Olle Maartensson

Re: add new disks to e-smith-server
« Reply #1 on: May 13, 2001, 02:15:03 PM »
When you've inserted the disks and partitioned them as you wanted.
You make a linux filesystem on the partition with "mke2fs /dev/partition".
Create a directory in /mnt "mkdir /mnt/anyname" and then mount the new partition to that directory "mount /dev/partition /mnt/anyname". Now you have to copy the existing files from the directory wich you want to extend with more diskspace. I'll use the example /home/e-smith/files wich contains all the homecatalogs, e-bays, emails and the things thats usually takes up a whole lot of space. To copy all the files in that directory and at the same time preserve the ownership of files and such to our new partition, we use the "cp -rp /home/e-smith/files /mnt/anyname".
Now that the files are in place we have to mount our new partition to the /home/e-smith/files directory at bootup, edit the /etc/fstab file and add the line
"/dev/partition  /home/e-smith/files  ext2".
Best of luck!

                                     
   Olle@arkiva.se  ___              
  /\  __\ /\_ \  /\_ \              
  \ \ \/\ \//\ \ \//\ \      __    
   \ \ \ \ \ \ \ \  \ \ \   /'__\  
    \ \ \_\ \ \_\ \_ \_\ \_/\  __/  
     \ \_____\/\____\/\____\ \____\  
      \/_____/\/____/\/____/\/____/