Hi, Newbie to both nethserver and centos here,
I have setup nethserver on a 2tb drive and all working ok, I have added 2x2tb drives to the machine with raid1, all working and patitioned.
now I would like to move the current “share” from the os drive to the new raid and don’t have a clue where to start, cockpit only allows to create shares not edit location.
any help greatly appreciated.
Thanks,
Stubbsy
If you mount the Raid1 volume as /var/lib/nethserver/ibay/ all newly created shares will be created on the Raid1 volume.
Each share will be there as /var/lib/nethserver/ibay/[sharename]
Make sure to add an entry in fstab to make the mount permanent.
beware: if you already have shares with data in /var/lib/nethserver/ibay/* make sure to copy move the data first to another location, because after you mount the new volume, the shares on the single disk will not be available anymore. (the location /var/lib/nethserver/ibay/ will point to the new volume and not to the old single disk)
Better to “move” the data, otherwise the disk space will be limited, but you can’t remove the files / folders anymore… They’re hidden, as the mount point lies above, so are not accessible until umounting /var/lib/nethserver/ibays/… But still use up the space.
Thanks Andy,
I dont need to move the data in the share, I’m just wanting to create new shares, but not on the local drive, I’ve got a fresh 2tb raid that’s set up and ready to go in cockpit but don’t know how to tell the shared drives/samba section to create shares on that drive instead of the default local drive if that makes sense ?
can that be done post install and data on the drive ?
I have 3 x 2tb drives currently in the server
1 x 2tb install of nethserver, nextcloud, share etc
2 x 2tb fresh raid1
if i create a raid 5 out of the 3 disks wont it kill the os drive etc ?
sorry if this sounds dumb, like I say im just getting into this area.
Thanks
Theoretically yes, It can be difficult, especially If it is the first time…
It is maybe better to start from scratch with 2 disks in raid 1 and migrate later to raid 5…
A while ago I created a video on how to install nethserver with a seperate RAID1 volume for all nethserver data. If you want the RAID1 volume only for samba shares, change the mountpoint for the raid1 volume from /var/lib/nethserver to /var/lib/nethserver/ibay However, I strongly advice to set the mountpoint at /var/lib/nethserver so all your data is on a more reliable raid1 volume.
As said by @fausp, you could opt for a Raid5 and use that volume to install nethserver on. This could be a good idea when all disks have the same size and you want to maximize the amount of available diskspace. Do keep in mind that a Raid5 volume has significant slower write speed than a Raid1 volume.