Should i set up lvm




















Browse All Mac Articles Do I need one? Browse All Android Articles Browse All Smart Home Articles Customize the Taskbar in Windows Browse All Microsoft Office Articles What Is svchost. Browse All Privacy and Security Articles Browse All Linux Articles Browse All Buying Guides.

Best iPhone 13 Pro Case. Best Bluetooth Headphones for Switch. Best Roku TV. Best Apple Watch. Best iPad Cases. Best Portable Monitors. Best Gaming Keyboards. Best Drones. Best 4K TVs. Usually just "naked" GPT. Usually naked partitions, unless the machine is expected to live more than 3 years and thus maybe get upgrades that would make LVM convenient to have.

I sort of remember that happening to me, but it's been some 15 to 20 years I'm thinking back to. Which can be compensated for by setting such filesystems for "news" use cases, but Easier to just not carve up the system so fine in the first place.

I use Ubuntu Server. I use an encrypted LVM, and I have been using one for the past five years or more. I tend to use it everywhere unless I have some particular reason not to, which I rarely do. LVM on the laptop and desktop because it's the path of least resistance for full-drive encryption. ZFS on the server. Sunner wrote: I tend to use it everywhere unless I have some particular reason not to, which I rarely do.

I think the decision is, will the disk hardware change on this host during its lifetime and might I need to expand some volume? And second, will I need to resize volumes without re-deploying the OS?

So in general I use LVM sometimes. I think in this "cloud-native" world, LVM will play less and less of a role, since you are less likely to keep server around for a long time without rebuilding them completely anyway.

LVM actively annoys the hell out of me in VMs, eg with opensuse default installs. And I have all that added complexity to maintain afterwards, for the rest of the life of the VM. It's a partition on the vdisk for default installations, not the whole vdisk, so it's still pretty problematic.

Resize the vdisk, grow the partition, resize the pv, expand the lv, then expand the filesystem. Especially if it's a glacially old opensuse that doesn't support resize on a mounted filesystem, so now I have to do all this crap offline with the vdisk mounted loopback AND all the rest of it.

On non-trivial VM servers I do one vdisk per partition, so you can resize disk at hypervisor level and then fs at Linux guest level. I use lvm everywhere whenever possible, but the way it's typically deployed by linux installers is sub-optimal.

On my workstation I do a lot with virtualization, so I use the free space in my volume group to create storage space to use as raw partitions for my virtual machines, which I have found to be generally better performing for VM guests than file-based storage. I can then use lvm snapshots with file systems and operating systems that don't natively support them like windows and NTFS.

With windows in particular, I can create a snapshot, so a dangerous system update, and have a restore point I can use if things go haywire with the VM. I can also create a snapshot to use as a source for a block-by-block file system backup that is guaranteed to be in a consistent and sane state. I have used free space in the volume group to expand the available storage space for my windows gaming VM on several occasions, which is a really nice benefit to using lvm for virtual machine storage, so it combines the flexibility of growable file-based storage, whatever snapshots libvirt supports with the file-based formats, with better overall performance.

And a side note about expanding volumes, with SSD storage becoming the norm, it's less important for optimal performance that logical volumes' extents be contiguously allocated on the physical storage with rotating storage, this is done to try and reduce the number of seeks, which aren't a concern with SSDs.

Also, lvm is SSD aware, so it can be configured to issue discards to physical ssds when deleting logical volumes. Lvm really doesn't introduce any additional complexity, as long as you take the time to learn the few simple commands and concepts used to administer it.

I guess contigous partitions would be more likely to recover data from versus LVMs, especially with non contiguous physical extents. Not in any version I've ever seen, although I'm pretty sure we have always picked the "set up LVM and use the entire space" option. Ubuntu server, and Linux servers in general compete with other Unixes and Microsoft Windows. ZFS is a killer-app for Solaris, as it allows straightforward administration of a pool of disks, while giving intelligent performance and data integrity.

There is, however, one thing that I found it good for. LVM works great for striping multiple drives together for raid 0 type configurations. Skip to content Android Windows Linux Apple. Home » Linux. Related posts: Best answer: How do I install fonts on Ubuntu? How do I change text color in Ubuntu terminal?

How do I install fonts on Ubuntu Server? How do I install fonts from terminal ubuntu? Join Date Aug Beans Should I use LVM on my new desktop install of ubuntu I am a lightweight user. I use my desktop to browser the internet, print documents, scan documents, and do some stuff with LibreOffice.

That is all. I like to keep things simple. When putting



0コメント

  • 1000 / 1000