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

    Fedora 28 Server - Linux 101 - How do you partition your drives

    IT Discussion
    fedora28 partition
    8
    32
    2.5k
    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.
    • CCWTechC
      CCWTech @travisdh1
      last edited by

      @travisdh1 said in Fedora 28 Server - Linux 101 - How do you partition your drives:

      @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

      @travisdh1 Can you dumb that down for me?

      I'm looking for more step by step or a walk through video if possible. Maybe Linux 098 vs. 101...

      Try this one: https://www.youtube.com/watch?v=olPWqd3gVY8 Around 2:05 is where you want to look for creating a custom partition layout.

      In that video would I just make the / partition larger since I have a larger drive and keep the others the same? Isn't XFS preferred now?

      travisdh1T scottalanmillerS 3 Replies Last reply Reply Quote 0
      • FATeknollogeeF
        FATeknollogee
        last edited by FATeknollogee

        You could do something similar to this & use /data for storing vm's

        0_1529273038336_screenshot_17.png

        CCWTechC scottalanmillerS 2 Replies Last reply Reply Quote 2
        • black3dynamiteB
          black3dynamite
          last edited by

          @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

          Isn't XFS preferred now?

          RedHat, CentOS and Fedora Server defaults to XFS. EXT4 is fine too.

          1 Reply Last reply Reply Quote 2
          • travisdh1T
            travisdh1 @CCWTech
            last edited by

            @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

            @travisdh1 said in Fedora 28 Server - Linux 101 - How do you partition your drives:

            @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

            @travisdh1 Can you dumb that down for me?

            I'm looking for more step by step or a walk through video if possible. Maybe Linux 098 vs. 101...

            Try this one: https://www.youtube.com/watch?v=olPWqd3gVY8 Around 2:05 is where you want to look for creating a custom partition layout.

            In that video would I just make the / partition larger since I have a larger drive and keep the others the same? Isn't XFS preferred now?

            XFS is my preference, yes. The root partition at 25GB is enough assuming you're only using KVM with a server base. The one big change you want to be aware of is assigning another LVM partition the rest of the drive space to the /var mount point. It's much easier to set that up at install time rather than change it later.

            CCWTechC 1 Reply Last reply Reply Quote 1
            • CCWTechC
              CCWTech @travisdh1
              last edited by

              @travisdh1 said in Fedora 28 Server - Linux 101 - How do you partition your drives:

              @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

              @travisdh1 said in Fedora 28 Server - Linux 101 - How do you partition your drives:

              @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

              @travisdh1 Can you dumb that down for me?

              I'm looking for more step by step or a walk through video if possible. Maybe Linux 098 vs. 101...

              Try this one: https://www.youtube.com/watch?v=olPWqd3gVY8 Around 2:05 is where you want to look for creating a custom partition layout.

              In that video would I just make the / partition larger since I have a larger drive and keep the others the same? Isn't XFS preferred now?

              XFS is my preference, yes. The root partition at 25GB is enough assuming you're only using KVM with a server base. The one big change you want to be aware of is assigning another LVM partition the rest of the drive space to the /var mount point. It's much easier to set that up at install time rather than change it later.

              So in @FATeknollogee example would I just change /Data to /var ?

              FATeknollogeeF 1 Reply Last reply Reply Quote 1
              • FATeknollogeeF
                FATeknollogee @CCWTech
                last edited by

                @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                @travisdh1 said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                @travisdh1 said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                @travisdh1 Can you dumb that down for me?

                I'm looking for more step by step or a walk through video if possible. Maybe Linux 098 vs. 101...

                Try this one: https://www.youtube.com/watch?v=olPWqd3gVY8 Around 2:05 is where you want to look for creating a custom partition layout.

                In that video would I just make the / partition larger since I have a larger drive and keep the others the same? Isn't XFS preferred now?

                XFS is my preference, yes. The root partition at 25GB is enough assuming you're only using KVM with a server base. The one big change you want to be aware of is assigning another LVM partition the rest of the drive space to the /var mount point. It's much easier to set that up at install time rather than change it later.

                So in @FATeknollogee example would I just change /Data to /var ?

                Yes you could.
                Just use that "+" (in the bottom left) & you could add "/var" instead of "/data"

                1 Reply Last reply Reply Quote 2
                • CCWTechC
                  CCWTech @FATeknollogee
                  last edited by

                  @fateknollogee said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                  You could do something similar to this & use /data for storing vm's

                  0_1529273038336_screenshot_17.png

                  I used this example just changing /data to /var instead and adding /home as a 2 GiB as well. I'm not sure that was necessary however.

                  travisdh1T scottalanmillerS 2 Replies Last reply Reply Quote 1
                  • travisdh1T
                    travisdh1 @CCWTech
                    last edited by

                    @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                    @fateknollogee said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                    You could do something similar to this & use /data for storing vm's

                    0_1529273038336_screenshot_17.png

                    I used this example just changing /data to /var instead and adding /home as a 2 GiB as well. I'm not sure that was necessary however.

                    Yep. /home would have just been a directory on the root partition if you hadn't added a partition for it. Always good to have a separate /home for file servers, but imo, not needed if it's just going to be admin users on the system.

                    scottalanmillerS 1 Reply Last reply Reply Quote 1
                    • ObsolesceO
                      Obsolesce
                      last edited by

                      No need to do a separate /home if it's just a KVM server and nothing will go in /home.

                      1 Reply Last reply Reply Quote 1
                      • JaredBuschJ
                        JaredBusch
                        last edited by

                        This is what my home KVM server has. I certainly don't need / to be that big, but I also knew I was going ot have 2 other disks for the KVM guests, so I just left / to fill the primary drive.
                        0_1529282022311_fa61a2cd-037e-4183-9eff-75f5f23a5652-image.png

                        1 Reply Last reply Reply Quote 3
                        • ObsolesceO
                          Obsolesce
                          last edited by Obsolesce

                          The only time I don't let / use up all my drive space is (usually every time) when I know I will have important data or a need for an amount of storage to be separate from the OS. I like to keep the OS stateless, and the stateful data separate, when possible or when it makes sense.

                          This has already saved me a few times, when having to reload or restore the OS while keeping the /data or /home partitions intact. All cases were when using LVM.

                          One could say "well, backups", but you know what's faster? Not having to restore from backups because you made a simple decision when installing the OS that has no negative consequence, only potential benefits.

                          FATeknollogeeF stacksofplatesS scottalanmillerS 3 Replies Last reply Reply Quote 3
                          • ObsolesceO
                            Obsolesce
                            last edited by

                            I don't separate partitions on my Linux workstation, however, I was referring to servers above.

                            1 Reply Last reply Reply Quote 1
                            • FATeknollogeeF
                              FATeknollogee @Obsolesce
                              last edited by

                              @obsolesce said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                              This has already saved me a few times, when having to reload or restore the OS while keeping the /data or /home partitions intact. All cases were when using LVM.

                              I've had to do this a few times & re-installing the o/s on the separate partition made it super easy!

                              1 Reply Last reply Reply Quote 1
                              • stacksofplatesS
                                stacksofplates @Obsolesce
                                last edited by

                                @obsolesce said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                The only time I don't let / use up all my drive space is (usually every time) when I know I will have important data or a need for an amount of storage to be separate from the OS. I like to keep the OS stateless, and the stateful data separate, when possible or when it makes sense.

                                This has already saved me a few times, when having to reload or restore the OS while keeping the /data or /home partitions intact. All cases were when using LVM.

                                One could say "well, backups", but you know what's faster? Not having to restore from backups because you made a simple decision when installing the OS that has no negative consequence, only potential benefits.

                                Yeah we have logs and data on separate volumes from the OS. Saves you if the logs take off or if you have more data than expected.

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

                                  @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                  I'm very new with Linux, so feel free to over explain.

                                  I am setting up Fedora 28 server and see that the auto partition feature doesn't seem to do a great job.

                                  Is anyone aware of a good walk through on how best to manually partition?

                                  Ultimately the same advice tends to stick, and that is "treat it like Windows." With the one thing to know is that we often have a dedicated /boot partition in Linux.

                                  Beyond that...

                                  1. We don't use partitions. Not in Windows, not in Linux. We use volumes. Partitions as a means of separating drive space is a vestige of the 1990s and earlier. By Windows 2000 or around 1998 in the Linux world, we no longer used partitions, they are rigid and fragile.
                                  2. Separate out what you need, and nothing more.

                                  That's really it. Would you create a new volume for the space in Windows? If so, you likely need it on Linux. Storage is storage, so that it is Windows, Linux, Solaris, AIX doesn't matter.

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

                                    @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                    @travisdh1 Can you dumb that down for me?

                                    I'm looking for more step by step or a walk through video if possible. Maybe Linux 098 vs. 101...

                                    Just use the advanced GUI storage tool during install. It's just like the one on Windows.

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

                                      @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                      @fateknollogee said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                      How many drives does your system have?

                                      Just 1 - a 256 SSD.

                                      Then, don't partition or create volumes unless you have an extremely good reason. That's an itty, bitty single device. What purpose would there be to splitting it up?

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

                                        @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                        @travisdh1 said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                        @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                        @travisdh1 Can you dumb that down for me?

                                        I'm looking for more step by step or a walk through video if possible. Maybe Linux 098 vs. 101...

                                        Try this one: https://www.youtube.com/watch?v=olPWqd3gVY8 Around 2:05 is where you want to look for creating a custom partition layout.

                                        In that video would I just make the / partition larger since I have a larger drive and keep the others the same? Isn't XFS preferred now?

                                        XFS has been preferred for a very long time for most use cases. But this isn't Windows and isn't limited to a single general purpose filesystem (NTFS), but has many with different features and performance. So people tend to pick and choose based on what they want it to do. XFS is the best choice if you don't know exactly what you are doing and why you'd pick something else, but if you really know all of the ins and outs of the filesystems, then picking EXT4, ZFS, BtrFS, JFS2, or others can make sense. But for experts only, if you have to ask, you don't need them.

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

                                          @ccwtech said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                          In that video would I just make the / partition larger since I have a larger drive and keep the others the same?

                                          You don't "make it" anything, you just have the / volume, not partition, fill the entire drive remaining after the /boot is made.

                                          Make a 1GB /boot on EXT4. Then fill the rest with XFS. Best to use LVM, but if that's too complex, just fill the space with XFS. That's all that there is to it. Keep it really, really simple.

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

                                            @fateknollogee said in Fedora 28 Server - Linux 101 - How do you partition your drives:

                                            You could do something similar to this & use /data for storing vm's

                                            0_1529273038336_screenshot_17.png

                                            Could do that, but it loses usable space, and is unnecessarily complex. Unless he's doing something complex with the /data partition, like using a different file system or needs to snap it separately from the OS, this is just a waste.

                                            Also, don't use swap partitions. That's not horrible, but it's unnecessarly complex and rigid and not considered best practice today.

                                            FATeknollogeeF 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post