ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Linux As File Server- Break Out From Other Thread

    IT Discussion
    linux smb samba file server
    11
    44
    3.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller @NashBrydges
      last edited by

      @nashbrydges said in Linux As File Server- Break Out From Other Thread:

      Most of my clients are small business owners, running in workgroup environments, and as licensing renewals/upgrades come up in discussion, most are also interested in reducing the licensing costs associated with Windows. As I slowly convert them to Hyper-V servers rather than Windows Servers running Hyper-V role, for clients for whom it makes sense to have on-premises file servers, it often might make sense to make the suggestion they move to Linux file servers (unless there are other reason why they must be running Windows).

      Generally worth moving to KVM instead of Hyper-V, too. No need for the complexity and overhead of Hyper-V, especially if you don't have AD. KVM is just easier to manage in the SMB world.

      NashBrydgesN 1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller @NashBrydges
        last edited by

        @nashbrydges said in Linux As File Server- Break Out From Other Thread:

        My question is, what are the recommendations/best practices when setting up Linux file servers. I guess I'm less concerned about which distro to use (I've been using Fedora more and more so that's likely my first choice) and more concerned with how you would set things up. For example, do you disable SMBv1 and only allow SMBv2 as the minimum standard? What's the best approach for setting up access rules for Linux if in a workgroup? Any gotchas or ah ha's I should know about?

        Basically treat it all the same as you would with Windows. If you'd do those things with a Windows file server, do them with a Samba one, too.

        1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller @NashBrydges
          last edited by

          @nashbrydges said in Linux As File Server- Break Out From Other Thread:

          These clients mostly run Windows PCs although some have agreed to test out using Linux desktops to see if that could be a fit. The oldest version of Windows for any client is Windows 7 (but they will be upgrading to Windows 10 shortly). Some have Macs but very few.

          Windows and Mac are SMB native. Linux desktops will use SMB, but it's not as elegant as moving to NFS. Anytime you can use NFS, go for it. Works so well on Linux.

          black3dynamiteB 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @dafyre
            last edited by

            @dafyre said in Linux As File Server- Break Out From Other Thread:

            There are some Gotchas with using SAMBA and Macs.

            Be sure to install vfs_fruit

            1 Reply Last reply Reply Quote 1
            • NashBrydgesN
              NashBrydges @scottalanmiller
              last edited by

              @scottalanmiller said in Linux As File Server- Break Out From Other Thread:

              @nashbrydges said in Linux As File Server- Break Out From Other Thread:

              Most of my clients are small business owners, running in workgroup environments, and as licensing renewals/upgrades come up in discussion, most are also interested in reducing the licensing costs associated with Windows. As I slowly convert them to Hyper-V servers rather than Windows Servers running Hyper-V role, for clients for whom it makes sense to have on-premises file servers, it often might make sense to make the suggestion they move to Linux file servers (unless there are other reason why they must be running Windows).

              Generally worth moving to KVM instead of Hyper-V, too. No need for the complexity and overhead of Hyper-V, especially if you don't have AD. KVM is just easier to manage in the SMB world.

              The only problem with this is, although I'm getting better with Linux and can manage most scenarios now, Hyper-V is the hypervisor I'm most comfortable with. KVM may be a much bigger learning curve. That's likely a topic for a different thread but things like how do I run backups/recovery from KVM for VMs, management methods/tools for KVM, etc?

              DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403 @NashBrydges
                last edited by

                @nashbrydges scott's reply will be "the same way you run backups on any other hypervisor".

                Agent based or by simply exporting the VM on a schedule to a remote storage medium.

                NashBrydgesN JaredBuschJ scottalanmillerS 3 Replies Last reply Reply Quote 2
                • NashBrydgesN
                  NashBrydges @DustinB3403
                  last edited by

                  @dustinb3403 said in Linux As File Server- Break Out From Other Thread:

                  @nashbrydges scott's reply will be "the same way you run backups on any other hypervisor".

                  Agent based or by simply exporting the VM on a schedule to a remote storage medium.

                  "Same way" of course but tools are going to be different. I'll take this away and do some research before asking more question about using KVM.

                  DustinB3403D 1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403 @NashBrydges
                    last edited by

                    @nashbrydges said in Linux As File Server- Break Out From Other Thread:

                    @dustinb3403 said in Linux As File Server- Break Out From Other Thread:

                    @nashbrydges scott's reply will be "the same way you run backups on any other hypervisor".

                    Agent based or by simply exporting the VM on a schedule to a remote storage medium.

                    "Same way" of course but tools are going to be different. I'll take this away and do some research before asking more question about using KVM.

                    Any agent based solution like Veeam or UrBackup etc would work here. If you needed something that was operated at the hypervisor level you'd simply export the VM.

                    There are also likely some scripts to do this that exist, but I don't know where they might be or how they work.

                    1 Reply Last reply Reply Quote 2
                    • black3dynamiteB
                      black3dynamite @scottalanmiller
                      last edited by

                      @scottalanmiller said in Linux As File Server- Break Out From Other Thread:

                      @nashbrydges said in Linux As File Server- Break Out From Other Thread:

                      These clients mostly run Windows PCs although some have agreed to test out using Linux desktops to see if that could be a fit. The oldest version of Windows for any client is Windows 7 (but they will be upgrading to Windows 10 shortly). Some have Macs but very few.

                      Windows and Mac are SMB native. Linux desktops will use SMB, but it's not as elegant as moving to NFS. Anytime you can use NFS, go for it. Works so well on Linux.

                      Any objection using both nfs and smb on the same server?

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch @DustinB3403
                        last edited by

                        @dustinb3403 said in Linux As File Server- Break Out From Other Thread:

                        @nashbrydges scott's reply will be "the same way you run backups on any other hypervisor".

                        Agent based or by simply exporting the VM on a schedule to a remote storage medium.

                        This is the stupid lazy answer because while it may be the same way technically, the tools do not exist the same.

                        DustinB3403D 1 Reply Last reply Reply Quote 2
                        • DustinB3403D
                          DustinB3403 @JaredBusch
                          last edited by

                          @jaredbusch I agree.

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Obsolesce
                            last edited by

                            @obsolesce said in Linux As File Server- Break Out From Other Thread:

                            @nashbrydges said in Linux As File Server- Break Out From Other Thread:

                            any hints on how to more effectively manage these file servers?

                            SaltStack.

                            Agreed.

                            1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @black3dynamite
                              last edited by

                              @black3dynamite said in Linux As File Server- Break Out From Other Thread:

                              @scottalanmiller said in Linux As File Server- Break Out From Other Thread:

                              @nashbrydges said in Linux As File Server- Break Out From Other Thread:

                              These clients mostly run Windows PCs although some have agreed to test out using Linux desktops to see if that could be a fit. The oldest version of Windows for any client is Windows 7 (but they will be upgrading to Windows 10 shortly). Some have Macs but very few.

                              Windows and Mac are SMB native. Linux desktops will use SMB, but it's not as elegant as moving to NFS. Anytime you can use NFS, go for it. Works so well on Linux.

                              Any objection using both nfs and smb on the same server?

                              No issue at all, but not on the same share. But definitely on the same server.

                              black3dynamiteB 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @DustinB3403
                                last edited by

                                @dustinb3403 said in Linux As File Server- Break Out From Other Thread:

                                @nashbrydges scott's reply will be "the same way you run backups on any other hypervisor".

                                This is exactly right. You want a process that is portable and uniform. How do you back up now on Hyper-V? For a file server that probably means backing up files via a script or agent. Your hypervisor is not a factor in that choice. It is unique to hypervisor level backups to have to worry about your platform when making backups. For a file server, you don't even need a backup utility if you don't want one, scripted backups work fine in most cases. Agents are normally better. Agentless has its place, but creates extra overhead in a situation like this. File servers can be backed up any way you want, they are the most flexible of all workloads.

                                DustinB3403D 1 Reply Last reply Reply Quote 0
                                • DustinB3403D
                                  DustinB3403 @scottalanmiller
                                  last edited by

                                  @scottalanmiller . .

                                  Unless it's a database.

                                  Ba-da-bum

                                  1 Reply Last reply Reply Quote 1
                                  • scottalanmillerS
                                    scottalanmiller @NashBrydges
                                    last edited by

                                    @nashbrydges said in Linux As File Server- Break Out From Other Thread:

                                    The only problem with this is, although I'm getting better with Linux and can manage most scenarios now, Hyper-V is the hypervisor I'm most comfortable with.

                                    This is like saying that lighting a campfire with flint and stones is what you will do because you are used to it, when the lightswitch is already invented. Even being used to it, I think the light switch remains easier once you try it out 😉

                                    NashBrydgesN 1 Reply Last reply Reply Quote 0
                                    • black3dynamiteB
                                      black3dynamite @scottalanmiller
                                      last edited by

                                      @scottalanmiller said in Linux As File Server- Break Out From Other Thread:

                                      @black3dynamite said in Linux As File Server- Break Out From Other Thread:

                                      @scottalanmiller said in Linux As File Server- Break Out From Other Thread:

                                      @nashbrydges said in Linux As File Server- Break Out From Other Thread:

                                      These clients mostly run Windows PCs although some have agreed to test out using Linux desktops to see if that could be a fit. The oldest version of Windows for any client is Windows 7 (but they will be upgrading to Windows 10 shortly). Some have Macs but very few.

                                      Windows and Mac are SMB native. Linux desktops will use SMB, but it's not as elegant as moving to NFS. Anytime you can use NFS, go for it. Works so well on Linux.

                                      Any objection using both nfs and smb on the same server?

                                      No issue at all, but not on the same share. But definitely on the same server.

                                      Ok. I just remember using NFS and SMB on the same server for a lab project a while ago. And I had an NFS share set up for Linux servers to back up to. And SMB share for Veeam Endpoint Backup to use.

                                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller @black3dynamite
                                        last edited by

                                        @black3dynamite said in Linux As File Server- Break Out From Other Thread:

                                        @scottalanmiller said in Linux As File Server- Break Out From Other Thread:

                                        @black3dynamite said in Linux As File Server- Break Out From Other Thread:

                                        @scottalanmiller said in Linux As File Server- Break Out From Other Thread:

                                        @nashbrydges said in Linux As File Server- Break Out From Other Thread:

                                        These clients mostly run Windows PCs although some have agreed to test out using Linux desktops to see if that could be a fit. The oldest version of Windows for any client is Windows 7 (but they will be upgrading to Windows 10 shortly). Some have Macs but very few.

                                        Windows and Mac are SMB native. Linux desktops will use SMB, but it's not as elegant as moving to NFS. Anytime you can use NFS, go for it. Works so well on Linux.

                                        Any objection using both nfs and smb on the same server?

                                        No issue at all, but not on the same share. But definitely on the same server.

                                        Ok. I just remember using NFS and SMB on the same server for a lab project a while ago. And I had an NFS share set up for Linux servers to back up to. And SMB share for Veeam Endpoint Backup to use.

                                        Nearly all NAS do that, too. Very common to have AFP, SMB, NFS, FTP all on the same box.

                                        1 Reply Last reply Reply Quote 1
                                        • Emad RE
                                          Emad R @NashBrydges
                                          last edited by Emad R

                                          @nashbrydges

                                          I genuinely dont why and what is file server anymore in this day and age, as it sounds very simple basic and archaic task to the point that it gone pointless, like FTP and SFTP.

                                          Regarding Linux as file server, you should seriously consider Linux Centos/Fedora and check how easy it is to setup and harness the power of linux LVM/FS/VDO/RAID below:
                                          https://mangolassi.it/topic/17760/unlock-vdo-in-cockpit

                                          It as very simple when dealing with elegant GUI client like cockpit, and you just need to install centos minimal + cockpit storaged packages, and your ready to fly. You can do RAID 10 on 4 drives, and then create LVM on top of it, and easily resize that volume any second or grow it without the need of unmounting it. VDO adds the compression and duplication support.

                                          Why do you want to deal with Windows idiot way of mounting network drives and it is limitations.

                                          Screw that, and even if you want to do this, why not use WinSCP with its 16 years of experience with another secure protocol and modern one like WebDav or SCP.

                                          I just dont get why File Server old way of thinking is needed for any company, let them have local copy + sync copy on the server as NC does, way modern and + you can easily host it on premises + open port and you allow them to work from home and access their files.

                                          NashBrydgesN 1 Reply Last reply Reply Quote 1
                                          • NashBrydgesN
                                            NashBrydges @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in Linux As File Server- Break Out From Other Thread:

                                            @nashbrydges said in Linux As File Server- Break Out From Other Thread:

                                            The only problem with this is, although I'm getting better with Linux and can manage most scenarios now, Hyper-V is the hypervisor I'm most comfortable with.

                                            This is like saying that lighting a campfire with flint and stones is what you will do because you are used to it, when the lightswitch is already invented. Even being used to it, I think the light switch remains easier once you try it out 😉

                                            Lmao. That's not even a valid comparison. Using Hyper-V or KVM is going to provide an excellent hypervisor platform and while there may be some advantages of using one over the other, we aren't talking about a full on departure from what would be considered good business practice. While I learn about KVM as a hypervisor and continue to use Hyper-V in the meantime, I'm still using standard industry best practice tools. If something was completely against today's norms like running Windows Server with Hyper-V role instead of Hyper-V Server, then it's fair to say that's not the right approach.

                                            Let's not forget that there is huge value in using something you know well over something you don't, especially when it is still best practice.

                                            scottalanmillerS 1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post