Questions tagged [lvm2]
The lvm2 tag has no usage guidance.
61
questions
0
votes
0
answers
104
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. ...
0
votes
0
answers
83
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 ...
0
votes
0
answers
593
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 ...
0
votes
1
answer
310
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 ...
0
votes
1
answer
246
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 ...
1
vote
2
answers
365
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
607
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 ...
2
votes
0
answers
306
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
0
answers
2k
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
0
answers
484
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
0
answers
93
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
3
answers
3k
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
0
answers
88
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)
...
1
vote
0
answers
272
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
0
answers
88
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
1
answer
816
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 ...
2
votes
1
answer
476
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
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 ...
0
votes
0
answers
48
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
0
answers
853
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
1
answer
375
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
1
answer
779
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
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 (...
0
votes
1
answer
838
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 ...
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: ...
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 ...
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+="/...
1
vote
0
answers
491
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
1
answer
4k
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
1
answer
575
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': ...
2
votes
2
answers
4k
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
1
answer
174
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
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 ...
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 ...
1
vote
1
answer
798
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
1
answer
596
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
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:...
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 ...
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 ...
66
votes
7
answers
197k
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
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-...
3
votes
1
answer
15k
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
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-...
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 ...
1
vote
1
answer
158
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
1
answer
689
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 ...
8
votes
2
answers
22k
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
0
answers
341
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
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 ...