Skip to main content

Questions tagged [lvm]

Logical Volume Manager for the Linux kernel manages disk drives and similar mass-storage devices, in particular large ones. "Volume" refers to a disk drive or partition thereof.

Filter by
Sorted by
Tagged with
64 votes
7 answers
410k views

How to mount an LVM volume?

I'm trying to mount an LVM2 volume in Linux, but all the instructions I see online say to mount the Volume Group, such as: mkdir -p /mnt/VolGroup00/LogVol00 but I don't know how to figure out the ...
99miles's user avatar
  • 807
49 votes
2 answers
87k views

Gparted cannot resize extended or LVM partition

I created a VM using VirtualBox and realized it was too small. After some time I managed to create a new, bigger hard drive. Live GParted CD image (v.022): Now I need to integrate the unallocated ...
papnikol's user avatar
  • 1,641
26 votes
4 answers
67k views

No more space in root filesystem, how could I increase the size?

This is my filesystem : $ df -h -x tmpfs -x devtmpfs Filesystem Size Used Avail Use% Mounted on /dev/mapper/fedora-root 9.8G 7.6G 1.7G 83% / /dev/mapper/fedora-home 50G 27G ...
Dimitri Danilov's user avatar
26 votes
2 answers
24k views

Best order of RAID, LVM and LUKS

I am going to install a file server with Debian GNU/Linux 8. I want to have software RAID-1 using mdadm as well as encrypted disks using LUKS. I also like the flexibility of having LVM. There are ...
Thomas's user avatar
  • 435
21 votes
3 answers
6k views

How to make suspend to RAM secure on Ubuntu with full disk encryption (LVM on top of LUKS)?

I'm on Ubuntu 13.04 using full disk encryption (LVM on top of LUKS). I would like to incorporate luksSuspend into the suspend procedure (and later use luksResume) so that I can suspend to RAM without ...
Jonas Malaco's user avatar
18 votes
4 answers
49k views

Fastest way to convert an ext4 formatted disk to LVM with ext4 on it?

I'm currently doing cp -aR to copy data from my (99% full) 1TB ext4 formatted disk to a new LVM-with-ext4-on-it disk. It's taking forever. Is there any way to attempt to "convert" the disk in place? ...
Max's user avatar
  • 709
18 votes
4 answers
85k views

Is there a simple way to move/copy a logical volume from one volume group to another? (LVM2)

I'm rearranging a bunch of disks on my server at home and I find myself in the position of wanting to move a bunch of LVM logical volumes to another volume group. Is there a simple way to do this? I ...
jkp's user avatar
  • 355
13 votes
2 answers
21k views

How do you add more space to a Fedora (LVM) partition?

In a nutshell, i have a VM that ran out of space. I increased the size of the VM's harddrive to be 4 times bigger but the OS partition is still only using 1x the space. I need to change the LVM ...
Trevor Boyd Smith's user avatar
13 votes
4 answers
2k views

How to make a redundant desktop system with daily snapshots? (Is btrfs ready for use?)

I want to configure a desktop system in which the home filesystem would be redundant (e.g. RAID-1), and would have weekly snapshots taken. I've already done this with ZFS, the snapshot system is ...
TestUser16418's user avatar
12 votes
3 answers
4k views

Does Linux support TRIM for SSDs on LVM?

I am getting a SSD and need to know, does Linux support TRIM if I set up LVM on top of the SSD? I'm finding conflicting information. I'm currently running Ubuntu 10.10 with kernel 2.6.35-28.
user avatar
11 votes
3 answers
8k views

LVM Difference in paths for mounts

So I can do the following: mount /dev/datavg/datalv /mnt or mount /dev/mapper/datavg-datalv /mnt Are these the same? Is there an advantage to one over the other? Is one considered better practice to ...
HayekSplosives's user avatar
11 votes
2 answers
6k views

How can I use one lvmcache "cache pool LV" for multiple origin LVs?

I have a shiny new computer with a not-that-large SSD (120GB) and two gigantic spinning-rust HDs (3TB each). I want to partition it as follows: swap (~128GB), operating system (~128GB), and data (...
zwol's user avatar
  • 1,278
11 votes
1 answer
4k views

A ZFS or LVM or MD redundant heterogeneous storage proposal

I have the same problem most people have: how to create a reliable personal storage solution with the fact that: Hard drives fail with alarming regularity. Losing files is unacceptable. I will buy a ...
Bob McElrath's user avatar
10 votes
1 answer
18k views

How to mount an LVM volume from a dd/raw/vmdk image?

Input: RAW/DD Image of an HDD. fdisk -l shows partitions fdisk -l image.dd Disk image.dd: 15 GiB, 16106127360 bytes, 31457280 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/...
gies0r's user avatar
  • 391
10 votes
2 answers
34k views

LVM: Two or more volume groups (VGs) on one physical volume (PV)

I have just a short question about LVM. A physical volume is a Partition or a whole Disk. A volume group is a container for a least one physical volume. So I know that a volume group can have more ...
Mkay's user avatar
  • 101
9 votes
3 answers
63k views

vgdisplay and lvdisplay No volume groups found

root@ubuntu-server:~# pvdisplay root@ubuntu-server:~# vgdisplay No volume groups found root@ubuntu-server:~# lvdisplay No volume groups found root@ubuntu-server:~# what to do. I can't find ...
senzacionale's user avatar
9 votes
4 answers
29k views

LVM and cloning HDs

Using Linux, I have several backup levels. One of them is a periodical sector by sector copy (using dd) of my laptop harddisk to an external USB disk. Yes, I have other backups too, like remote rsync. ...
jcea's user avatar
  • 275
9 votes
1 answer
6k views

Moving a LVM/LUKS encrypted partition to the end of a harddrive?

I need to move a LUKS encrypted partition to the end of a harddrive to expand another partition. Does anyone know how to do this? Is it possible to do this with other partition editing programs? ...
madmaze's user avatar
  • 4,286
8 votes
2 answers
14k views

How to align Logical Volumes on contiguous Physical Extents?

I have originally created 2 Logical Volumes in a Volume Group. The 2 Logical Volumes occupy the whole Volume Group and are sat on contiguous Physical Extents. However, after I have shrunk the first ...
user1129812's user avatar
8 votes
2 answers
24k views

How can I shrink a Logical Volume, and re-allocate the freed space into a new partition on the same drive?

I have a drive, sda. It has two partitions: sda1: /boot sda2: LVM managed in Volume Group volgrp01 volgrp01 contains the following Logical Volumes: lv_root (30 GB) lv_swap (8 GB) lv_scratch (430 GB)...
CptSupermrkt's user avatar
8 votes
5 answers
6k views

How to allocate limited SSD space in LVM for optimal performance

I just got a new SSD, and I'm looking for advice on how best to incorporate it into my existing LVM setup. I have the following logical volumes (mounted at the obvious places): # lvs LV ...
Matt McHenry's user avatar
8 votes
1 answer
14k views

LVM: Removing a 'Zombie' (Unavailable) VG

I have an LVM related problem. We have a server that 'learned' about a foreign volume group through a hard drive that was briefly attached. Now, with that hard drive gone again, all LVM utilities ...
AndiW's user avatar
  • 81
8 votes
1 answer
13k views

QEMU + KVM + LVM - performance of block device drive vs file image

I'm creating new setup for my virtual machines and testing which method for storage is most fastest. My test environment consists of HDD drive with LVM on LUKS. I created single LV for virtual machine ...
Marcin Sucharski's user avatar
8 votes
1 answer
11k views

Booting windows (any version) from an LVM volume

I'd like to know if any versions of Windows are able to boot from an LVM logical volume, with or without third party extension software.
intuited's user avatar
  • 3,391
8 votes
1 answer
4k views

Migrate LVM to ZFS

I am currently thinking about moving away from my LVM setup to a ZFS setup with RAIDZ. My current setup consists of 5 x 4TB disks in a LVM and a 60GB SSD for the system. At the moment there is about ...
Lukas Häfliger's user avatar
8 votes
2 answers
15k views

Extend volume group after extending physical volume

I am using LVM to allocate disk for my VMs so I can increase the "physical disk size". The only way I found to merge this free space to my VM Volume Group was: create a partition on new free space ...
trax's user avatar
  • 395
8 votes
1 answer
11k views

Uefi and full disk encryption with lvm on luks

I have an ASUS machine on which I can choose between the old BIOS and the new UEFI. I've always used the old BIOS system, running a full encrypted Debian with the following configuration: An ...
Egidio Docile's user avatar
8 votes
5 answers
8k views

From GRUB2, boot an ISO in an LVM2 logical volume

tl;dr - Is it possible to boot from a .iso file that is located in an unencrypted lmv2 logical volume? How? I'm trying to set this up in a VirtualBox VM before I do it for real with my laptop. I have ...
snapshoe's user avatar
  • 1,156
8 votes
1 answer
32k views

How can I mount an encrypted LVM under Windows?

I have a virtual machine with Ubuntu server with an encrypted LVM. I set up a virtual drive using imdisk to access its virtual hard drive without running the virtual machine, but I can't find any way ...
NotGaeL's user avatar
  • 577
8 votes
1 answer
10k views

LVM Encrypted Physical Volume versus Encrypted Logical Volume. Am I safe?

I'm somehow new to disk encryption techniques in Linux, but I have the basic notions about encryption. Here my conditions: I need to have "full disk encryption", including "/", not just "/home". I ...
pzanoni's user avatar
  • 198
8 votes
1 answer
1k views

Find files affected by bad blocks with md-raid5 and LVM

I've been doing a lot of research on this topic over the last few weeks - and I think I'm close to completing my recovery, as much as is possible at least. To make a long story short, I'll just ...
Rob's user avatar
  • 81
8 votes
1 answer
6k views

Linux alternative to Storage Spaces

I currently run a small home media server on a Windows machine. I'd like to swap it to a small compute stick of some sort running a thin linux distro. However, the reason I chose Windows to begin ...
jkang's user avatar
  • 201
7 votes
5 answers
57k views

List all physical volumes associated to a volume group

Maybe I'm missing something obvious but I do not see it listed in vgdisplay.
Belmin Fernandez's user avatar
7 votes
4 answers
63k views

How? Mount, Find & Recover DATA in HDD outside of Synology Box

How? Mount, Find & Recover DATA in HDD outside of Synology Box I had originally posted this question here on Synology Forums and no real solution was suggested except a Linux / RAID based ...
Alex S's user avatar
  • 991
7 votes
1 answer
21k views

Converting LVM/EXT4 to ZFS without losing data

I have a home media server with 2 x 3TB drives in it. Its currently set up using mdraid (1), LVM and EXT4. The setup was done using the ncurses Ubuntu Server installer. Goal Convert the setup to use ...
Maciej Swic's user avatar
7 votes
1 answer
13k views

Troublesome hard-drive in LVM — is it broken?

I have a LVM volume set up with several harddrives, and one of them seems to be failing, or at least something strange is going on. Every time the logical volume series sees heavy write activity, the ...
Anonymous Coward's user avatar
7 votes
0 answers
14k views

LVM and Superblock failure; how to recover?

How do you repair the superblock of an LVM volume? Alternatively, how do you recover the data on an unmountable lvm logical volume? I recently added a second hard disk, extended my volume group and ...
Dan's user avatar
  • 81
6 votes
4 answers
3k views

The opposite of mount -o loop: can I read a block device as a regular file?

I'm trying to back up an LVM volume using Duplicity (note: not just the file contents of the volume, but the actual volume itself, byte-for-byte). The best way I've so far found is to dd all the data ...
George's user avatar
  • 179
6 votes
3 answers
4k views

Home Server: storage virtualisation, what to choose?

I'm looking for virtualisation solutions for storage and OS for a home server. A sort of private cloud where I manage the storage space independently of the VM one. This question focus on storage ...
Huygens's user avatar
  • 1,469
6 votes
1 answer
20k views

Installing Windows on a LVM partition, next to already installed Ubuntu

I have a SSD driver partitioned with LVM, here is lvm lvs output: LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert lts ubuntu -wi-ao-- 103.14g ...
Bartłomiej Skwira's user avatar
6 votes
2 answers
6k views

XFS Incorrect statement of "No space left on device"

I have a server setup of an XFS partition on LVM on a Ubuntu 14.04.1 LTS. While copying files to the home partition, "No space left on device" is displayed. df -h displays sufficient space: /dev/...
Purf's user avatar
  • 63
6 votes
3 answers
13k views

Add unallocated space to lvm

I shrunk my windows partition and now have 10 GB of unallocated space that I now want to use to grow my / partition which is an ext4 in an lvm. I'm running Fedora 12. I ran system-config-lvm but the "...
user avatar
6 votes
2 answers
4k views

Creating a disk image of dm-crypt/LUKS encrypted LVM partition (Linux)

Is there any disk imaging software out there that can intelligently take an image of an encrypted LVM partition, if I provide the passphrase? I am referring to software that is similar to Clonezilla ...
Mike Rowave's user avatar
  • 1,985
6 votes
1 answer
2k views

How can I resize a partition managed by LVM?

I have a fresh CentOS install on my machine and I would like to make space on the drive available in order to install Arch Linux. Unfortunately, LVM is new to me and doesn't appear to work well ...
mclark1129's user avatar
5 votes
3 answers
28k views

Are there any LVM like solutions for Windows?

Are there any LVM like solutions for Windows? http://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29
LanceBaynes's user avatar
  • 4,110
5 votes
3 answers
15k views

How do I find what filesystem is on a logical volume?

I've installed Linux Mint 18 using logical volume management. This is my first experience with LVM. The installation process created the LV "root", and I'd like to know what filesystem exists in ...
Borea Deitz's user avatar
  • 1,167
5 votes
2 answers
3k views

MD Raid 1 read balancing algorithm

I have searched via google but did not find any information on the read balancing algorithm for MD raid1. Some years ago i have maybe read somewhere that it uses hashing the process id to determine ...
Sidias-Korrado's user avatar
5 votes
1 answer
5k views

LVM: How should I attempt to recover from PV and possible LV corruption?

This was my home file storage setup. It does not have backups because the RAID setup was meant to be the redundancy. I did not account for what happened and am paying the price. The setup: Ubuntu 16....
Craig Wright's user avatar
5 votes
2 answers
3k views

Advice on approaches to disk encryption in Ubuntu?

I'm considering encrypting the contents of my laptop, which runs Ubuntu 10.04 and has an ext4 + swap, and I'm wondering what the best options are here. I'm aware of: TrueCrypt: either block-level ...
xyzzyrz's user avatar
  • 921
5 votes
3 answers
15k views

Can I mount an LVM under Windows?

I have a dual-boot PC running Fedora and Windows 10. I would like to access the Fedora filesystem when the box is running Windows. This answer makes me think the answer is "no" but it is a slightly ...
dr_viridis's user avatar

1
2 3 4 5
10