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.

0
votes
1answer
17 views

Linux LVM stripe gives the same amount of free space vs. Linear? [on hold]

Linux LVM stripe gives the same amount of free space vs. Linear?
0
votes
1answer
19 views

How to mount a partition inside encrypted lvm inside a disk image?

On my previous computer, I had my / /home and swap inside an encrypted lvm, and outside the lvm I had the /boot and /boot/efi. I then created an image. I think I did like this: dd if=/dev/sda of=lvm....
1
vote
0answers
10 views

Change PTTYPE and UUID of an fdisk created partition

I've got two systems. On one, I decided to try and increase the virtual disk /dev/sda. So I delete the partition using fdisk and recreate it with a larger end size but identical start location. ( ...
0
votes
1answer
17 views

lvconvert between different volumegroups - LVM

There are 2 lvs which are in the VG Raid. This two lvs should be an LVM Mirror. This 2 lvs should be mirrored in another VG called non-Raid. sudo vgs VG #PV #LV #SN Attr VSize VFree ...
0
votes
1answer
23 views

Proper way to activate LVM partition on multipath during the boot

I have Debian 9 with successfully configured iSCSI and multipath: # multipath -ll /dev/mapper/mpathb mpathb (222c60001556480c6) dm-2 Promise,Vess R2600xi size=10T features='1 ...
1
vote
1answer
32 views

How to enlarge this partition?

Inside vmware ESXI I have a CentOS virtual machine, and I resized the virtual disk from around 30 GB to 120 GB using vmware "edit" vm menu. Then I booted using a gparted bootable ISO and resized the ...
2
votes
1answer
13 views

Resize EBS with LVM

AWS supports live EBS resize. I increased from 10G to 20G on my /dev/sdb1. Step 1: pvresize /dev/sdb1 # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 ...
1
vote
0answers
39 views

unable to create a bootable USB Debian Stretch disk using LVM with GPT partitions

I'm stuck for several days whith a issue when I try to create a bootable USB disk GPT partitonned. I would like this disk to be like a bootable "backup" disk for my live system. (In fact the system ...
0
votes
1answer
22 views

Snap RAID and LVM

I have multiple physical disks of different sizes that I wish to create one large pool of storage space on. The purpose of this large pool of space is to store a large encrypted file which is too ...
3
votes
1answer
73 views

How to merge and expand filesystem LVM encrypted LUKS

My filesystem: $ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 9.8G 0 9.8G 0% /dev tmpfs 9.8G 18M 9.8G 1% /dev/shm tmpfs ...
1
vote
0answers
92 views

Automount LVM logical volume with a udev rule and udisks2

I want to automatically mount an LVM logical volume on an external drive as soon as it is connected to the computer. The solution I choose here is to use udev to detect plug in events and udisks2 to ...
0
votes
1answer
48 views

GRUB doesn't boot copied Linux install

I copied a Linux installation from one partition to another partition on a different drive. I did this from a live usb and omitted dev, /proc and /sys. I ran update-grub from the original install, it ...
0
votes
1answer
17 views

System contains LVM volume, but no LVM tools are installed

I've inherited a system that contains a mount point at /var/lib/couchdb-backups. I presume this is volume is managed with LVM. because the disk is located at /dev/mapper/*. Yet no tools for managing ...
2
votes
0answers
104 views

Why am I being thrown into an emergency shell when booting?

I have set up Arch Linux with full-disk encryption and partitioned my system disk using LVM. I just changed the motherboard, CPU and RAM of my machine, and after enabling legacy boot and disabling ...
0
votes
0answers
18 views

Logical Volume / Group Volume / Physical Volume : blivet-gui and pvmove

I installed fedora29 workstation. I have only one 1To SATA disk (Partition table : GPT). After automatic installation, all my disk space is used. To reduce /dev/sda3 (because I want space on my disk), ...
1
vote
0answers
70 views

ls command is too slow for some directories

When I run ls command for some directories, it may take about 1.5 seconds to complete even if directory has just a few files, but for most of directories it's very fast. It seems that it's slow for ...
1
vote
1answer
84 views

What is /dev/mapper/cachedev1?

I just got my first QNAP NAS, used to work mostly with Synology before, and I'm currently trying to figure out how the system uses LVM. Mostly out of curiosity. In my specific case, it's a 2 bay NAS ...
4
votes
1answer
167 views

Should I answer yes to “Clone multiply-claimed blocks<y>?” when running e2fsck?

When running e2fsck -cck /dev/mapper/xxx I am prompted with has 487 multiply-claimed block(s), shared with 84 file(s): ... (inode #221446306, mod time Tue Feb 20 19:48:38 2018) ... (...
0
votes
0answers
33 views

What should one know when cloning a disk image that has LVM partitions on it with Clonezilla?

I'm trying to create an image backup of a drive that contains an lvm partition, is there anything I should know before I do this? I've read that it fails a lot when attempting to clone a disk with an ...
0
votes
1answer
29 views

How to expand the root volume after attach new volume?

I create new virtual machine in OpenStack Project. After I want to add size free space in VM. I added new Volume and attached to VM. After start VM I tryed to check status HDD. fdisk -l Disk /dev/...
0
votes
0answers
74 views

Workaround for shrinking a XFS CentOS root partition

I run a cloud VPS with Centos 7 installed. Unfortunately, I could not customize disk partitions during installation so now I have no free space in the volume group automatically created because it is ...
0
votes
1answer
46 views

Why some of my LVM filesystems use /dev/dm paths instead of /dev/mapper/ paths in df output?

All my filesystems are hosted by LVM logical volumes : $ lsblk -l | grep lvm vids_VG-iso (dm-11) 252:11 0 32G 0 lvm vids_VG-vids (dm-12) 252:12 0 586,6G 0 lvm vids_VG-vids ...
1
vote
1answer
557 views

Shutdown and reboot hang

9 times out of 10 my computer would take ≅ 2 minutes to shutdown or reboot. I tried many things like adding systemd and/or shutdown to initcpio hooks, but no luck. reboot -f never hangs so I followed ...
0
votes
0answers
23 views

Finding target mount location of LVM logical volume

Currently I use the following script to get the target mount point of a specific Logical Volume. df $(lvs --noheadings -o path VG_NAME/lv_name) | tail -1 | awk '{print $1, $NF}' findmnt -l | grep $(...
-1
votes
1answer
40 views

How can I find what uses the space in a LV(logical volume)?

The logical volume(aka LV), centos-home is created automatically when installing CentOS 7 by default, but I didn't use it manually. Now, I have mounted an empty directory, work to centos-home. /home/...
0
votes
0answers
22 views

How can I customise root partition (/) volume size in VM ( Centos7) creation using Packer?

I'm creating a vmware machine("type": "vmware-iso",) using packer. By default it creates /(root) partition with size appx 40 GB(not sure why? default ?). Now I am struggling to find out a way through ...
0
votes
0answers
24 views

How to use lvm directly on tmpfs?

LVM can use devices as backing store for physical volumes but not directories. tmpfs can be mounted at any mountpoint but mountpoints are always directories. How can the two be reconciled? I’m ...
-1
votes
2answers
67 views

Will moving logical volume `/` which contain `/boot` cause failure to boot?

I followed Stephen Kitt's recommendation put / and /home under LVM, instead of leaving / in its own partition. If /boot is in a logical volume for / (as by default it is), will moving the logical ...
0
votes
0answers
34 views

How can I reduce the LVM space and assigned that reduced space to existing partition?

Had this condition, I really need a space in /dev/vda1, how can I reduce the size of my LVM in /dev/mapper/vg-data-lv_data by 10G and assign those 10G of space to my /dev/vda1 partition ? If it's ...
-1
votes
2answers
87 views

How shall I create PVs, VGs an LVs on external hard drives? [closed]

I have two hard drives (250G, and 150G) taken out from laptops, and can attach them to my computer using SATA/USB adapter. (I don't have an enclosure case, and what tools do you think are the best to ...
-1
votes
1answer
31 views

Will `pvcreate` refuse to create a PV out of a partition by default, if the partition has a filesystem which is not mounted?

https://www.thegeekdiary.com/lvm-error-cant-open-devsdx-exclusively-mounted-filesystem/ says LVM will only create a pv label on a device if it is not currently in use. There are some of the other ...
-1
votes
1answer
42 views

What does pvmove do?

man pvmove says pvmove moves the allocated physical extents (PEs) on a source PV to one or more destination PVs. You can optionally specify a source LV in which case only extents used by that LV ...
3
votes
1answer
34 views

In what sense, is `lvmdiskscan` deprecated,and we should use `pvs` instead?

man lvmdiskscan says lvmdiskscan scans all SCSI, (E)IDE disks, multiple devices and a bunch of other block devices in the system looking for LVM PVs. The size reported is the real device size. ...
0
votes
1answer
32 views

What is a meta device?

man pvcreate says pvcreate initializes a PV so that it is recognized as belonging to LVM, and allows the PV to be used in a VG. A PV can be a disk partition, whole disk,meta device, or loopback ...
-2
votes
3answers
55 views

Is a disk without being partitioned a partition by itself?

From We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition? You can't make the whole disk a PV if there is at least one partition on it (because pvcreate won't let ...
-3
votes
1answer
74 views

Does pvcreate destroy all the data in a partition?

man pvcreate says pvcreate initializes a PV so that it is recognized as belonging to LVM, and allows the PV to be used in a VG. A PV can be a disk partition, whole disk, meta device, or loopback ...
-3
votes
2answers
204 views

We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition?

Manpage of pvcreate says pvcreate initializes a PV so that it is recognized as belonging to LVM, and allows the PV to be used in a VG. A PV can be a disk partition, whole disk, meta device, or ...
-1
votes
1answer
42 views

How shall I better calcuate the target sizes for shrinking a LV and filesystem?

I had a LV with a ext4 filesystem. lubuntu@lubuntu:~$ sudo parted -l Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/lubuntu--vg-root: 499GB Sector size (logical/physical): 512B/512B ...
1
vote
0answers
50 views

Unable to enable discard/fstrim on a luks encrypted lvm-volume with Siduction (Debian Unstable)

i'm to get discard/fstrim enabled on my Siduction-System on a thinkpad x250. I use Siduction (Debian Unstable) with LVM 2.03.02(2). I have a big partition /dev/sda2 which is LUKS-Encrypted and in it ...
0
votes
1answer
52 views

Why can't I remove a PV from a VG?

$ sudo pvs PV VG Fmt Attr PSize PFree /dev/sda2 lubuntu-vg lvm2 a-- <465.26g 0 $ sudo vgs VG #PV #LV #SN Attr VSize VFree lubuntu-vg 1 3 0 wz--n-...
-3
votes
1answer
361 views

WARNING: ext4 signature detected on /dev/VG/swap at offset 1080. Wipe it?

I have created a VG, and want to create a LV for swap: $ sudo lvcreate -n swap -L 4G VG WARNING: ext4 signature detected on /dev/VG/swap at offset 1080. Wipe it? [y/n]: y Wiping ext4 signature on /...
0
votes
1answer
41 views

Can't log in desktop environment after moving `/` and `/home` into different LVs and enlarge swap

I enlarged LV swap from 1G to 4G. I also moved / and /home in a single PV to two different LVs, by shrinking LV root and create LV home on the freed space, and then following https://askubuntu....
-2
votes
2answers
119 views

How can I make `fsck` actually check the healthiness of my disk, partitions, filesystems, and LVs?

I want to check the healthiness of my disk, partitions, filesystems, and LVs. So I run fsck. I heard to use fsck on a filesystem, I need to boot into a live Lubuntu from a bootable flash drive and ...
0
votes
0answers
35 views

“Error: /dev/mapper/lubuntu--vg-home: unrecognised disk label” for a LV

What does "Error: /dev/mapper/lubuntu--vg-home: unrecognised disk label" mean for LV home? What can I do about it? Thanks. $ sudo parted -l Model: ATA TOSHIBA MQ01ABF0 (scsi) Disk /dev/sda: 500GB ...
0
votes
1answer
59 views

lvrename: Existing logical volume not found in volume group

$ sudo vgs VG #PV #LV #SN Attr VSize VFree lubuntu-vg 1 3 0 wz--n- <465.26g 0 $ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move ...
1
vote
0answers
166 views

Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes

My laptop has Lubuntu 18.04 installed, and I boot into a live Lubuntu via a bootable flash drive, and then examine the partitions and filesystems. Is the following warning some serious problem to ...
-3
votes
1answer
70 views

Are these two ways of installing Lubuntu with LVM both feasible and equivalent?

When installing Lubuntu using a Lubuntu bootable flash drive, there is a step asking (see the picture below, although it is for Ubuntu not for Lubuntu) “Erase disk and install Lubuntu”, which has ...
0
votes
0answers
67 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). $...
0
votes
1answer
51 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
66 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 ...