Questions tagged [lvm2]

The tag has no usage guidance.

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

I can't delete unkown PV from LVM Storage

I have some problems with LVM storage. some PVs of my LVM storage are missing and I want to delete these unknown PVs. now, I should delete these PVs for use my LVs and I tried to delete these missing ...
user avatar
  • 1
0 votes
2 answers
73 views

lvm semantics compared with Mac OS container volumes - sharing storage between logical volumes?

I'm very new to lvm, and have simultaneously understood how Mac OS container disks work. I'm very happy with Mac OS container disk semantics - I don't have to think how much space to allocate. I just ...
user avatar
0 votes
0 answers
70 views

VM guests report read-only filesystem when offsite Stacked DRBD replication is enabled on host server

happy holidays to all. I have a problem running drbd stacked resources to another off-site server. The primary host server is running Virtual Machines (VMs), Linux and Windows. The secondary host ...
user avatar
1 vote
0 answers
379 views

LVM: Problems in adding disk to an existing Logical volume

I have a disk under a Logical Volume. $ lvdisplay --- Logical volume --- LV Path /dev/vg_prod/lv_prod LV Name lv_prod VG Name vg_prod LV UUID ...
user avatar
0 votes
1 answer
170 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 ...
user avatar
  • 21
1 vote
0 answers
115 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. ...
user avatar
  • 153
1 vote
0 answers
1k 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 ...
user avatar
0 votes
0 answers
61 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 ...
user avatar
0 votes
0 answers
51 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 ...
user avatar
  • 109
0 votes
3 answers
1k 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 ...
user avatar
0 votes
0 answers
50 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) ...
user avatar
1 vote
0 answers
201 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 ...
user avatar
  • 506
1 vote
0 answers
73 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 ...
user avatar
0 votes
1 answer
530 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 ...
user avatar
  • 63
2 votes
1 answer
403 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 ...
user avatar
  • 21
1 vote
2 answers
1k 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 ...
user avatar
0 votes
0 answers
42 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 ...
user avatar
0 votes
0 answers
706 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 ...
user avatar
1 vote
1 answer
195 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 ...
user avatar
  • 11
0 votes
1 answer
466 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 ...
user avatar
  • 161
0 votes
1 answer
3k 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 (...
user avatar
0 votes
1 answer
713 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 ...
user avatar
  • 175
1 vote
0 answers
913 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: ...
user avatar
0 votes
0 answers
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 ...
user avatar
1 vote
1 answer
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+="/...
user avatar
  • 832
1 vote
0 answers
482 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 ...
user avatar
  • 211
0 votes
1 answer
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 ...
user avatar
1 vote
1 answer
515 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': ...
user avatar
  • 739
2 votes
2 answers
3k 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: ...
user avatar
0 votes
1 answer
156 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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 867
1 vote
1 answer
727 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. ...
user avatar
  • 68
1 vote
1 answer
503 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 ...
user avatar
  • 121
1 vote
1 answer
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:...
user avatar
1 vote
1 answer
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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
53 votes
6 answers
175k 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-...
user avatar
  • 687
0 votes
1 answer
1k 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-...
user avatar
  • 103
3 votes
1 answer
14k 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 ...
user avatar
0 votes
1 answer
993 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-...
user avatar
  • 145
1 vote
1 answer
1k 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 ...
user avatar
1 vote
1 answer
144 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 ...
user avatar
  • 173
0 votes
1 answer
280 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 ...
user avatar
  • 203
8 votes
2 answers
21k 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)...
user avatar
1 vote
0 answers
304 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" ...
user avatar
  • 11
2 votes
1 answer
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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
  • 177
3 votes
1 answer
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 ...
user avatar
  • 143
1 vote
3 answers
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 ...
user avatar
  • 208