Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lvm]

Logical Volume Management provides storage abstraction, a generalization of disk partitioning.

37
votes
5answers
18k views

The merits of a partitionless filesystem

I ran into something a couple of weeks ago that I'd never seen before: A filesystem (ext3 I believe) installed to a storage device without a partition. In essence /dev/sdb was the entire filesystem. I ...
21
votes
3answers
8k views

Trim with LVM and dm-crypt

I tried to setup TRIM with LVM and dm-crypt on ubuntu 13.04 following this tutorial: http://blog.neutrino.es/2013/howto-properly-activate-trim-for-your-ssd-on-linux-fstrim-lvm-and-dmcrypt/ See the ...
58
votes
11answers
51k views

SSH to decrypt encrypted LVM during headless server boot?

When I installed Ubuntu 10.04 and, now, 10.10, I was offered the option of enabling "encrypted LVM" for my hard drive. After choosing that option, I am prompted for my password during boot to decrypt ...
87
votes
2answers
76k views

How to shrink root filesystem without booting a livecd

I find myself needing to rearrange a system's partitions to move data previously under the root filesystem into dedicated mount points. The volumes are all in LVM, so this is relatively easy: create ...
48
votes
2answers
53k views

RAIDing with LVM vs MDRAID - pros and cons?

In his answer to the question "mixed raid types", HBruijn suggests using LVM to implement RAID vs the more standard MDRAID. After a little investigation, it seems LVM also supports RAID ...
17
votes
3answers
33k views

Move a logical volume from one volume group to another

Is it possible to move a logical volume from one volume group to another in whole? It is possible to create a (more or less) matching lv and copy the data over, but is there any way to do this with ...
1
vote
3answers
1k views

Resize an existing LVM partition and add the space to another LVM partition

I'd like to resize an existing LVM partition and add the space to another LVM partition. [root@dckapstaging ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/...
0
votes
0answers
68 views

How shall I split a partition containing `/` and `/home` into two logical volumes? [duplicate]

I have a laptop running Lubuntu 18.04, with a single hard drive as a bootable disk, and two partitions on it: EFI System Partition and a bigger partition contains everything else (e.g. / an /home). $...
86
votes
6answers
73k views

Does LVM impact performance?

I have to migrate a few servers to Linux, and one important aspect that I need to evaluate is that my new host system must have elastic storage capacity. Naturally, doing some basic research, I came ...
30
votes
5answers
82k views

How to reduce Volume Group size in LVM?

[root@localhost ~] vgdisplay --- Volume group --- VG Name vg_root System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 7 VG ...
31
votes
4answers
92k views

How do i extend a partition with a LVM and the contained physical volume and logical volume?

On my 240 GB SSD i had at first two partitions, one containing the Logical Volume with Linux Mint and the other had contained a NTFS partition to share with Windows. Now i removed the NTFS partition ...
21
votes
4answers
33k views

What is the best practice for adding disks in LVM

According to the Linux manpages you can add raw disks as well as partitions to a volume group. In other documentation (RedHat, CentOS or openSUSE), all examples refer to adding partitions to the VG ...
12
votes
2answers
1k views

Growing LVM root

I tried to grow my LVM (on luks) root partition with lvresize -L +5G -r /dev/vg/lv-root and found that the file system wouldn't grow because it was mounted. Now I found this https://ubuntuforums....
2
votes
1answer
270 views

Why is df -h size, util and dispo not corresponding to each other

When I'm using the command "df -h" I'm having the following output : Filesystem Size Used Avail Use% Mounted on /dev/mapper/fedora-root 20G 9,4G 8,8G 52% / devtmpfs ...
2
votes
2answers
9k views

How to extend LVM in RHEL 5.6

I need to extend the LVM on one server. This is the output of df -h: Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p2 58G 26G 29G 48% / /dev/mapper/VolGroup00-...
0
votes
2answers
6k views

Resize root LVM and FS in Debian 7

I have a Debian server and I would like to increase the "root" partition from 5GB to 17GB and to diminish the "home" partition from 14GB to 2GB. Here's the filesystem config: root@APP05:~# df -T Sys....
19
votes
5answers
101k views

lvm devices under /dev/mapper missing

I'm using Debian squeeze, and running LVM on top of software RAID 1. I just accidentally just discovered that most of the links under /dev/mapper are missing, though my system seems to be still ...
18
votes
5answers
30k views

Arch GRUB asking for /run/lvm/lvmetad.socket on a non lvm disk

I am running this script based on the ArchWiki setup procedure. It fails on the GRUB configuration step I am using the archlinux-2013.12.01-dual.iso inside VMware Player with 1 GB ram, sda is 810 MB....
14
votes
4answers
29k views

How do I combine two logical volumes that reside on a single physical volume in LVM?

I have two logical volumes, one is mounted as /, the other is mounted as /home. I want to combine them, because the / volume is constantly running out of space. (Yes, I know what's using all that ...
4
votes
4answers
12k views

Backup of LVM2 logical volume

I'd like to make backup on external drive of LVM2 logical volume in dd manner. Approach I consider is to make lv on external drive with identical size copy with dd (Please let me know if you see ...
11
votes
1answer
20k views

Move logical volume to a new physical disk

I have three logical volumes in a single volume group using a single physical volume (the whole existing disk /dev/sda). I now want to move one of those logical volumes to a new, faster disk, i.e., ...
11
votes
1answer
8k views

How to create a read-only snapshot in LVM, and then rollback to it after some work?

What are the commands to use in LVM in case I want to: create a read-only snapshot of a volume; (do some experiments in the volume); and then rollback the volume to the snapshot?
4
votes
1answer
8k views

Move data from regular partition to lvm

I've read a bit about lvm and decided that I want to switch to using it. It seems like actually setting up lvm can be done from the debian installer, so I suppose that'll be easiest. What I'm not sure ...
2
votes
1answer
877 views

Can LVM mark / avoid bad blocks?

Since as btrfs doesn't track bad blocks, as a work-around this btrfs mailing list post suggested using an underlying mdadm RAID0 configuration for badblocks support. Could LVM be used instead of ...
2
votes
1answer
3k views

Install Backtrack 5 r2 into running LUKS setup installed with ubuntu

One hard disk (sda), two partitions, with a working Ubuntu running. 1) /boot 2) LVM with this virtual volumes/partions/ or whatever they are called inside: Swap Ubuntu Home Prepared for Backtrack ...
9
votes
3answers
12k views

Any reason for encrypted /?

I am a big fan of linux and like trying out new distros now and then. I usually have my home folders and roots in a lvm atop an encrypted partition, but this tends to become cumbersome with every ...
7
votes
1answer
3k views

Can LVM snapshots be writable? (and used for temporary experiments)

It seems that usually it is talked about snapshots as read-only. (In a scenario where one creates a snapshot, then does some experiments with the main volume, and then restores the old state by "...
4
votes
3answers
8k views

How to reduce and remove Physical Volume from active Logical Volume?

For testing purposes I've tried to extend my logical volume by attaching one more Physical Volume (USB drive). Making the USB drive part from the logical volume with the following steps: Created ...
1
vote
1answer
4k views

How to migrate to LVM?

There is a machine: [root@SERVER ~]# df -mP Filesystem 1048576-blocks Used Available Capacity Mounted on /dev/sda2 124685 7462 110897 7% / tmpfs ...
4
votes
2answers
1k views

LVM2: lvcreate -L - What does 's', 'S' suffix stand for?

man lvcreate - Am I blind or there is no description for "sS" ? (I can't find on redhat manual pages as well) -L, --size LogicalVolumeSize[bBsSkKmMgGtTpPeE] Gives the size to ...
4
votes
1answer
3k views

Why is there a mismatch between size reported by LVM and the size reported by df -h?

I'm new to LVM and have been very confused by this: I am transfering a large file to a partition that I thought had about 1.5 terabytes of space on it. Near the end of the transfer, rsync exits with ...
3
votes
0answers
4k views

What steps can I use to recover a RAID 1 array with LVM and EXT3 on it?

Someone handed me a drive that used to be part of a RAID 1 (mirror) array. The drive apparently has LVM (1?) on it and EXT3 (I believe). What steps can I take to regain access to this drive? ...
2
votes
2answers
2k views

Restore formatted Partition Table on LVM Physical

I have a machine (guest VM running CentOS 6.5) with 2 disks. Main OS on sda and then a 2TB LVM on the second sdc. I added 2 more 2TB disks to the machine and was going through the process of ...
2
votes
2answers
1k views

LVM2 service is “masked” in Debian

I am trying to install my first Linux system and I am stuck setting up the hard drives. Given my lack of experience I decided to use the guided setup from the hard drive setup screen figuring I would ...
1
vote
1answer
548 views

Extend partition using LVM

I have Ubuntu 16.04 (no desktop manager installed) running in vmware. I am out of space and am trying to extend the existing partition using LVM. I have added additional space in vmware but am having ...
1
vote
1answer
62 views

Extend LVM size

I have an EC2 instance which has 2 EBS (1 x 200G, 1 x 100G). Below is the output of lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvde1 202:65 0 200G 0 disk / xvdj ...
0
votes
1answer
5k views

can you recover lvm metadata without access to /etc/lvm/?

I just installed Manjaro on to a externalized usb hard drive. After I was done, I tried to boot from my previously working Mint distro (no full-disk luks) on my internal hard drive. The lvm volume ...
0
votes
1answer
102 views

Why can't I create a physical volume?

I was wondering why I can't create a physical volume? Every settings are default for lvm just installed ( For cat /etc/lvm/lvm.conf see https://paste.ubuntu.com/p/QqrszWR8M9/). Is it because of &...
0
votes
0answers
139 views

“Failed to start lvm2.service: Unit lvm2.service is masked” [duplicate]

I am following https://wiki.debian.org/LVM on Lubuntu 18.04 I was wondering why I get the following problems. Thanks. $ sudo apt-get install system-config-lvm Reading package lists... Done Building ...
16
votes
3answers
26k views

How can I check for bad blocks on an LVM physical volume?

When you're using ext4, you can check for badblocks with the command e2fsck -c /dev/sda1 # or whatever. This will "blacklist" the blocks by adding them to the bad block inode. What is the equivalent ...
17
votes
7answers
75k views

Mapping between logical and physical block device names

I cannot figure out the mapping between different logical and physical block device names. The output of "cat /proc/diskstats" is : 104 0 cciss/c0d0 ... 104 1 cciss/c0d0p1 ... 104 2 cciss/...
8
votes
1answer
26k views

How do I mount an LVM partition?

I was trying to update Java and I used a star to make sure it was removed completely not realizing it would mess up everything I used apt-get remove java* this was on the Ubuntu 16.0 or something ...
6
votes
4answers
3k views

Any good LVM tutorial?

I'm planning to user LVM in my next Linux installation, any links to good LVM tutorials/guides/FAQs would be welcomed.
14
votes
1answer
11k views

Using a LVM partition as a Virtualbox drive

Is it possible to use a LVM partition as a Virtualbox disk? I can't find any option to use a device as a Virtualbox disk, only disk images.
9
votes
8answers
13k views

Partition manager that can handle LVM?

I have been looking but neither Gparted nor KDE Partition Manager can handle LVM. Working with the command line is probably fine but it would be clearer to have a GUI tool here. Does such thing exist?
4
votes
1answer
1k views

Persistent LVM device with loopback devices by fstab

I like to create a LVM device where physical volumes are loopback devices. I have read lot of documents and tutorials, like this. Unfortunately all of them are based on the losetup command, which ...
4
votes
1answer
5k views

LVM2 partition alignment

How to do the following with Linux tools : LVM partition alignment and alignment of partition on LVM ? What in case where I want to setup LVM partition (for "pv") and then partitions ? To be more ...
12
votes
2answers
48k views

How can I resize my root partition in Debian?

I am trying to add space to my root partition and am really not sure the safest way to go about it. I have read this thread, Can I resize the root partition without uninstalling and reinstalling ...
7
votes
2answers
13k views

How does grub2 load the kernel from an LVM volume?

Grub2 is able to load the kernel even if /boot is placed on an LVM volume. To use this feature one needs to add insmod lvm (the module can be on the grub bios partition that is not on an LVM volume) ...
5
votes
2answers
2k views

SSD as a read cache for FREQUENTLY read data

I'm looking for ways to make use of an SSD to speed up my system. In “Linux equivalent to ReadyBoost?” (and the research that triggered for me) I've learned about bcache, dm-cache and EnhanceIO. All ...