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.
-
@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.
-
@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?
-
You could do something similar to this & use /data for storing vm's
-
@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.
-
@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.
-
@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 ?
-
@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" -
@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
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.
-
@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
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.
-
No need to do a separate /home if it's just a KVM server and nothing will go in /home.
-
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.
-
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.
-
I don't separate partitions on my Linux workstation, however, I was referring to servers above.
-
@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!
-
@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.
-
@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...
- 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.
- 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.
-
@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.
-
@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?
-
@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.