SAMIT: Should You Still Be Using Disk Partitions
-
@JasGot said in SAMIT: Should You Still Be Using Disk Partitions:
@scottalanmiller
Can you do a part two that goes more in-depth?
For example...
Is Windows Disk Management a Volume Manager or Partition Manager?
Is Windows (command line) DiskPart a Partition manager or a Volume Manager?It appears Microsoft uses the terms interchangeably.
In Disk Management, they are listed as Volumes, but their status is Partition
In DiskPart they are listed as Volumes with "Type" of Partition?Those are both partition managers. Microsoft's Volume Management is handled in Storage Spaces.
Also, Storage Spaces is the least reliable storage system I know about.
-
@JasGot said in SAMIT: Should You Still Be Using Disk Partitions:
@scottalanmiller
Can you do a part two that goes more in-depth?
For example...
Is Windows Disk Management a Volume Manager or Partition Manager?
Is Windows (command line) DiskPart a Partition manager or a Volume Manager?It appears Microsoft uses the terms interchangeably.
In Disk Management, they are listed as Volumes, but their status is Partition
In DiskPart they are listed as Volumes with "Type" of Partition?I can, but the answer is "it's a manager and manages both." In Windows, Partitions are called "Basic" and logical volumes are the other option, Dynamic.
-
@travisdh1 said in SAMIT: Should You Still Be Using Disk Partitions:
Microsoft's Volume Management is handled in Storage Spaces.
Also, Storage Spaces is the least reliable storage system I know about.That's a newer, additional storage layer. That's a RAIN layer, mostly.
-
@scottalanmiller said in SAMIT: Should You Still Be Using Disk Partitions:
Everyone talks about disk partitions like they are a modern tech, but they were broadly supplanted by more advanced logical volumes over twenty years ago. Should we still really be talking about partitions most of the time?
I have an opposing view. Re-partitioning drives is a non-issue today. All the reasons that lvm was invented has disappeared when running workloads as VMs using thin partitioning.
LVM is just another abstraction layer that adds nothing. Debian by default doesn't even install lvm but you could if you wanted to.
I don't even use lvm on the new kvm hypervisor setup I'm working on, where one might argue it actually makes sense.
But I need thin provisioning and while lvmthin works libvirt doesn't support it. Using qcow2 files is just a lot more straight forward and flexible process. -
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
I have an opposing view. Re-partitioning drives is a non-issue today. All the reasons that lvm was invented has disappeared when running workloads as VMs using thin partitioning.
Except that that thin partitioning is from the LVM.
-
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
LVM is just another abstraction layer that adds nothing. Debian by default doesn't even install lvm but you could if you wanted to.
That's because it's added by default by the hypervisor.
-
@scottalanmiller said in SAMIT: Should You Still Be Using Disk Partitions:
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
LVM is just another abstraction layer that adds nothing. Debian by default doesn't even install lvm but you could if you wanted to.
That's because it's added by default by the hypervisor.
No dear, read my post in full before replying.
-
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
Using qcow2 files is just a lot more straight forward and flexible process.
Qcow2 here is a form of LVM. It's not the production called LVM2, but it's "an" LVM when you combine the file format with the driver for it. That's how it does what it does.
-
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
@scottalanmiller said in SAMIT: Should You Still Be Using Disk Partitions:
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
LVM is just another abstraction layer that adds nothing. Debian by default doesn't even install lvm but you could if you wanted to.
That's because it's added by default by the hypervisor.
No dear, read my post in full before replying.
I did, qcow2 is what I'm referring to. If you can resize, you have an LVM. Partitions can't be flexibly resized. To resize a partition you have to delete the partition and recreate a new one that matches the starting block. Logical volumes can be resized.
-
If you skip an LVM layer inside a server, you normally provide one from the outside. File based LVM systems like Qcow2 and others allow you to do some flexible things that don't require partitions such as resizing and providing different containers as completely different drives eliminating the need for partitions inside the containers because you can create an unlimited number of logical volumes.
Qcow2 on top of XFS or ETX4, for example, is the same as an LV on top of LVM. Just fatter. LVM2 is one type of LVM that works by making a super lean filesystem and making LV files on top of that. Qcow2 doesn't create the underlying lean filesystem and relies on traditional fatter filesystems like XFS or EXT4, but has basically all the same functionality - can be copied, resized, unlimited numbers, snapshots, etc. It's an LVM without the complex management layer.
The other approach is like ZFS, where the LVM layer is built into the filesystem itself. This is essentially the LVM approach + XFS or similar, but all through a single command line to make it feel like a single entity. But the layers remain the same regardless of it we break them out to an incredible degree like making file based virtual disks, if we have a management layer that does only that like LVM2, or we integrate it all into a single entity like ZFS.
-
@scottalanmiller said in SAMIT: Should You Still Be Using Disk Partitions:
If you skip an LVM layer inside a server, you normally provide one from the outside. File based LVM systems like Qcow2 and others allow you to do some flexible things that don't require partitions such as resizing and providing different containers as completely different drives eliminating the need for partitions inside the containers because you can create an unlimited number of logical volumes.
Qcow2 on top of XFS or ETX4, for example, is the same as an LV on top of LVM. Just fatter. LVM2 is one type of LVM that works by making a super lean filesystem and making LV files on top of that. Qcow2 doesn't create the underlying lean filesystem and relies on traditional fatter filesystems like XFS or EXT4, but has basically all the same functionality - can be copied, resized, unlimited numbers, snapshots, etc. It's an LVM without the complex management layer.
The other approach is like ZFS, where the LVM layer is built into the filesystem itself. This is essentially the LVM approach + XFS or similar, but all through a single command line to make it feel like a single entity. But the layers remain the same regardless of it we break them out to an incredible degree like making file based virtual disks, if we have a management layer that does only that like LVM2, or we integrate it all into a single entity like ZFS.
Well, if you extend the definition of lvm then everything is using it
-
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
I don't even use lvm on the new kvm hypervisor setup I'm working on, where one might argue it actually makes sense.
I don't use LVM2 either, or ZFS, 99% of the time. They have their place, but typically the benefit there is that LVM is more performant. So in extreme performance cases, it can have lower overhead for storage than Qcow2. But it isn't partitions vs LVM vs nothing... it's three different LVM approaches. The fourth approach is using the LVM layer from a RAID controller. Lots of people do that, too. Same as LVM2, but done on the hardware.
The one thing that makes no sense is partitioning the servers with hard partitions and skipping both LVM2 and Qcow2 approaches. That would be so weird, both inside the VMs, but especially in the hypervisor. It would feel super awkward.
-
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
Well, if you extend the definition of lvm then everything is using it
Everything should be using it, it's the only really logical approach in the modern world. The idea of hard partitions should have died long ago. But we saw people using it just today in an example, it's still out there in a lot of servers.
If you skip the LVM layer entirely today, you'd feel it. You'd lack snapshots, ability to resize (within reason), and all the flexibility we expect.
I know it seems weird to think about, but if you look at how LVM2, ZFS, a PERC and Qcow2 works... it's all identical under the hood. But it is all different from partitions, but the same as each other.
I think the only thing that makes it feel like these might not all be LVMs is that one of them used the name LVM2 23 years ago, and the others did not. In the Windows world they called their LVM "dynamic disks". Only on Linux and AIX did their LVM layer get called LVM or LVM-something. Everyone else gave it a product name rather than the category name.
-
@scottalanmiller said in SAMIT: Should You Still Be Using Disk Partitions:
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
Well, if you extend the definition of lvm then everything is using it
Everything should be using it, it's the only really logical approach in the modern world. The idea of hard partitions should have died long ago. But we saw people using it just today in an example, it's still out there in a lot of servers.
If you skip the LVM layer entirely today, you'd feel it. You'd lack snapshots, ability to resize (within reason), and all the flexibility we expect.
I know it seems weird to think about, but if you look at how LVM2, ZFS, a PERC and Qcow2 works... it's all identical under the hood. But it is all different from partitions, but the same as each other.
I think the only thing that makes it feel like these might not all be LVMs is that one of them used the name LVM2 23 years ago, and the others did not. In the Windows world they called their LVM "dynamic disks". Only on Linux and AIX did their LVM layer get called LVM or LVM-something. Everyone else gave it a product name rather than the category name.
In that case physical drives are using lvm too.
Mechanical disks can remap their logical sectors to physical sectors. SSDs even more so. And NVMe drives have namespaces which maps logical blocks into different independent "drives".
-
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
@scottalanmiller said in SAMIT: Should You Still Be Using Disk Partitions:
@Pete-S said in SAMIT: Should You Still Be Using Disk Partitions:
Well, if you extend the definition of lvm then everything is using it
Everything should be using it, it's the only really logical approach in the modern world. The idea of hard partitions should have died long ago. But we saw people using it just today in an example, it's still out there in a lot of servers.
If you skip the LVM layer entirely today, you'd feel it. You'd lack snapshots, ability to resize (within reason), and all the flexibility we expect.
I know it seems weird to think about, but if you look at how LVM2, ZFS, a PERC and Qcow2 works... it's all identical under the hood. But it is all different from partitions, but the same as each other.
I think the only thing that makes it feel like these might not all be LVMs is that one of them used the name LVM2 23 years ago, and the others did not. In the Windows world they called their LVM "dynamic disks". Only on Linux and AIX did their LVM layer get called LVM or LVM-something. Everyone else gave it a product name rather than the category name.
In that case physical drives are using lvm too.
Mechanical disks can remap their logical sectors to physical sectors. SSDs even more so. And NVMe drives have namespaces which maps logical blocks into different independent "drives".
That's fair, but you can't "use" those, in most examples. They are there, but they are effectively not there to you as an admin. But yes, that would be a storage abstraction layer, but it doesn't create volumes in most cases, those that do absolutely are LVMs and we've referred to them as that for twenty years. It used to be only in the RAID controllers that this existed, but with NVMe especially that LVM layer on the drives sometimes makes its way down to the drives themselves, too.
That's why hardware layer LVM should always be mentioned in these contexts (and I think its in the video.)
-
So is this drive setup right or wrong based on partitions being obsolete?
-
@JasGot said in SAMIT: Should You Still Be Using Disk Partitions:
So is this drive setup right or wrong based on partitions being obsolete?
I'd recommend using volumes instead of partitions (Dynamic) so that you have the option of modifying them later and other LVM features.
-
@scottalanmiller said in SAMIT: Should You Still Be Using Disk Partitions:
I'd recommend using volumes instead of partitions (Dynamic) so that you have the option of modifying them later and other LVM features.
So this is better?
-
@JasGot yup. One of the really nice features of Windows is that they can often insert an LVM layer without a lot of manual effort. On Linux that would be a pain in the butt after the fact.
-
@travisdh1 said in SAMIT: Should You Still Be Using Disk Partitions:
Microsoft's Volume Management is handled in Storage Spaces.
I misspoke, even in the straight Dynamic Volumes today (since Windows 8 and Server 2012) LDM was replaced by SS as the LVM manager.