Avatar of burnedfaceless
burnedfaceless

asked on 

LXD or Docker containers for Linux File Server?

I have a server that has 32GB of RAM and 8TB of HDD with RAID 1 for 4TB of total HDD space.

I would like to split that with 2 TB being NFS and 2TB being Samba.

This is sort of a discussion oriented question.

I was wondering about running NFS and Samba under LXD or Docker containers. Would there be advantages to doing this (at least for learning)?
LinuxStorageRAIDDocker

Avatar of undefined
Last Comment
burnedfaceless
Avatar of Scott Silva
Scott Silva
Flag of United States of America image

Not sure if there would be any real advantage to using containers when you could just divvy up the space and share each from one server... To make sure one side doesn't use up more space than it is entitled to you would probably need partitioning on the drive
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of David Favor
David Favor
Flag of United States of America image

Scott is correct, quota enforcement with LXD right now is... pretty much non existent, so you'll have to determine how you'll handle quotas, if this is truly important.
Avatar of noci
noci

Docker can handle btrfs natively that may help solve you problem. Didn't investigate too far though) at least it does sparse allocation on file level.
Avatar of burnedfaceless

ASKER

Thank you for the discussion.

I think those are enough advantages to running LXD containers.
Avatar of David Favor
David Favor
Flag of United States of America image

I work with LXD containers daily. You're welcome to Skype me if you have any pressing questions or get in a jam.

Tip: The LXD GitHub project issue tracker is a wealth of information about LXD also.

Tip: When running many containers, having per container IPs or IP Ranges add amazing convenience.

If you require many IPs, check OVH. Cost is $3/IP one time setup, with no monthly charge, so very easy to do things like run an MTA inside an LXD container with 64, 128, 254 IPs or any other activity requiring one or many IPs.
Avatar of burnedfaceless

ASKER

Thanks David.

I need to get a run in, but I will start playing around with containers later today.
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo