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.

-1
votes
1answer
41 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
50 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
30 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
70 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
125 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
52 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
52 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 ...
2
votes
1answer
62 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
46 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
57 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
137 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
383 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
44 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
84 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
90 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
913 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
43 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
201 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
71 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
150 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
292 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
84 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
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). $...
0
votes
1answer
105 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
147 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 ...
0
votes
2answers
66 views

df -h results different than VGdisplay / LVdisplay

Im trying to remove the added disk to the VM, as the disk space is not needed anymore. However, it looks to be that the VM has in the VG almost all the data used what is available there. However, i'...
-1
votes
1answer
42 views

is it possible to `fsck` for badblocks a single LVM logical volume SEGMENT?

why? to resume fsck -fcck while looking for badblocks as it takes humongous time (1TB SATA HD) and I have no no-break on my desktop, so, I could split the logical volume in several segments of 10GB ...
0
votes
1answer
71 views

Access regular partitions inside an LVM logical volume

I have the following setup: /dev/sdX - disk (GPT table) /dev/sdX1 - regular partition /dev/sdX1/crypt - LUKS encrypted partition /dev/sdX1/crypt/lvm_vg - lvm volume group /dev/sdX1/crypt/lvm_vg/...
0
votes
0answers
42 views

Extend filesystem and LVM

I need to add more space to my filesystem. Right now it looks like this : Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_dcqsvu009-lv_root 50G 47G ...
0
votes
0answers
29 views

Extending a multipath'd /dev/mapper device that isn't listed as an LVM anywhere

RHEL 5. I have a host that uses an EQL array for storage with multipath on the OS. I'm trying to extend the disk: /dev/mapper/prdbkpp1 1.3T 1.3T 20G 99% /backup I rescanned and resized via ...
-1
votes
1answer
20 views

How much does my volume group use of my hard drive?

I want to know how much space of my hard drive is being used in the hard drive , let me explain: My first hard drive is /dev/sda and the second one is /dev/sdb each one of them has a logical voume ...
2
votes
0answers
92 views

Reducing disks from a RAID5 mdadm with LVM

Checking a system, I found a server with 12 4TB drives in Raid5, with LVM on top. Single VG, single PV, and a few LGs that wouldn't need more than 6TB of space (currently only 4TB). Read speed is no ...
0
votes
1answer
37 views

extended root partition debian

I user to RedHat and Centos. I need to add storage to root partition, and I just don't understand what is happening. My df -h: guy@ubuntu:~$ df -h Filesystem Size Used Avail Use% ...
1
vote
0answers
59 views

How to shrink a lvm partition?

I'm trying to shrink an lvm partition, I have already shrunk the home volume, but I still can't shrink the partition in gparted. I am getting the following error: Archiving volume group fedora ...
0
votes
0answers
136 views

lvconvert - Striped LV convert to Linear LV

I need to convert striped lvm stripe 3 to linear lvm [root@localhost ~]# lvdisplay -vm stripevg Using logical volume(s) on command line. --- Logical volume --- LV Path /dev/...
1
vote
0answers
78 views

Using a LVM Raid0 as a LVM Cache for / on Linux Mint

I have a pair of solid state drives (/dev/sda and /dev/sdc) and a hard drive (/dev/sdb). I would like to install the system to the hard drive, collect the SSD's into a Raid-0, and divide up that Raid-...
3
votes
1answer
203 views

LVM 'dissapeared' [closed]

I am struggling getting a customer's server back up.Apparently the machine just slowed down and when they rebooted it, it booted into dracut claiming it can't find the UUID of the disks. The original ...
1
vote
0answers
12 views

lvm mirror leg freezing 10mins after boot? how to fix it and what causes it?

when it happens, I see on the v1 text mode, logs like this: do_writes ... [dm_mirror] recovery_complete ... [dm_mirror] do_mirror ... [dm_mirror] proccess_one_work worker_thread kthread ...
0
votes
0answers
21 views

ix2-dl soho software won't mount disks

TL;DR the web gui and event viewer as well as soho.log don't actually print when mounting disks. It mounted itself eventually after a few days of uptime. No log message, no warnings or errors. No idea ...
0
votes
2answers
309 views

Unable to mount LV: “mount(2) system call failed: Structure needs cleaning,” but e2fsck says clean

I was trying to install an old optical drive into my system, which turned out to be having problems, so I pulled it out again, but upon rebooting back into Ubuntu 18.04, I'm unable to mount my 3-drive ...
0
votes
1answer
447 views

A start job is running for dev-disk-by\x2dpar…dffa6b3c0a51f.device no limit

I have a VCSA that won't boot. It gets as far as: A start job is running for dev-disk-by\x2dpar...dffa6b3c0a51f.device (no limit) What I'm trying to do is track down that UUID so I can start ...
3
votes
1answer
223 views

optimal_io_size is large causing LVM LV alignment inconsistency

I'm trying to create a LVM VG and LV, but the LV is not aligned. Here's my starting position: % lsblk -t /dev/sdd NAME ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE RA WSAME ...
0
votes
1answer
36 views

How to use complete disk space in the lvm - CentOS

I have created a new physical volume using /dev/sdb. I ran lsblk command and following is the output. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda ...
0
votes
1answer
27 views

Resizing Logical Volume [duplicate]

I had a logical volume root that was 20GB and another logical volume (named Boobies, yes I know it's childish) with 200GB. I downsized the other to 100GB and extended the root to 120GB. But the root ...
0
votes
0answers
64 views

Shrink LVM2 Thin Volume

I would like to shrink the space required by a thin volume used as a disk for a virtual machine (Windows). Unfortunately, the underlying disk is a USB-attached SSD and therefore mounting the NTFS ...
0
votes
1answer
43 views

I lvextend-ed the /, but there is still only 50Gbytes

I have pved, /dev/sda and /dev/sdb, and I vgextended the /dev/sdb to the default VolGroup, and lvextended the /. now the lsblk shows this: [root@store01 ~]# lsblk NAME MAJ:MIN ...
2
votes
2answers
131 views

How to mount lvm partitions with duplicate names

I have replaced my hard drive with an SSD and have installed Fedora on it exactly the same as my HDD. I'm attempting to read the data from the hard drive, but since both of the LVM partitions have ...
2
votes
1answer
85 views

Is it posible to resize a primary partition?

My company is running a cloud hosting with CentOS. In the past, when it reached maximun SSD capacity, they upgraded it. As far as I understand, they've done it by creating a primary partition and ...
0
votes
1answer
95 views

Resizing /home in Opensuse

I am using Opensuse Tumbleweed and set up the root partition as btrfs and home partition as ext4. I used lvm during installation.When installed, the root partition had 40GB and home partition had 25 ...