Questions tagged [lvm2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

CentOS 6 LVM RAID5, unable to activate VG / LV. “device-mapper: reload ioctl on (253:119) failed: Input/output error”

I've found myself in a complex Linux LVM-RAID5 / device-mapper problem after one temporary device failure, and one bad block encountered during that time. The logical volume can now not be activated ...
1
vote
0answers
21 views

How to prevent GRUB from scanning lvm snapshot?

My root file system is a LVM2 logic volume, and there are few snapshots of it beside. Every time when I run update-grub, it always add menu entries for those snapshots as if they are normal volumes. ...
1
vote
0answers
292 views

systemd error message : Failed to start LVM event activation on device 253:0

I have an Acer Notebook with Debian Linux 10.0. As may be seen from lsblk output below, root partition is on 256GB SSD at /var/home and SWAP is located on an LVM2 volume located on two LUKS encrypted ...
0
votes
0answers
34 views

How to extend LVM2 partition while keeping existing files

OS: Ubuntu 20.04 server edition I'm attempting to adjust my Proxmox installation that I copied from my 120GB SSD to my 500GB SSD. However, fdisk is complaining about the 'GPT PMBR size mismatch'. I'd ...
0
votes
0answers
44 views

Do temporary files tend to reuse the same physical blocks over time?

On a Linux FS such as ext4, would temporary files such as logs and other /var stuff tend to end up on the same physical blocks over time? For example, with log rotation, would new logs tend to end up ...
0
votes
0answers
7 views

Ensuring filesystem consistency of LVM2 snapshots

I'm using lvm2 on Linux kernel 5.2 to make snapshots for backup purposes. Typically, my volumes are formatted with ext4. I cannot always ensure that no files will be open at the moment when the ...
0
votes
1answer
74 views

LVM volume group is not activated at startup

I have installed XCP-ng on a physical server. I used a 500 GB SSD and let XCP-ng use the whole disk, of which only 15 GiB is used by XCP-ng; the rest is free space in the VG. Now, I created a new LV ...
0
votes
0answers
43 views

Recovering a logical volume who's disk has been removed and plugged back in?

The reasoning behind what I've done is a long story, so I won't delve into details, but here's where I'm at: Take a HDD in a USB->SATA box, and plug it in to a machine, comes up as /dev/sde(1) ...
0
votes
0answers
84 views

lvm2 thin pool “pool target too small”

I use dmeventd to monitor my thin logical volumes and increase their size when they become full through the usual thin_pool_autoextend_threshold mechanism. I believe that my problem was originally ...
1
vote
0answers
127 views

docker using btrfs on lvm2 mount

I've modified my synology DS918 (DSM 6.2.2-24922 Update 4) to run docker-19.03.8. Unfortunately, while the main mount /volume1 is btrfs, and docker supports btrfs as a storage driver, it requires a ...
1
vote
0answers
63 views

LVM (seemingly) only using one device

I've inherited a machine with 2 physical drives: a ~1tb ssd a ~3tb spinning disk Here're the filesystems from $ df -h: [} Note that /dev/mapper/ubuntu--vg-ubuntu--lv is almost full; it's where a ...
0
votes
1answer
336 views

Can a volume group have partitions from different disks?

I have two disks /dev/sdb and /dev/sdc, and I have a VG (vg00) The volume group vg00 contains the LVM /dev/sdb1 but today I've extended the VG using vgextend and added /dev/sdc1 too. It worked, but ...
1
vote
1answer
326 views

Removing lvm cache volume results in “Unknown feature in status” output

Recently I've replaced the HDDs in a RAID 1 mdadm array due to a lack of space. The structure is as follows: - 2 HDD in RAID 1 (Originally 2x2TB, now 2x4TB) - LVM - Swap - BTRFS - 3 ...
1
vote
2answers
580 views

Recovering LVM Raid-5 Array

I have a failed raid-5 array that I can't seem to recover. Basically the story is I had this data in raid 5 and I was using LVM which has built-in raid now. I noticed one of the disks going bad so I ...
0
votes
0answers
38 views

Recovering data from NTFS file system

I have a hard drive with lvm2 pv file system. Its a 2TB drive from the NAS. I believe its partition table is damaged. There for I am going to format it with NTFS file system. Is there any problem in ...
0
votes
0answers
505 views

Converting lvm2 pv to NTFS File system

I have a NAS storage with a 2TB hard drive. Recently, the NAS storage unit damaged and I want to recover data from the drive. But it was not detectable on my laptop with Windows OS. When I tried ...
1
vote
1answer
144 views

DRBD and LVM in combination

I'm wondering what is the best way to combine DRBD and LVM. Is it better to first create logical volumes and then sync them with DRBD, or is it better to use DRBD with the physical disks / partitions ...
0
votes
1answer
298 views

Why do an XFS volume need to be mounted in order to resize?

If I have an ext4 volume I can resize it regardless of it being mounted or not using the resize2fs command (supplying the device), but for an XFS formatted partition I would need to mount the volume ...
0
votes
1answer
2k views

lvmcache: failed to connect to lvmetad on Debian Stretch during boot

I have a freshly set up HP Microserver with Debian Stretch. I set up a RAID5 with LVM on top and built an lvmcache. home is a symlink pointing to a directory on that LVM. Its mounted via /etc/fstab (...
0
votes
1answer
640 views

lvm encrypted partition in arch linux giving not file system specified error after selecting grub option

I'm try to configure lvm in my Arch Linux. But after configuring and booting, I'm getting this error: No filesystem type specified. Everything that follows is the details. Please click each link ...
1
vote
0answers
571 views

LVM2 Raid 1 “needs refresh”, but does not refresh or scrub

I'm running a LVM RAID 1 on two disks. Here is what lvs tells my about my VG: root@picard:~# lvs -a -o +devices,lv_health_status,raid_sync_action,raid_mismatch_count /run/lvm/lvmetad.socket: ...
0
votes
0answers
3k views

Fixing “Couldn't find device with uuid” error in RHEL

How can I restore the missing volume? I get the below error message and I am trying to fix it. It would be great, if someone could guide me here. Shared all the outputs below for better understanding ...
1
vote
1answer
2k views

udev rules for device mapper when lvm volumes are activated

I currently have a couple of custom udev rules for activating LVM volumes when raid volumes become available that look like this: KERNEL=="md0", RUN+="/sbin/pvscan --cache -aay" KERNEL=="md1", RUN+="/...
1
vote
0answers
467 views

Trying to recover encrypted partition, getting very confused

I have a LUKS/cryptsetup encrypted disk from a friend's Debian machine which would not boot. I'm trying to mount it on another Debian machine, using a USB enclosure, to recover the data or get some ...
0
votes
1answer
3k views

Linux - LVM pvcreate command not working

Using fdisk I create a new partition, write it with 'w', reboot Linux list volumes with lsblk. It shows up fine as /dev/sda3. But if I do a pvcreate mylvm /dev/sda3 It cant find it. It sayes device ...
1
vote
1answer
460 views

Some file permissions have '??????????' under LxC - Is this a feature, or a sign of a corrupt file-system?

I ran into the following listing quite by chance: [root@myhost /root]# cd /var/lib/lxcfs/cgroup/devices/ [root@myhost /var/lib/lxcfs/cgroup/devices]# ls -l ls: cannot access 'devices.allow': ...
1
vote
2answers
2k views

allow non root user to lvm command

I have to write a script that would allow non root user to display LVM info. I have allowed that user in sudoer file but still not able to run that command returning with following error. WARNING: ...
0
votes
1answer
136 views

Debian pvmove of root lv into raid10 device resulted in unbootable system

I was in the process of moving logical volume extents onto an raid 10 array assembled with mdadmin. One of the logical volumes moved was the root directory (debian testing system) which was previously ...
1
vote
1answer
3k views

How to undo vgchange --clustered y?

At the beginning of a cluster setup I invoked sudo vgchange --clustered y [name] and accepted the warning that the volume might be inaccessible - no problem, of course, because the cluster isn't setup ...
0
votes
1answer
1k views

“Re-attaching” an LVM volume/group

I created an image and used it to create a logical volume like this: dd if=/dev/zero of=LVM.img bs=1024 count=$((64*1024)) sudo losetup --find --partscan LVM.img sudo pvcreate /dev/loop0 sudo ...
1
vote
1answer
703 views

This arch install not yet working, /sbin/init trouble

I do an lvm2 arch install, as the installation page on the wiki tells. I do what the wiki page tells, with the mileage: put Grub as boot manager. Set the lvm2 hook on the mkinitcpio configuration. ...
1
vote
1answer
459 views

LVM2 RAID6 CentOS 7 not working

I have a server with 4 spare 6 Tb disks. I want to set up RAID6 on these four disks. It is well understood that 4 is the minimum one needs to set up RAID6. No matter what I pass to LVM2, I get ...
1
vote
1answer
1k views

install mint linux alongside ubuntu on lvm with EFI boot

I have recently moved to a new laptop (Lenovo Y50) and installed Ubunt 15.04 on it. I installed lvm so almost all the 1T HD is one logical partition. The other partitions are: eyal@eyal-Lenovo-Y50-70:...
1
vote
1answer
3k views

How to Glusterfs reload the gluster volume/bricks info

I have setup GlusterFS (3.5.3) replicated volumes on top of LVM on two identical Ubuntu 14.04 servers(vmware workstation). they are working fine.i want to know how to reload the gluster brick/volume ...
1
vote
0answers
1k views

how to mount a XFS filesystem in LVM volume with RAID0 having a bad disk?

I have a small NAS with two 500GB disks in a RAID0 (JBOD) setup. (I know, I know, big mistake... as you will see...) Now, one of the disks started to fail (Murphy is always right, isn't he...) I ...
52
votes
5answers
150k views

grub2-install: “this GPT partition label contains no BIOS Boot Partition”

There seems to be quite a bit of discussion about this but I can't find a simple answer. When I try to install grub2 I get this error: # grub2-install /dev/sda Installing for i386-pc platform. grub2-...
0
votes
1answer
875 views

Get current metadatasize for an physical volume

Is there a way to get the current metadatasize for a phyisical volume. I used [root@i-6b4fb096 ~]# pvcreate --metadatasize 10000 /dev/sda4 Physical volume "/dev/sda4" successfully created [root@i-...
3
votes
1answer
12k views

Remove a Physical Volume from VG with no free PE

I have LVM2 setup containing 2 Physical Volumes sda5 and sda6. Both Physical volumes are included in a single Volume Group VG, which inturn contains only one LV. The LV uses all the memory of the ...
0
votes
1answer
958 views

linux refused to mount a valid partition

My setup is a linux box with 1 partition used thought LVM - has been working for years. I add a freeze and after the reboot the partition cannot be mounted: mount -r -t ext3 /dev/pve/data /mnt/pve-...
1
vote
1answer
873 views

Can I control which physical volume(s) in a volume group will be used first?

I just set up my swap to use LVM, with a volume group that contains two physical volumes: one partition on an SSD and one partition on an HDD (because the space available on my SSD wasn't large enough ...
1
vote
1answer
138 views

extend lvm with existing partition

I have the following partitions: root@test02 [~]# df -l Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_test02-lv_root 119277820 ...
0
votes
1answer
211 views

size of extent on LVM2

in LVM1 there was a limit of 65k extends. So size of extent had to been chosen carefully between wasted space on partitions (to big extent) and maximal possible size of logical volume (too small ...
7
votes
2answers
20k 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)...
1
vote
0answers
273 views

LVM Unable to remove physical volume

Aim: To remove the physical volume from the LVM in order to reformat it. LVM Setup: 1x 2TB HDD 1x 3TB HDD Problem: When trying to pvmove, I get an error saying "No extents available for allocation" ...
2
votes
1answer
3k views

Can't boot Linux Mint 15 installed entirely in LVM. Where should grub 2.0 boot loader go?

I'm attempting to install Linux Mint 15 entirely within LVM (in four separate LVM logical volumes: / /boot /home swap I've set up the LVM configuration by booting into the Mint 15 Live environment ...
1
vote
1answer
1k views

How do LVM Snapshots work on the PE level?

How do LVM Snapshots work on the PE level? What is stored where? What data is lost when the snapshot runs out of COW space? (description + explanation below) I was experimenting with LVM and ...
3
votes
1answer
5k views

Mounting LVM2 volume with XFS filesystem

Unfortunately I'm not able to access the data on my NAS anymore. I can't figure out why this is the case as I haven't changed anything. So I plugged one of the harddisks in my computer to access the ...
1
vote
3answers
1k views

Migrating away from LVM

I have an Ubuntu home media server setup with 4.5TB split across a few hard-drives (1x3TB, 2x1TB) and I'm using LVM2 to manage the volumes. I have recently added a 60GB SSD to my server, and I wish to ...
0
votes
1answer
1k views

How to add unallocated space to a logical volume? using LVM

This is how my 2 TB (GPT) hard disk looks like sda1 1 MiB Bios_boot sda2 1024 GB LVM --- vg1 1024 GB --- lv1 24 GB ext4 lv2 1000 GB ext4 800 GB ...
0
votes
1answer
56 views

LVM2: Where is the volume backup file documented?

I need to know the units of the various numbers present in the LVM .../backup/vg_XXXX file - the one that contains the detailed lvm structure for a disk. Where can I find documentation (info, man ...