Questions tagged [lvm]

In computer storage, Logical Volume Management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes.

1504 questions
11
votes
1 answer

What is the difference between the Linux and Linux LVM partition type?

Fdisk shows multiple partition types. What is the difference between choosing 83) Linux and 8e) Linux LVM? Choosing 83) Linux also works fine for using LVM, even creating a physical volume on /dev/sdb without a partition table works. Does picking a…
ujjain
  • 3,983
  • 16
  • 53
  • 91
11
votes
1 answer

What happens when a disk fails in LVM?

I am configuring a linux server on an ESX 4.1 host. This server needs to have several TBs of data stored on it. We are currently debating whether or not to use LVM. Our current reasoning is that is is best to have multiple 2TB volumes (a limit…
Stew
  • 173
  • 1
  • 8
11
votes
3 answers

What KVM disk type to use?

I'm setting up a few KVM virtual guests and I'm debating which disk type to use. I haven't been able to find a good resource online that runs down the pros and cons of each. Can you help me create a list of the different disk type and the advantages…
Barry Brown
  • 2,472
  • 5
  • 23
  • 23
11
votes
5 answers

Mounting a partition from a raw DD image file of a physical disk

I have a DD image taken from the raw HDD image (/dev/sdb). This image file contains an XFS filesystem that I need to mount. It is much too large to restore to disks (2.6TB img file) so I would like to mount it using loopback. However, the partition…
coderego
  • 175
  • 2
  • 8
10
votes
1 answer

How do I expand the root's volume size?

I have Ubuntu Server 18.04 LTS running off a 16GB SanDisk USB pendrive in my server. From what I can remember, when I installed Ubuntu on there I had enabled LVM support. For some reason, when I ssh into my server, it says / is using 99.6% of…
leetbacoon
  • 203
  • 1
  • 2
  • 7
10
votes
2 answers

xfs on lvm on hardware RAID: correct parameters?

I have 10 disks with 8 TB each in a hardware RAID6 (thus, 8 data disks + 2 parity). Following the answer of a very similar question, I hoped for an automatic detection of all necessary parameters. However, when creating the XFS file system at the…
sebschub
  • 205
  • 2
  • 7
10
votes
2 answers

Can I get LVM to check if my mirrors are consistent?

I'm using LVM mirroring. Following some disk issues I'm concerned about the consistency of the data in my mirrors. Is there anyway I can get LVM to physically compare the data in each mirror?
10
votes
5 answers

Device /dev/sdb1 not found (or ignored by filtering)

I am trying to add a physical volume for use to add volume groups and thus LV inside them. Sadly I am getting the following error. [root@server ~]# pvcreate /dev/sdb1 Device /dev/sdb1 not found (or ignored by filtering). [root@server ~]# fdisk -l…
awmusic12635
  • 265
  • 2
  • 4
  • 16
10
votes
3 answers

Xen image file vs partition/LVM volume performance

I read quite a lot of advice to switch from file-image VM storage, to partition/LVM volume based. The claim is that partition/LVM are much faster then image files. The downside in my opinion, is that one no longer have the whole VM in a single, easy…
SyRenity
  • 3,179
  • 11
  • 57
  • 79
10
votes
8 answers

Ubuntu: Resize the root LVM(2?) partition

I have an Ubuntu virtual machine running in VirtualBox 2.2.4, and I created it on an 8gb virtual disk which is too small. So, I am trying to increase the size of the disk. So far, I have done this: Created a new larger virtual disk Added the 2nd…
waterlooalex
  • 221
  • 1
  • 3
  • 10
10
votes
4 answers

Which filesystems offer snapshot functionality for users to recover data?

I'm working on a project that will teach linux to youth. Knowing they will have a tendency to delete or corrupt items in their home directories we are looking for a good snapshot option. We will not have access to fancy tools available from major…
Gray Race
  • 853
  • 3
  • 11
  • 22
10
votes
2 answers

Resizing lvm2 logical volume and file system: Exact sizes?

On my intranet server, I have a 100.00 GiB partition /dev/sda5, which I use as a physical volume for lvm2. It's the only physical volume in my volume group vg01. vg01 currently contains one logical volume lv01, using the full 100.00 GiB - well,…
Chris Lercher
  • 4,152
  • 9
  • 35
  • 41
10
votes
5 answers

Best practices for thin-provisioning Linux servers (on VMware)

I have a setup of about 20 Linux machines, each with about 30-150 gigabytes of customer data. Probably the size of data will grow significantly faster on some machines than others. These are virtual machines on a VMware vSphere cluster. The disk…
tuomassalo
  • 738
  • 2
  • 8
  • 22
9
votes
1 answer

How can I restore an LVM snapshot without deleting the snapshot?

Steps to reproduce create a snapshot of a volume using lvm lvcreate -L 200GB -s -n snapshotname /dev/hostname-vg/root make changes to the filesystem restore the filesystem to the state it was in when the snapshot was made lvconvert --merge…
falsePockets
  • 194
  • 6
9
votes
2 answers

Resize partition to maximum using parted in non-interactive mode

Since using fdisk in this case is fairly complicated due to the fact that the non-interactive usage is probably not possible or at leasr very complicated (using printf), i want to use parted resizepart for resizing a partition to it's maximum…
Eugen Mayer
  • 327
  • 1
  • 5
  • 15