Koozali.org: home of the SME Server

ibays, old hdd acces over network (NAS)

Offline gdh

  • *
  • 18
  • +0/-0
ibays, old hdd acces over network (NAS)
« on: April 06, 2015, 12:09:15 AM »
hey there, i am fairly new at SME server, so maybe you can clairify my questions.

i installed SME9 on a 40gb SSD, after that i installed 2 HDD, one 1tb one 4 tb. i mounted them via fstab. in home/esmith/files/ibays/...
now i would like to get acces to them, over network (access on the server is ok, tested it). the 1tb HDD should only give access to some speciefied users, witch are in groups already.
the 4tb should be accessible for everyone in the local network.

i guess there are some logical mistakes.

can i use the ibays for liking mounted HDD to specified groups/users?


how can i give access via network to my HDD?








Offline janet

  • *****
  • 4,812
  • +0/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #1 on: April 06, 2015, 02:40:21 AM »
gdh

Take a look at the menus along the top of forum pages. There are many links to useful information eg FAQ, Howtos, Contribs as well as the main Wiki page & the Manual.

Please browse through these to see the articles that are available so you are aware at least, about the extent of information that has been provided by many good people.

On the Howto page under A you will find
http://wiki.contribs.org/AddExtraHardDisk

& there is another Howto that refers to SCSI disks
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline gdh

  • *
  • 18
  • +0/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #2 on: April 06, 2015, 08:30:32 AM »
thank you for your post. unfortunately is the given link not requested, i already add my old HDD. by the way, this manual is outdated. no migration of sata disks, ext4 is missing and a part for migrating HDD without the lost of all data is not subscribed. but that is not the point.
the point is how to use the ibays, and can i use these feature for my request?

have you red my question? looks like there is a computer which gives answers to some words...


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #3 on: April 06, 2015, 08:39:31 AM »
gdh

Quote
have you red my question? looks like there is a computer which gives answers to some words...

Did you even bother to read that article ?
See

http://wiki.contribs.org/AddExtraHardDisk#Alternative_2:_Mounting_a_specific_ibay_or_user

... and please drop the attitude !
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #4 on: April 06, 2015, 08:42:55 AM »
I was to slow on the trigger there Janet, you beat me, I was going to point to the same info..you can only do so much :-)
--
qui scribit bis legit

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #5 on: April 06, 2015, 09:11:17 AM »
gdh

I'm sure you know the difference between hda & sda.
You have to make an effort.
Feel free to improve the documentation, request write access via your forum profile.
Nobody is paid here, all advice is given for free.




Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline gdh

  • *
  • 18
  • +0/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #6 on: April 06, 2015, 09:36:14 AM »
jep i red this article, but it doesnt help me.

HDD is already mounted and permissions are given, but i cant still access via network.
tried to mount in home/esmith/files/ibays/...  does not work and do these few steps to make a systemlink. but i stopped at this point:
Code: [Select]
[root@tape privat]# rm -rf /home/e-smith/files/ibays/privat
rm: Entfernen von ���/home/e-smith/files/ibays/privat��� nicht m��glich: Das Ger��t oder die Ressource ist belegt -> not possible, device is busy or in use

most important for me is to keep the data, i have no more disks to save the data


if we finish this datamigration i will update the wiki. but at this point nothing works...

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #7 on: April 06, 2015, 11:08:19 AM »
gdh..

you're trying to do something unusual and unsupported..

anyway, before giving you any kind of instruction, you'd give us as many info as you can.

is your data already on the server?
is there enough free space to make a backup/copy?
do you have a backup copy stored in another place?

Quote
but at this point nothing works...

well.. at this point we don't know exactly what you did and you are not helping us to help you

Offline gdh

  • *
  • 18
  • +0/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #8 on: April 06, 2015, 12:28:18 PM »
ok, i would like to set up some kind of NAS.

i have ONLY 2 HDD one with 1tb for private data and only user: admin, root, x230,x301,t60p and desktop should be able to read and write.
the second HDD is 4TB everyone in the local network should be able to read, but only user: admin, root, x230, x301,t60p and desktop should be able to write.

for this i created 2 groups. one ist security_level_0 ->everyone can read, only group write. ->this is for the 4tb HDD
the 2nd group is security_level_1 ->only group members are able to read and write.

the data is already on these 2 HDD and these to are physically installed into the server, and mounted (4tb in /home/e-smith/files/ibays/gemeinsam, 1tb treid to do these system linking, like the wiki manual)

I have no more HDD/space to make a copy of the 4TB, the 1TB is already backed up

no copy/backup in another place


why is this action something unusual/unsupported? its just like a small NAS/samba server, or am i wrong?


now ATM the status is, i can see the server in the network from windows and linux machines, but cannot access the ibay folder. there popped up something like you are not authorized. doesent matter which account i use (desktop, admin, x230)

« Last Edit: April 06, 2015, 12:49:11 PM by gdh »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #9 on: April 06, 2015, 04:06:23 PM »
post here your /etc/fstab file

Offline gdh

  • *
  • 18
  • +0/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #10 on: April 06, 2015, 04:17:47 PM »
Code: [Select]
# /etc/fstab
# Created by anaconda on Sun Apr  5 12:15:22 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/main-root   /                       ext4    usrquota,grpquota      $
UUID=a0e403d2-4221-4c27-a6d9-467b30a78826 /boot                   ext4    defau$
/dev/mapper/main-swap   swap                    swap    defaults 0 0
tmpfs                   /dev/shm                tmpfs   defaults 0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults 0 0
proc                    /proc                   proc    defaults 0 0
/dev/sda1 /home/e-smith/files/ibays/privat ext4 usrquota,grpquota 1 1
/dev/sdc1 /home/e-smith/files/ibays/gemeinsam ext4 usrquota,grpquota 1 1


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #11 on: April 06, 2015, 04:22:55 PM »
ok

try
Code: [Select]
signal-event ibay-modify privat
signal-event ibay-modify gemeinsam

then reboot your client (is it windows?) and try again..

Offline idp_qbn

  • *****
  • 347
  • +0/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #12 on: April 07, 2015, 02:17:16 AM »
gdh
If you want to continue with the SSD 40Gb drive as the OS and use the others just for data, perhaps you should look at using FreeNAS, which does that very well indeed.

SME is better because it allows you to do much more, IF YOU FOLLOW ITS RULES.

My suggestion for you is to get 4 big SATA drives (2Tb at least) and set up a RAID 5 Smeserver.
Have 2 ibays and 2 groups. Give each group access to its own ibay and not to the other.
You can put a user into both groups, which gives them access to both ibays.
Very simple, very elegant, very controllable.
No need to go inventing your own system.
This is what SME was designed for.

Remember, if a path is well trodden that's because it leads somewhere useful.

Cheers and good luck.
Ian
ps : As the old proverb goes: "Good Luck comes to those who Read The Manual".
___________________
Sydney, NSW, Australia

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: ibays, old hdd acces over network (NAS)
« Reply #13 on: April 07, 2015, 04:01:57 AM »
ps : As the old proverb goes: "Good Luck comes to those who Read The Manual".

Have to add to that, "and also cometh the answers" :-)
--
qui scribit bis legit

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: ibays, old hdd acces over network (NAS)
« Reply #14 on: April 07, 2015, 05:08:45 PM »
SME is better because it allows you to do much more, IF YOU FOLLOW ITS RULES.
I don't think it's accurate to say either that SME is better, or that it allows you to do more, than FreeNAS.  They're different systems, designed for different (although slightly overlapping) purposes.  SME does some things better, while FreeNAS does others better.

If anything, I'd say that FreeNAS allows you to do more, because you can install whatever software you want in a jail.  Want a public-facing web and mail server?  No problem--but you'll have to configure it yourself.  Want VirtualBox?  Click two buttons and enter a hostname.  If it'll run on Linux and it's Free Software, there's a 99+% chance it'll run on FreeBSD (and thus in a FreeNAS jail) too.  And with VirtualBox, if it won't run on FreeBSD, you can build a VM of whatever OS you want that it will run on.

SME certainly has its advantages.  It's an excellent choice for a pushbutton-simple, secure, NAT router and SMB web/mail/file server.  I wish it did ZFS, and it'd be really nice if it were designed to use a small boot/system device, combined with a larger storage device/pool, but it is what it is, and it works well enough for me that I've been using it for 15+ years.

FreeNAS has its advantages as well.  It supports more network protocols than SME (AFP, NFS, iSCSI, rsync, WebDAV), for one.  It uses ZFS, for another (and that's huge).  Replacement of failed drives (or replacing drives with larger drives to expand your pool) is pushbutton simple.  The architecture is of an appliance, and any changes you make or software you add is in a separate jail which doesn't interfere with the primary OS.  The developers make available a bunch of additional packages a plugins, making installation a point-and-click affair.

At the end of the day, there's very little that can be done in SME and not in FreeNAS, or that can be done in FreeNAS and not in SME.  But the set of things that are easy in each system is quite different.  You may well find, as I have, that the best course of action is to use both.
......