Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: sandoz 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?
-
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
-
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?
-
i used the "html" directory btw from my /home/e-smith/files/ibays/user
there is now see this:
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:
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?
-
permissions of the dir on the 2nd HD are:
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
-
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
-
http://www.comptechdoc.org/os/linux/usersguide/linux_ugfilesp.html
-
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
-
anyone? I have no clue what i am doing wrong
i cannot get write access to the simlinked dir
-
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:
/dev/hdb1 /home/e-smith/files/ibays/multimedia ext3 usrquota,grpquota 1 1
Cjensen