Koozali.org: home of the SME Server

How to use SME also as NAS, provide fundamental steps

Offline UserOfHalde

  • *
  • 14
  • +0/-0
How to use SME also as NAS, provide fundamental steps
« on: November 15, 2015, 01:27:20 PM »
I mean a NAS in its layman understanded form.

I have setted up an SME, get an access via web interface, and have created an i-bay.

My question is what have i do to access a ntfs drive with data that is connected to the sme.
And secondly, i want to give two users each different access possibility to this drive.
Again i connected a drive that allready contains data on it and i want to serve two differen user, with to different access to this drive with data from that dirve.
And later i want to connect another some drives.

i mean, i have one of that i-bays with cgi/bin, files, and html file.

should i connect my harddrive to this files (mount in some way ) ?


Do i need some SME based skills or suffice it to have some regular linux skill of connect a drive to system fstab and so on.



Is there such a thing like a compedium for the sme?
Can some one say that if i have enough centos server skills i have the same skills in sme than?
« Last Edit: November 15, 2015, 03:44:05 PM by UserOfHalde »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #1 on: November 15, 2015, 03:57:58 PM »
Please read the Howtos & Contribs.
Links are at top of forums
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #2 on: November 15, 2015, 04:47:52 PM »
Hi UserOfHalde, welcome here..

I have setted up an SME, get an access via web interface, and have created an i-bay.

ok
Quote
My question is what have i do to access a ntfs drive with data that is connected to the sme.

SME doesn't support NTFS drives natively.. BTW, take a look in the wiki and search here in the forums and you'll find how to make SME see a ntfs drive
anyway, even if possible, you're strongly advised not to use it..

Quote
And secondly, i want to give two users each different access possibility to this drive.
Again i connected a drive that allready contains data on it and i want to serve two differen user, with to different access to this drive with data from that dirve.

it's not clear to me how and what you want/need to do..

can you give us as many details as you can? why do you want to use a ntfs disk?
have you got enough space to copy temporarily all the data from the disk to the server, format the disk in ext3/ext4 and then use it in a more reliable way?

Quote
And later i want to connect another some drives.

IIUC, you want to use/share many external disk.. can you give us a full picture of what you want to achieve?

Quote
i mean, i have one of that i-bays with cgi/bin, files, and html file.
should i connect my harddrive to this files (mount in some way ) ?

it depends.. please explain us your problem/aim and not your solution, thank you

Quote
Do i need some SME based skills or suffice it to have some regular linux skill of connect a drive to system fstab and so on.

fstab/mounting disks on SME is just the same of any other cents install

Quote
Is there such a thing like a compedium for the sme?
Can some one say that if i have enough centos server skills i have the same skills in sme than?

as Janet briefly suggest you, please take a look at the documentation, at the wiki, use the search feature here and there..
everything you need to know about SME is here in front of you

in any case, welcome again here

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #3 on: November 15, 2015, 08:27:49 PM »
Quote
format the disk in ext3/ext4 and then use it in a more reliable way

you mean features concerning - group file, directory and device permissions ?

is it possible to convert ntfs to ext4 filesystem with one command without to copy paste the whole content?

ok, for an instance: i have a hdd without data (that i can later format with ext4 fs if you want),  that i connect via cables to my computer on which i have installed the sme.

User A should get access to files alpha, beta.
User B shoulg get access to files yota, zeta.
both do not know about files of each other.
both has each 20% of disk space at one's own disposal.
Admin can grant or remove access.
each user get access over internet and in local network.


now i do not understand how to imagine the process sme wants i do.

i create that i-bay with cgi/bin, files and html files.

if i put some data in the files file, where this data will be lay on, on my harddrive?
and how can i influence this process, i mean which data has to go to what file?

Is there an tutorial that describe only this steps or at least partially this way?


do i need this or is there an other way to  provide  access  for different user to that harddrive.


i found something here : http://wiki.contribs.org/AddExtraHardDisk

is this the right way ?





« Last Edit: November 15, 2015, 08:32:16 PM by UserOfHalde »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #4 on: November 15, 2015, 11:52:36 PM »
UserOfHalde

Why do you want to or feel it necessary to connect additional drives to your sme server ?

Why not just put the biggest drives you can find
 in at least a RAID1 array, & just use the functionality of sme server to control access ?

Add some Groups & configure ibays to be owned by a different Group, then add your Users to the Group or Groups that gives them access to certain ibays. This is a fundamental part of good management of your sme server.

Setup Quotas for your Users which limits their total data usage/storage.

Re folder/file structure of ibays, if an ibay is web enabled then you see the 3 folders cgi-bin, files, html in samba/Windows networking.
Files you want to share locally on LAN using samba would go into ..../files, web content html files & similar would go into ...../html and cgi type web content would go into ...../cgi-bin

If web access is NOT enabled, then you do not see those 3 subfolders in samba, they still exist but the system does not display them. All files saved in the ibay will be placed in ...../files.

Controlling web access & limiting access to certain users is done in a totally different way, the above controls do not apply, unless your external users connect via VPN or OpenVPN etc to the server & become LAN users then.

Depending on the type of access you want to give web users, you may need to install contribs, configure custom templates & force users to use certain supported remote access software, refer to the Manual,  Howtos & numerous posts in these Forums over the years.

I am sure all this is in the Manual, so I think you should also read the Manual, a link is at the top of these Forums. Read it twice as there is a lot to absorb.

Having additional mounted drives other than the main system drives, complicates backup & major version upgrades, & is more difficult to rebuild your server in the event of a major system failure.

SME server is designed to be simple to use, try to use it that way for best outcome.
You are free to use SME server as you wish, but learn to use it "as is" first, before complicating your setup.




« Last Edit: November 16, 2015, 12:06:35 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #5 on: November 16, 2015, 12:27:15 AM »
thx :)

Quote
Why not just put the biggest drives you can find
 in at least a RAID1 array, & just use the functionality of sme server to control access ?

and if i put the next drive of the same size i get a redundant disk, my space will not grow?
i do not need raid.

i realy want to  use it "as is" , if i understand how.


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #6 on: November 16, 2015, 06:40:43 AM »
UserOfHalde

I suggested RAID1 to give your server some degree of data redundancy (& safety).
You are wanting to spread your data out across multiple seperate drives, so I am suggesting you put all the data on one big drive (by that I mean a pair of big drives in RAID1 array). In so doing you avoid the complexities mentioned about having seperate drives.

You can use software RAID1 on SME server which is very good & very fast, so you do not need an additional RAID card & you do not use the RAID built in to the motherboard (drive controller). Disable m/bd RAID in BIOS.

You need to follow the RAID Howto to add a drive to the array & grow the size, refer Howto.

I think you need to provide much more information about your current setup & what you propose etc.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #7 on: November 16, 2015, 11:46:02 AM »
you mean features concerning - group file, directory and device permissions ?

no, I'm concerned about ntfs itself (even if it's a journaled fs and quite robust it comes from M$, nuff said) and the ntfs support on linux, that's not so realiable and can suffer of data corruption
moreover, as I said, centos/SME doesn't support natively ntfs and so you'd not use it.

Quote
is it possible to convert ntfs to ext4 filesystem with one command without to copy paste the whole content?

no, AFAIK, and even if possible I won't never use such a feature..

Quote
ok, for an instance: i have a hdd without data (that i can later format with ext4 fs if you want),  that i connect via cables to my computer on which i have installed the sme.

please, stop telling us what you think you want to do (i.e. "how") and start telling us what are you aiming to, what do you have in terms of hw (disks, data amount and so on), otherwise we can't help you at our best and we all could finish in a classic "X Y problem" case..


Quote
User A should get access to files alpha, beta.
User B shoulg get access to files yota, zeta.
both do not know about files of each other.
both has each 20% of disk space at one's own disposal.
Admin can grant or remove access.
each user get access over internet and in local network.

the easier way to accomplish such targets are:
- create all the needed users
- create all the needed groups and add to them your users accordingly to your needs
- create as many ibays as you need and associate them to the groups..
- use quota to limit your user's space allocation

Quote
now i do not understand how to imagine the process sme wants i do.

well, the issue is that you aren't giving us all the details and the logic, we're just guessing :-)

Quote
i create that i-bay with cgi/bin, files and html files.

if i put some data in the files file, where this data will be lay on, on my harddrive?

on the hd where SME is installed, by design.. you can use other disks, but you must tell us everything..
we (here, the community) are a bit reluctant to give suggestions that may lead to a "error/failure" prone setup, so single hds, mounted anywhere (usb? brrrrrrr) are a BAD idea (but for backup)


Quote
and how can i influence this process, i mean which data has to go to what file?

Is there an tutorial that describe only this steps or at least partially this way?

do i need this or is there an other way to  provide  access  for different user to that harddrive.

i found something here : http://wiki.contribs.org/AddExtraHardDisk

is this the right way ?



you can customize your setup (see for example http://wiki.contribs.org/AddExtraHardDisk), but before doing so, please be verbose and let us help you, thank you

guest22

Re: How to use SME also as NAS, provide fundamental steps
« Reply #8 on: November 16, 2015, 04:32:51 PM »
You might want to take a look at the SharedFolders contribs, even on top of NAS or equivalent.


http://wiki.contribs.org/SharedFolders

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #9 on: November 19, 2015, 08:41:56 PM »
Quote from: Stefano link=
you can customize your setup (see for example http://wiki.contribs.org/AddExtraHardDisk), but before doing so, please be verbose and let us help you, thank you

Have two HDD, one empty, one full of content.
The empty one should be used by one user, who saves only his photos
And that with content by another user AND it should not be visible by
Photo 📷 hdd user.

Offline janet

  • *****
  • 4,812
  • +0/-0
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: How to use SME also as NAS, provide fundamental steps
« Reply #11 on: November 19, 2015, 09:14:23 PM »
Is there a reason you can't just build your SME server with sufficient capacity to accommodate both users' content?

The rest of what you're looking for, as I understand it, is simply for user1 to have access to user1's content, user2 to have access to user2's content, and neither user have access to the other's content.  That's trivial with SME--every user has a home directory, and the contents of that directory are only readable by that user.  You don't even need to use ibays for this.  SME also supports quotas, so you can limit each user to a certain amount of storage.

It really sounds like you're over-complicating this.  Put a couple of big (i.e., at least 2x the total capacity you think you'll need) hard drives in your server, and unplug any other drives.  Install SME--by default this will make a software RAID1 on your drives, so you'll be protected against one of those drives failing.  Create your users.  Set quotas through the server manager if you wish.  Copy the one user's data over the network to his home directory.  Unless you have other requirements you haven't stated, you're done.
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #12 on: November 19, 2015, 10:33:30 PM »
Is there a reason you can't just build your SME server with sufficient capacity to accommodate both users' content?


I agree 120%

install your server with at least 2 disks in raid1, setup users, groups and ibay as you've been suggested, copy your data, setup your backup and you're done, nothing more, nothing less..

and, again, please be verbose when you expose your needs, thank you

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #13 on: November 20, 2015, 12:41:06 AM »
please forget raid1 2 3, raid. Beacuse, because i am perhaps superstitious what ever...
no raid. please can't read it anymore.

I do not need redundant data have not enough resources to afford any raid. I have only 2 hdd's each 2 terrabyte, two for one user and two for me.

i posted very simple question how ... to connect that hdd's to sme?
i mean not how to mount hdd on a linux sys, i think it is likely not a big deal.
i mean how to connect that drives to that feature named S M E .
i will not install sme again, i wish no raid.

connect, assign permissions, use 

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #14 on: November 20, 2015, 02:16:49 AM »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #15 on: November 20, 2015, 11:00:29 AM »
Code: [Select]
I answered you, did you read it ?
Alternative 2
Yes i have, thank you 😊 Janet. In my last post ✉ I only want to mention 4 other who want that I be more verbose.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #16 on: November 20, 2015, 11:03:37 AM »
You won't be able to mount a NTFS disk and to share it the way you want to do
You've been suggested how to do in the most easy and reliable way
Anyway,  it's up to you

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #17 on: November 20, 2015, 11:33:59 AM »
UserOfHalde

Well I too think that what you want to do is not the best idea, but such things are doable, if you like to live with risk.

I was referring to using ext4 formatted disks when using the howto referred to earlier (not NTFS).

Re NTFS to ext4 conversion, did you Google.
This might help, but I think it might take longer than just copying data to a new drive, & be quite risky if you do not have a copy of the data on another drive.
Hard drives are relatively cheap these days, a black WD is cheap enough.
Saving money on a spare drive may result in loss of all your data, is the cost saving worth the inconvenience of data loss ?
See
http://askubuntu.com/questions/63022/convert-filesystem-ntfs-ext4


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

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #18 on: November 20, 2015, 12:25:57 PM »
janet

It's not just that drive costs, it's about conection possibilitys on mainboard, power consumtion costs, and the question is -
two cheap drives, or one that works.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #19 on: November 20, 2015, 12:31:36 PM »
well, it seems you're more interested in power consumption that data security/availability/reliability..
more than 2TB of data.. hope nothing important ;-)


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #20 on: November 20, 2015, 01:22:19 PM »
UserOfHalde

Quote
It's not just that drive costs, it's about conection possibilitys on mainboard, power consumtion costs, and the question is -
two cheap drives, or one that works.
I do not understand those points at all.
If you can connect 2 mounted drives, then you can connect 2 drives in software RAID1, both ways still use 2 SATA ports
Two mounted drives serving different ibays will still use power, or 2 drives in RAID1 array, not much difference.

The last point makes no sense to me at all - "two cheap drives or one that works".
It seems totally the opposite to what you are proposing.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #21 on: November 20, 2015, 01:28:07 PM »
It's not just that drive costs, it's about conection possibilitys on mainboard, power consumtion costs, and the question is -
two cheap drives, or one that works.

RAID - Redundant Array of INEXPENSIVE Drives.....

Quote
please forget raid1 2 3, raid. Beacuse, because i am perhaps superstitious what ever...
no raid. please can't read it anymore.

If you are superstitious you SHOULD be using RAID at the very least, and an external backup as well.

If not you have 2 x 2Tb = 4TB that is at risk. Are you backing it all up ?

If you have 1 x 2TB RAID array you can always grow it if you need more space. By the time you need more space, drives will have got cheaper.... power consumption - you are running two drives individually or 2 drives as RAID. Same drives, same power.

Quite simply if you care about your data, listen to the people here who are trying to save you from a world of pain. They know that in 6 months or a year you are going to be back here saying 'my drives are broken help me recover data - I need Help NOW' etc.

Save yourself that problem !

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: How to use SME also as NAS, provide fundamental steps
« Reply #22 on: November 20, 2015, 03:29:39 PM »
UserOfHalde,

The more you write here, the less sense you make.  The configuration you're proposing involves at least three hard drives--one (or more) for the SME server, and one additional for each of the two users.  This will use more power than the two-drive solution I propose (though only marginally; the idle power consumption of a 3.5" hard drive is negligible*)--so power consumption does not favor your solution, as minuscule a factor as it is anyway.

As far as mainboard connections, the solution I propose requires two SATA ports on the mainboard.  No doubt there are boards out there with only one, but they're few and far between--and boards that would be suitable to run a server, with only one port, are rarer still.  Your solution requires at least one port, plus a means of connecting two additional drives.  If these are to be mounted internally, then you require at least two SATA ports, at least the equal of my proposal.  If externally, your options are eSATA or USB.  eSATA works pretty well, but it's a rare board that will have two ports (SATA port expanders are the very work of the devil; don't even consider using them if you value your data at all).  USB works very poorly in terms of long-term stability and reliability, and doesn't perform very well either.

With respect to your remark of "two cheap drives, or one that works"--I really have no idea what you're trying to suggest.  My proposal involves setting up a RAID1 array, which would have two mirrored disks.  To lose your data, both of those disks would need to fail near-simultaneously.  For a single external disk to have a lower chance of data loss than this, it would need to be at least an order of magnitude more reliable.  Sure, if you spend six figures on a SAN, you might see that kind of difference in reliability--but you won't see it with individual external drives.

As to your pathological aversion to RAID, I don't know what to say.  If you care about your data, RAID is the best way going to protect it while in use (offline backups are also a very good idea, and protect against things that RAID doesn't, but recovery from them is often more involved).  To be sure, there can be catastrophic failures that will result in data loss on even the best-designed array--but they'll be much less common that the failures that will destroy data on a single disk.  I'd also point out that your SME installation, unless you've taken affirmative steps to the contrary, is already set up as a (degraded) RAID1.

Of course, it's your server, and you can administer it however you want.  Janet's given you links to documentation on how to do what you propose.  But you appear to have your heart set on a design that:
  • Consumes (marginally) more electrical power
  • Provides lower performance
  • Is more complicated to configure
  • Is less well supported
  • Provides less (really, no) protection for your data

This has a few of us scratching our heads and wondering why.

I've lost data to drive failures before.  It sucks.  I don't want it to happen again.  That's why my SME server runs on RAID1, it's backed up to a multiply-redundant RAID array, and that's backed up offsite.

* A WD Red 4 TB, to use one example, consumes about 4 watts at idle, which works out to 35 KWh/year.  Power costs vary widely, of course, but with what I pay, this is less than US$5/year.
......

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #23 on: November 20, 2015, 03:32:30 PM »
UserOfHalde
I do not understand those points at all.
If you can connect 2 mounted drives, then you can connect 2 drives in software RAID1, both ways still use 2 SATA ports
Two mounted drives serving different ibays will still use power, or 2 drives in RAID1 array, not much difference.

Are you kidding me?
4 TB vs. 2 TB   

Quote

The last point makes no sense to me at all - "two cheap drives or one that works".
It seems totally the opposite to what you are proposing.

WD is scrap.

you mentioned that drives are cheap...

if you are worried about safety, you have to buy any server hdds, you have to compare many drives, in the end you take that that is not cheap, two of them is a little bit to expensive, and four of them not affordable.

than you have to adjust your whole system, mean ECC memory,  UPS, fireportection finally. anytime you will end up by a datacenter.

i mean there are good drives and there are cheap drives, and hope :).
i allready had cheap drives in raid. And on a beautifull sunday morning both said good bye with all my nice memories. f... .
 raid? i don't give a shit. sorry. and even more so if the rest of the system is far away from fulfiling, meeting server requirements.
 
« Last Edit: November 20, 2015, 03:41:20 PM by UserOfHalde »

Offline ReetP

  • *
  • 3,949
  • +6/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #24 on: November 20, 2015, 04:14:46 PM »
Are you kidding me?
4 TB vs. 2 TB   

Lunacy or security - your choice

Quote
WD is scrap.

I have a lot of people I know using them professionally and they would disagree with you.... what do you think are great drives then ?

Quote
you mentioned that drives are cheap...

Depends on the drive....

Quote
if you are worried about safety, you have to buy any server hdds, you have to compare many drives, in the end you take that that is not cheap, two of them is a little bit to expensive, and four of them not affordable.

No you don't HAVE to buy server drives. You can, but it is not such a big requirement if you have several in a RAID

Quote
than you have to adjust your whole system, mean ECC memory,  UPS, fireportection finally. anytime you will end up by a datacenter.

Rubbish. For basic security the most likely thing to back flip into the lava is the spinning rust. Yes, upgrading some of the other bits would be lovely but on a minimal budget get the most important things right first.

Quote
i mean there are good drives and there are cheap drives, and hope :).

And good and bad luck too, if you believe in fairies and that sort of thing.

Quote
i allready had cheap drives in raid. And on a beautifull sunday morning both said good bye with all my nice memories. f... .
 raid? i don't give a shit. sorry. and even more so if the rest of the system is far away from fulfilling, meeting server requirements.
 

Mind the language please, Timothy. So no backup then..... and how are you going to back up your 4TB ?

You already know the price you really pay for a) cheap drives and b) not keeping a backup, and you would have thought you would have learned by now.

Ultimately you pay your money and takes your chances. Personally I'd have a good hunt on ebay and get a decent second hand board 'bundle' or say an older HP server. Then grab 3 or 4 smaller (and cheaper) drives and build a proper array. That's pretty well how I started. It cost pips. You can also have a hunt for computer recyclers - they often off load stuff dirt cheap - personally I rarely buy new kit and just hunt for 'nearly new' second hand for a fraction of the price. Have a look at say a ML310 G3 which would be fine as a starter kit. Second hand bits are plentiful and cheap.

People here are just trying to help you do the right thing. Most are pretty seasoned at this sort of thing. Most seem to think your original idea was not a good one, and no amount of your writing is going to change that. So you have a choice. Take some good advice, or take a chance.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #25 on: November 20, 2015, 04:34:48 PM »
janet, many thanks again

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #26 on: November 20, 2015, 04:59:25 PM »
UserOfHalde

I did not say or mean to use cheap as in poor quality drives.
I meant you can get good quality drives at what I consider is a cheap cost, or to say it another way, the cost of the drives is not particularly significant as the actual dollar cost is not extravagantly high.
Having an extra redundant drive in the server is a small price to pay for security of data. The cost of time to gather, create or recreate the data is much much greater than the cost of an extra drive.
If you want 4Tb of storage, just buy 2 x 4Tb drives, put them in RAID1, use the default features of SME to limit or control access by users. The 2Tb vs 4Tb argument is irrelevant, single drives in a server is a bad policy.
Make sure you have multiple redundant backups as well, ideally with historical ageing to allow restoration to a date of your choosing.

If you lost all your data due to concurrent drive failures, then you obviously did not have a good backup strategy in place.
You carry on about good quality drives & equipment etc, but don't have backups, are you kidding me !

Everything will fail one day or another, as a system administrator you have to cater for that without loss of data, or minimal loss in a really worst case scenario situation depending on what your tolerance is.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #27 on: November 23, 2015, 11:26:07 PM »
i choose no raid no lvm but in the end despite that choosing i get damn lvm md0 and raid1, how to prevent raid and lvm ?


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #28 on: November 23, 2015, 11:31:11 PM »
well.. apart the fact that /boot will ever be in raid0, your best bet is to read the documentation and to report here HOW did you do the things, in verbose mode ;-)

moreover, please control your language (second time in the same topic you've been warned), thank you

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #29 on: November 24, 2015, 02:07:59 AM »
UserOfHalde

Read this
http://wiki.contribs.org/Booting

SME server does have some limitations & maybe you are reaching those or perhaps the switches you entered at installation time were not quite correct.

Tell us exactly what you did at install time
and
show output of
cat /proc/mdstat
and
fdisk -l

« Last Edit: November 24, 2015, 02:09:42 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: How to use SME also as NAS, provide fundamental steps
« Reply #30 on: November 24, 2015, 10:31:30 AM »
i choose no raid no lvm but in the end despite that choosing i get damn lvm md0 and raid1, how to prevent raid and lvm ?

On SME9, /boot is indeed always created as a RAID1, but that's all. It's just acting as a single partition. You can even set it to be in optimal state with a single disk (eg, if your monitoring system doesn't like degraded RAID)

Code: [Select]
mdadm --grow /dev/md0 --raid-devices=1 --force

If you really want to control how partitions are setup, you can choose the graphical installer, which lets you create a manual partition layout just as a vanilla CentOS
C'est la fin du monde !!! :lol:

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #31 on: November 24, 2015, 02:34:30 PM »
exactly what I did:

see attachments

output /cat/mdstat :

Personalities : [raid1]
md0 : active raid1 sda1[0]
      255936 blocks super 1.0 [2/1] [U_]
     
unused devices: <none>

----
i began/started with one connected drive
----


output fdisk -l  :

 

Disk /dev/sda: 30.8 GB, 30820155392 bytes
255 heads, 63 sectors/track, 3747 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001c0f4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          32      256000   fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2              32         407     3009536   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3             407        3747    26830848   83  Linux

Disk /dev/md0: 262 MB, 262078464 bytes
2 heads, 4 sectors/track, 63984 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 15.4 GB, 15376000000 bytes
64 heads, 32 sectors/track, 14663 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1da5d42f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       14663    15014896   83  Linux


---------------------
« Last Edit: November 24, 2015, 02:37:45 PM by UserOfHalde »

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #32 on: November 24, 2015, 02:38:24 PM »
and an other attachment

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #33 on: November 24, 2015, 02:40:29 PM »
ok, now it's clear..

please re-read Daniel's answer: http://forums.contribs.org/index.php/topic,52071.msg266487.html#msg266487

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #34 on: November 24, 2015, 06:32:57 PM »
i will not install sme again, i wish no raid.

Only use "no raid" if your data is worthless.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: How to use SME also as NAS, provide fundamental steps
« Reply #35 on: November 24, 2015, 06:34:39 PM »
Only use "no raid" if your data is worthless.

There are valid reasons to install with "no raid", even if you care about your data. Especially when you install SME as a virtual host and the RAID layer is managed on the host
C'est la fin du monde !!! :lol:

guest22

Re: How to use SME also as NAS, provide fundamental steps
« Reply #36 on: November 24, 2015, 08:15:13 PM »
There are valid reasons to install with "no raid", even if you care about your data. Especially when you install SME as a virtual host and the RAID layer is managed on the host


Fully agree. All virtual players out there advise the same. It's virtual, real data integrity should be achieved on real layers.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #37 on: November 24, 2015, 08:20:23 PM »
Especially when you install SME as a virtual host and the RAID layer is managed on the host

But that is not what OP is doing.

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #38 on: December 01, 2015, 10:25:46 PM »
On SME9, /boot is indeed always created as a RAID1, but that's all. It's just acting as a single partition. You can even set it to be in optimal state with a single disk (eg, if your monitoring system doesn't like degraded RAID)

Code: [Select]
mdadm --grow /dev/md0 --raid-devices=1 --force

If you really want to control how partitions are setup, you can choose the graphical installer, which lets you create a manual partition layout just as a vanilla CentOS

didn't work.

despite this commands i have LVM and raid. I want it to controll for my slef, if i do use raid or not. I only want to try to controll this server with all his benifits, and then i will gladly use raid. But i think on this "simple" server i can do nothing...

i think i'll try pure centos.


Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: How to use SME also as NAS, provide fundamental steps
« Reply #39 on: December 01, 2015, 11:05:34 PM »
despite this commands i have LVM and raid.

No, you're not using LVM, only software RAID and only for /boot. The command I gave you wasn't to get rid of RAID, but was simply to make the RAID array non degraded, working only with one device, and so, acting exactly as a simple partition.

I want it to controll for my slef, if i do use raid or not.

As I already told you, you should select the graphical installer (in the advanced install option, when booting the CD) if you want full control over the partitions layout, with this, you'll have the same options as on pure CentOS. Note that the default layout *will* use LVM (this is inherited by CentOS itself), so you'll have to choose manual partitioning.
C'est la fin du monde !!! :lol:

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #40 on: December 01, 2015, 11:23:12 PM »
didn't work.

well, in this case provide us the exact command you use, the error message you got..

"didn't work" doesn't help us to help you

Quote
despite this commands i have LVM and raid.

you give us no evidence of what you did, how you did it and the results.. that's the only evidence here, unfortunately