Koozali.org: home of the SME Server

addind 2nd hdd

Offline wires

  • ***
  • 62
  • +0/-0
addind 2nd hdd
« on: April 05, 2009, 03:57:33 AM »
trying to add another harddisk so i am following the guide to add extra disk at http://wiki.contribs.org/AddExtraHardDisk  but when i try to add the new disk to raid 1 i get an error saying:

mdadm: '1' is an unusual number of drives for an array, so it is probably a mistake. If you really mean it you will need to specify --force before setting the number of drivers.

this is the command i do:

mdadm --create --verbose /dev/md3 --level=1 --raid-devices=1 /dev/hdc1

this command gives me something perhaps with the answer but i dont want to do anything until someone confirms it:

mdadm --detail --scan --verbose
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=

i guess i should change --raid-devices= from '1' to '2' ??

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: addind 2nd hdd
« Reply #1 on: April 05, 2009, 05:28:07 AM »
What are you actually trying to do?
Are you adding a disk to your raid array of the main system?
Or are you trying to add additional drive space using another drive?

The How-to is for the latter.

If it is the latter, why are you trying to create a raid array with one disk?

If your intent is to add one additional disk (non-raid) then skip the raid steps.

C
SME since 2003

Offline wires

  • ***
  • 62
  • +0/-0
Re: addind 2nd hdd
« Reply #2 on: April 05, 2009, 07:38:34 AM »
oh!.. my bad. thanks for the heads up.

Offline wires

  • ***
  • 62
  • +0/-0
Re: addind 2nd hdd
« Reply #3 on: April 05, 2009, 07:45:35 AM »
i added the new harddisk but i am having permissions issues. i am trying to SymLink an IBAYNAME to the new harddisk..

1. create IBAYNAME with server-manager (reset password and everything...)
2. mkdir -p /mnt/newdisk/ibays/IBAYNAME
3. chown -R root:family /mnt/newdisk/ibays/IBAYNAME
4. cp -ai /home/e-smith/files/ibays/IBAYNAME/* /mnt/newdisk/ibays/IBAYNAME
[ at this point IBAYNAME still works (is accessible) from the internet ]
5. rm -rf /home/e-smith/files/ibays/IBAYNAME
6. ln -s /mnt/newdisk/ibays/IBAYNAME /home/e-smith/files/ibays/IBAYNAME
IBAYNAME at this point is no more accessible.. Forbidden error

any ideas what i might be doing wrong ??

i also did make it available from the internet (it wasn't necessary in my opinion)

db accounts setprop IBAYNAME FollowSymLinks enabled
signal-event ibay-modify IBAYNAME

« Last Edit: April 05, 2009, 07:47:26 AM by wires »

Offline johnp

  • *****
  • 312
  • +0/-0
Re: addind 2nd hdd
« Reply #4 on: April 05, 2009, 08:45:07 AM »
If you put a password on the ibay, it's likely that it will be accessed through the ibay name and password it was given

Offline wires

  • ***
  • 62
  • +0/-0
Re: addind 2nd hdd
« Reply #5 on: April 05, 2009, 01:45:56 PM »
of course... still not working,  doesnt allow me to enter a password/user..

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: addind 2nd hdd
« Reply #6 on: April 07, 2009, 01:55:40 AM »
It looks like you were following: http://wiki.contribs.org/AddExtraHardDisk#Alternative_3:_Mounting_and_Symlinking but didn't do step 4.4.

can you tell us the output of:
Code: [Select]
ll -a /mnt/newdisk/ibays/IBAYNAME/
I'll be away for a few days so may not again reply until this weekend.
SME since 2003

Offline wires

  • ***
  • 62
  • +0/-0
Re: addind 2nd hdd
« Reply #7 on: April 07, 2009, 05:34:01 AM »
current permissions in my disk2 newdisk/ibayname:
Quote
total 24
drwxr-xr-x  6 root root   4096 Mar 30 22:07 .
drwxr-xr-x  5 root root   4096 Apr  5 22:15 ..
drwxrws---  2 root family 4096 Oct 13 16:04 .AppleDesktop
drwxrws---  2 root family 4096 Oct 13 16:04 cgi-bin
drwxrws---  2 root family 4096 Apr  5 10:33 files
drwxrws---  6 root family 4096 Mar 31 22:48 html

--> permissions are identical to this for another ibay i have in disk1:
Quote
total 24
drwxr-xr-x  6 root root   4096 Mar 30 22:07 .
drwxr-xr-x  5 root root   4096 Apr  5 22:15 ..
drwxrws---  2 root family 4096 Oct 13 16:04 .AppleDesktop
drwxrws---  2 root family 4096 Oct 13 16:04 cgi-bin
drwxrws---  2 root family 4096 Apr  5 10:33 files
drwxrws---  6 root family 4096 Mar 31 22:48 html

still cannot access ibay in disk2.
« Last Edit: April 07, 2009, 05:39:58 AM by wires »

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: addind 2nd hdd
« Reply #8 on: April 12, 2009, 06:38:15 PM »
The question is are the permissions the same as the original ibay?

In server manager is the group set to "family"?
You also have it set to "read-group, write group"

I'm pretty sure this is just a permissions related issue somewhere.

At what point are you getting the "Forbidden Error"? Is this from a browser or when trying to access the samba share?






SME since 2003