Skip to main content

Questions tagged [lvm2]

The tag has no usage guidance.

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

Is LVM broken or xfs filesystem dead?

As we say all too often, never prod on a Friday ... But an admin on my team wanted to expand a lv, so he broke the whole system. I've managed to remount the disk and the group volume, and now I'm ...
Franck Huet's user avatar
0 votes
0 answers
374 views

Rebuilding grub with LVM2 and UEFI

Trying to restore my grub boot loader for Ubuntu 22.04, but a weird anomaly during the rebuild process changes the boot menu to CentOS. I have tried several rebuild attempts from many different ...
Bob_Dean's user avatar
1 vote
1 answer
857 views

How to mount hard drive (physical disk) which is a part of LVM in Ubuntu Server 22.04?

Newly installed Ubuntu 22.04 to a server. The logical volume is already mounted (by default) to / during installation of 22.04 to a Dell server. When I try to mount the "mapper" (to anywhere ...
b_a_k's user avatar
  • 11
0 votes
0 answers
377 views

Cannot stop md raid6 array

I setup a raid6 array on top of iscsi and lvm shared logical volumes that I use to make sure only one node part of iscsi network can use the raid volume at a time. Today I fail to stop the volume. ...
Nykau's user avatar
  • 63
0 votes
0 answers
127 views

LVM, EXT4, mount points etc. I'm not even sure how to determine what the issue might be

I have a media server that used to work: 4 disks, EXT4, as a single LVM with 5 shares. Working through other tutorials, when I execute the "lsblk" command this is what I see: NAME ...
lorax1284's user avatar
0 votes
0 answers
1k views

How to merge Linux LVM physical volumes on the same disk?

I have a funny situation (Proxmox, but that's immaterial) where I ended up with LVM, a single volume group on top of two partitions (PVs) that are contiguous with one another on the disk. The PVs (and ...
Paul Stelian's user avatar
1 vote
1 answer
717 views

Does multiple snapshots influence the performance?

My desktop system(Kubuntu-20.04.4, with LVM2 root-fs) need to be frequently adjusted the configurations, but some configuration would be fault. I take a new LVM2 snapshot of root fs, before every time ...
Leon's user avatar
  • 239
0 votes
1 answer
604 views

In a new rocky9 vm, LVM2 does NOT see the newly attached PVs under LUKS

In a new rocky9 vm, LVM2 does NOT see the newly attached PVs under LUKS. === The end goal is to migrate a simple "repo" server (that holds iso files) from centos8 to rocky9. I have a freshly ...
mr22st821's user avatar
1 vote
2 answers
562 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 ...
Sridhar Sarnobat's user avatar
1 vote
1 answer
2k 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 ...
Muhammad Tauseef's user avatar
1 vote
1 answer
935 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 ...
gusfoo's user avatar
  • 31
2 votes
0 answers
409 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. ...
Leon's user avatar
  • 239
1 vote
0 answers
3k 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 ...
storestyggeulv's user avatar
0 votes
0 answers
737 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
116 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 ...
MichaelK's user avatar
  • 149
0 votes
3 answers
5k 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 ...
tukusejssirs's user avatar
0 votes
0 answers
153 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) ...
Brydon Gibson's user avatar
2 votes
0 answers
318 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 ...
r2evans's user avatar
  • 550
1 vote
0 answers
101 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 ...
Arjuna_Meridian's user avatar
0 votes
1 answer
1k 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 ...
Mario's user avatar
  • 63
2 votes
1 answer
518 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 ...
Zelec's user avatar
  • 21
1 vote
2 answers
2k 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 ...
Max Ehrlich's user avatar
0 votes
0 answers
51 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 ...
Jinto Antony's user avatar
0 votes
0 answers
970 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 ...
Jinto Antony's user avatar
1 vote
1 answer
656 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 ...
Dennis's user avatar
  • 11
0 votes
1 answer
1k 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 ...
skyking's user avatar
  • 160
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 (...
Powerriegel's user avatar
0 votes
1 answer
878 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 ...
Vipin's user avatar
  • 217
2 votes
0 answers
1k 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: ...
Lukas Barth's user avatar
1 vote
0 answers
4k 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 ...
Maryo David's 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+="/...
nwaltham's user avatar
  • 882
1 vote
0 answers
500 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 ...
naomi's user avatar
  • 233
0 votes
1 answer
6k 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 ...
Mark Vaughn's user avatar
1 vote
1 answer
622 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': ...
Harry's user avatar
  • 851
3 votes
2 answers
5k 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: ...
Farooq Hussain's user avatar
0 votes
1 answer
182 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 ...
user189860's 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 ...
Kalle Richter's user avatar
0 votes
1 answer
2k 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 ...
Melab's user avatar
  • 1,131
1 vote
1 answer
854 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. ...
174140's user avatar
  • 104
1 vote
1 answer
657 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 ...
volvox's 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:...
codeScriber's 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 ...
sherpaurgen's 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 ...
Rui Baeta's user avatar
68 votes
7 answers
213k 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-...
Robert S's user avatar
  • 847
0 votes
1 answer
2k 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-...
crsuarezf's user avatar
  • 103
3 votes
1 answer
16k 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
2 answers
1k 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-...
greg's user avatar
  • 155
2 votes
1 answer
2k 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 ...
Supernormal's user avatar
1 vote
1 answer
229 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 ...
masber's user avatar
  • 173
0 votes
1 answer
1k 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 ...
piotrek's user avatar
  • 203