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
      last edited by

      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?

      I am setting up the box as a test box, but ultimately it's use would be to run KVM for a couple of virtual machines.

      Hopefully this isn't too general of a question.

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

        @ccwtech I normally do a small system partition (40 to 60 GB) and mount the data partition wherever it's needed. It changes depending on use case of course, but in your case I'd probably do a 40GB / partition and put the majority of the drive space on /var (where the KVM configs and virtual drives default to.)

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

          @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...

          travisdh1T scottalanmillerS 2 Replies Last reply Reply Quote 0
          • CCWTechC
            CCWTech
            last edited by

            I found this one but I have been told that XFS is a better way to go so I wasn't sure how good the video was.

            Youtube Video

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

              How many drives does your system have?

              CCWTechC 1 Reply 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:

                @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.

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

                  @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.

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • 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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post