Koozali.org: home of the SME Server

adding 2nd HD for ftp storage

Offline sandoz

  • ***
  • 47
  • +0/-0
adding 2nd HD for ftp storage
« on: November 23, 2006, 07:59:46 PM »
i want to add a 2nd HD for extra storage for a large ftp server. So i don't need it for my all my domains, only 1.
So basically that the ibay of 1 specific user is on another extra HD, is that possible?

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
adding 2nd HD for ftp storage
« Reply #1 on: November 23, 2006, 08:20:38 PM »
Here's one way:

http://www.chaloner.ca/article.php?story=20020922224939384&mode=print

and..

Here's another:

http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm

BTW, search forums '2nd hard drive', or google 'smeserver+add second hard drive'.


Craig

Offline sandoz

  • ***
  • 47
  • +0/-0
adding 2nd HD for ftp storage
« Reply #2 on: November 30, 2006, 10:12:31 PM »
ok

i used the 2nd link to get my 2nd HD mounted, transfered all files to it, made a symlink with the right permissions. Now i am able to view all the cointent and download them, but i am not able to upload files

What went wrong?

Offline sandoz

  • ***
  • 47
  • +0/-0
adding 2nd HD for ftp storage
« Reply #3 on: November 30, 2006, 10:28:23 PM »
i used the "html" directory btw from my /home/e-smith/files/ibays/user

there is now see this:
Code: [Select]

drwxr-xr-x  7 root root  4096 Nov 30 16:21 .
drwxr-xr-x  5 root root  4096 Nov 30 14:18 ..
drwxr-xr-x  2 root root  4096 Nov 27 03:18 .AppleDB
drwxrws---  2 root user  4096 Nov 27 03:18 .AppleDesktop
drwxrws---  2 root user  4096 Apr  5  2006 cgi-bin
-rwxr--r--  1 root admin 6148 Nov 23 07:36 .DS_Store
drwxrws---  2 root user  4096 Nov 23 09:57 files
lrwxrwxrwx  1 root root    17 Nov 30 16:21 html -> /mnt/bigdisk/backup
drwxrws---  2 root user  4096 Nov 30 16:17 html_back


the symlink is ok, when i cd to it i get to the 2nd hd
when i use ftp to login i also see the content from /mnt/bigdisk/backup, but no write Permissions

i have installeed smeserver-remoteuseraccess-1.2-8.noarch.rpm, maybe thats causing this?

permissions of the dir on the 2nd HD are:
Code: [Select]

drwxr-xr-x     4 root  root    4096 Nov 30 10:10 ..
-rw-r--r--     4 root  root       0 Nov  6 04:33 .autofsck
drwxrwx---    13 root  user    8192 Nov 30 16:02 backup



i didnt complte the last step from http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm cause thats only for httpd to follow the symlink, not for ftp, what this is used for?

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
adding 2nd HD for ftp storage
« Reply #4 on: November 30, 2006, 10:40:27 PM »
Quote from: "sandoz"

permissions of the dir on the 2nd HD are:
Code: [Select]

drwxr-xr-x     4 root  root    4096 Nov 30 10:10 ..
-rw-r--r--     4 root  root       0 Nov  6 04:33 .autofsck
drwxrwx---    13 root  user    8192 Nov 30 16:02 backup



drwxrwx--- The permissions need to change to allow the logged in user write access.  What you have now allows access, but maybe not to 'logged in user'??.

http://station70.dyndns.org/craig/docbook-source/Server-Admin/foil13.html

Craig

Offline sandoz

  • ***
  • 47
  • +0/-0
adding 2nd HD for ftp storage
« Reply #5 on: November 30, 2006, 11:01:47 PM »
ok, i see a difference indeed:
drwxrws--- is the original html, and drwxrwx--- is the dir where the symlink is linked to. Problem is i don't see an "s" option at the link you gave me?


i chmod 777 the backup dir, but still [23:10:48] 550 JP3.mp3: Permission denied

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org

Offline sandoz

  • ***
  • 47
  • +0/-0
adding 2nd HD for ftp storage
« Reply #7 on: December 01, 2006, 09:11:15 AM »
i cannot get it to work: is it maybe a problem that this HD comes from another linux comp, and was not reformatted?

the r/w are (to me) similar now:
original html dir in /home/e-smith:
drwxrws---  3 root user 4096 Dec  1 02:50 html
drwxrws---  3 root user 4096 Dec  1 02:50 html_backup

symlinked dir:
lrwxrwxrwx  1 root root    18 Dec  1 03:05 html -> /mnt/bigdisk/test/
drwxrws---   2 root user 4096 Dec  1 03:07 test

but still no write access

removing the symlink and renaming html_backup to html i have write access again as user

Offline sandoz

  • ***
  • 47
  • +0/-0
adding 2nd HD for ftp storage
« Reply #8 on: December 02, 2006, 03:05:25 PM »
anyone? I have no clue what i am doing wrong
i cannot get write access to the simlinked dir

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
adding 2nd HD for ftp storage
« Reply #9 on: January 13, 2007, 07:29:03 PM »
I would not do the symlink option.  What I did (which makes my use much more efficient) is mount an Ibay directly without using symlink.  I also learned that the fstab file must be altered directly as I tried templating and it does not expand corrently.  My fstab has the added line:

Code: [Select]
/dev/hdb1        /home/e-smith/files/ibays/multimedia    ext3    usrquota,grpquota       1 1

Cjensen