Questions tagged [lvm]
Logical Volume Management provides storage abstraction, a generalization of disk partitioning.
1,573
questions
3
votes
1
answer
3k
views
Decrypt second encrypted LVM during headless server boot?
I've followed this question https://unix.stackexchange.com/questions/5017/ssh-to-decrypt-encrypted-lvm-during-headless-server-boot and successfully remotely decrypted my root drive. However, I have a ...
3
votes
1
answer
5k
views
mdadm raid0 with disks of different size?
Currently I'm using LVM just to merge a few disks of different size. I want to know if it is possible to use mdadm with stripes instead of LVM?
Will it give me additional performance? Will it use ...
3
votes
2
answers
370
views
Can lvm2 volumes based on device names like sda, sdb etc be mounted if their names change?
Lets say I would like to make a large volume from external usb drives. I create the lvm volume on drives that have been given certain device names sdf sdg or whatever and at some point they are ...
3
votes
1
answer
753
views
how to snapshot thin provisioned lvm
I'm trying to create an snapshot from a thin provisioned lvm
using the below command, but i get errors, is there anyone that can help me?
root@ghv214:/dev/ghv214-vg# lvs
LV VG Attr ...
3
votes
1
answer
2k
views
LVM2 : How to list physical partition identifiers with the UUID of the VG they are assigned to -- or trace one to the other
(Rocky Linux 4.18.0-305.25.1.el8_4.x86_64 )
I have 2 Volume Groups.
Both VGs are named "rl", so I need to rename one of them and must use the correct VG UUID to do this.
I cannot find a way ...
3
votes
1
answer
2k
views
linux "mdadm --write-journal" and lvmcache - how do they relate?
In linux mdadm man page I saw the option "--write-journal".
How does this relate to lvmcache as lvmcache is built on top of dm-cache? Are they different things or does lvmcache do something like "--...
3
votes
1
answer
3k
views
Is it OK to use Btrfs for a logical volume under encryption?
I want to use the Btrfs partition type for my main ("/") logical volume which is under encryption. The encrypted LVM will occupy my entire device aside from the two small "EFI-system" and "Boot" ...
3
votes
1
answer
3k
views
Move all data in LV to first PV, remove others
I have a logical volume, /dev/echohome/home01
It has three physical volumes: /dev/sda1, /dev/sdb1, /dev/sdc1
sda1 is 4TB w/ 0 extents available, sdb1 is 4TB w/ 476930 extents available, sdc1 is 1TB ...
3
votes
2
answers
16k
views
Does LVM eats my disk space or does df lie?
Please look at the output below:
bob ~ # df -h
Filesystem Size Used Avail Use% Mounted on
udev 5,7G 4,0K 5,7G 1% /dev
tmpfs 1,2G 1,5M ...
3
votes
1
answer
4k
views
Why the ext4 filesystem can be shrunk only when not mounted?
I'm playing a little bit with LVM. I've noticed that I can add a new HDD, include it in the volume group, and add some space to all of the existing volumes without unmounting theirs filesystem or ...
3
votes
2
answers
1k
views
LVM Snapshot without copy-on-write
I've been experimenting with LVM and how I can use it for managing data on my NFS server. With everything that I've read about snapshots, I am still unsure about how they perform in real life. Why ...
3
votes
3
answers
3k
views
Transferring whole Linux system to a new disk
Few weeks back I installed Linux as a virtual machine on my Windows 7 system, but I didn't give much thought to (or miscalculated) the size of various partitions and even worse I'm not using lvm. ...
3
votes
1
answer
2k
views
Deleting Old LVMS
I'm using RHEL9 on VMWare and I was following a RHEL course and creating LVM's and extending them in my VMWare. I removed the extra disks in VMWare, confirmed that they were gone via lsblk, added new ...
3
votes
1
answer
1k
views
Configure LVM physical volumes atop entire disk (not partition) with Debian installer
I would like to install Debian 9.8 (i.e. an older version) on a VM with two disks. The first disk /dev/sda is for the boot partition, the second disk /dev/sdb should contain an LVM physical volume (PV;...
3
votes
1
answer
3k
views
Is there a maximum limitation on the number of physical volumes allowed in a volume group?
Someone in my organisation has picked up support for a system previously looked after by the now-defunct vendor. Their support department insisted there is a limit of 16 physical volumes on their ...
3
votes
1
answer
3k
views
Mounting a docker external volume directory as a host (lvm) partition, will this work?
I have a lot of containers that grow uncomfortably quickly; for instance, databases.
When you create an external docker volume (docker volume create {volume_name}), I see it listed in the docker ...
3
votes
1
answer
9k
views
How to increase size of filesystem to match partition
Apologies for this question but I am very new to Linux.
When I installed my Fedora distribution I only allocated 20GB of my hard drive space for its partition. I recently used GParted and tried to ...
3
votes
1
answer
3k
views
LVM snapshot - performance for write-only data
I have a client that is archiving write-only , time-series data in a database (ie. data is rarely modified after it is written, and it is rarely read as it is on a secondary/backup/failover node). I ...
3
votes
2
answers
1k
views
RHEL: FDE w/o password - boot from key on partition
I'm trying to accomplish encrypting my OS w/ LVM on RHEL 7.2 and have it boot without entering a password by using a key on an unencrypted partition.
LV VG Attr LSize Pool Origin Data% ...
3
votes
2
answers
10k
views
How to mount a logical volume?
I would like to mount /dev/sda2. How am I supposed to do that?
I have tried this, I'm not sure about the result, df still does not show the free space.
mount -v -o ro /dev/sda2 /data
mount: unknown ...
3
votes
1
answer
12k
views
Creating separate volume for /var/log/ and /var/log/audit/
I need to migrate /var/log/ and /var/log/audit to separate volumes. Currently the entire /var/ directory is on a logical volume with ample space (45G). I understand how to shrink and create new ...
3
votes
2
answers
3k
views
How to add a dm-cache to an already existing luks setup?
I've got two physical devices, a fast SSD and a large HDD. The SSD is in VG ssd and ends up serving as mountpoint /, the HDD is in VG dump and serves as mountpoint /home. Both go through LUKS for ...
3
votes
1
answer
3k
views
bootloader configuration with GPT, RAID1, and LVM
Using the GUID Partition Table and RAID 1, the bootloader (syslinux or GRUB) is not able to boot into the machine, which was installed with Arch Linux.
First off, there are two drives identical ...
3
votes
2
answers
1k
views
Extend my LVM After Upgrading SSD
So, I have a 120 GB SSD (/dev/sdb) that I have a dual boot of Windows 7 and Fedora 17. When I first started I only have a 60 GB SSD so my space was very limited. I have a partition on my SSD (dev/...
3
votes
1
answer
936
views
When should I create a new volume group instead of a new logical volume?
I currently have 3x1TB physical volumes in a VG and a LV that spans the entire capacity of the VG. This LV is meant to store specific files.
Now I have another 2TB drive that I want to use LVM with. ...
3
votes
1
answer
1k
views
Equivalent to "copies=2" feature of ZFS in Linux with LVM
I have a laptop with only one HDD and is impossible add other HDD. The feature "copies=2" of ZFS is the perfect solution for to add redundancy to my /home in the laptop.
I would like emulate the ...
3
votes
1
answer
5k
views
LVM entry for logical volume in /etc/fstab - /dev/mapper/group-volume or /dev/group/volume?
I created a logical volume like the following.
lvcreate -L 300G MyVolGroup -n homevol
As for mounting this volume after initializing a filesystem on it, a few guides I read used /dev/MyVolGroup/...
3
votes
1
answer
1k
views
reduce lvm space and create new partition
My objective is to free some space from the lvm and create new partition.
Below is the devices and lvm ontop of it.
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 252:0 ...
3
votes
1
answer
2k
views
Debian - Volume group "debian-vg" not found on every boot
On every boot of my debian system, the following warnings appear:
Volume group "debian-vg" not found.
Skipping volume group "debian-vg"
Volume group "debian-vg" not found....
3
votes
1
answer
905
views
Is it even possible to correct my LVM mistakes?
I have this Proxmox (PVE) installation on an old server and I wanted to swap the old drives in order to get more space. But first I wanted to move the PVE installation to an SSD. Simple enough.
...
3
votes
1
answer
2k
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
...
3
votes
1
answer
3k
views
how to resize / lvm partition
I have a debian linux with this output of df command:
root@debian:~# df -Th
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 973M 0 ...
3
votes
1
answer
1k
views
Can I enable barriers for ext4 under LVM?
I'm on Ubuntu 18.04 and if I issue:
$ cat /proc/mounts
I don't see barrier=1 next to my main filesystem (under LVM). Does this mean barriers are not enabled? I read that while there were issues with ...
3
votes
1
answer
13k
views
Is it possible to reload lvm.conf without reboot?
I enabled issue_discards in lvm.conf file on machine with ssd and I'd like to perform blkdiscard on one of logical volumes. Can i do that without rebooting machine? I'm able to unmount physical volume ...
3
votes
1
answer
376
views
How to split a crypt_LUKS partition in half with LVM?
I currently have this structure:
NAME FSTYPE
sdb iso9660
└─sdb1 crypto_LUKS
└─sdb1-map ext4
And want to get
# lsblk -o ...
3
votes
1
answer
337
views
What is the proper path to expand /root LVM
I have recently added a 562 GB to a virtual machine in Vsphere. I expanded the /dev/sda2. I performed the 8e LVM... and now executed pvresize /dev/sda2
My goal is to expand the LVM for root partition....
3
votes
3
answers
3k
views
Resize LVM at the beginning
I have a LVM primary partition at the end of my disk, Windows is at the beginning, there was an unused partition in between but I need some space for Linux so I removed it.
Now I'm trying to figure ...
3
votes
2
answers
2k
views
LVM Filesystem recovery
I was trying to resize my LUKS crypt following this https://wiki.archlinux.org/index.php/Resizing_LVM-on-LUKS and I got to the partition resize with parted and seriously screwed things up. I typed 870 ...
3
votes
1
answer
1k
views
Can one physical disk provide space for several volume groups?
Can one physical disk provide space for several volume groups?
Or one disk can have only one volume group in the Linux LVM?
Can we use one disk in several VG's?
3
votes
3
answers
14k
views
How to mount sdb directly or using LVM partitions on sda?
I am new to LVM and VM yet,
and I need to be able to access sdb like
/mybackup/
1 - should I have sdb1 created then mount?
2 - should I mount sdb as whole disk without LVM?
3 - create lvm and than ...
3
votes
2
answers
9k
views
'No such file or directory' when I am trying to format Logical Volume
I am trying to create Logical Volume on CentOS 7 on EC2 instance. After attaching the volume I am creating partition using fdisk, then I am starting the Logical Volume creation:
pvcreate /dev/xvda1
...
3
votes
1
answer
4k
views
How to make grub mount encrypted LVM partition
I have such boot sequence: system boots from external disk, right after start it asks about password for LVM encrypted partition (which holds /root and /home), I enter it, the partitions are mounted, ...
3
votes
2
answers
16k
views
resize root volume with lvextend insufficent space error
My root partition is running out of space, so I'm trying to extend/resize it.
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/u64-root 19G 18G 823M 96% /
none ...
3
votes
1
answer
942
views
Luks Partition Mounting After Removing From fstab
I have 3 encrypted partitions, one for /, one for /home, and one for swap.
It seemed silly to me to type in my password 3 times, so I replaced the swap partition with a swap file on the encrypted ...
3
votes
2
answers
5k
views
replace xen kernel with non xen kernel
I have a virtual appliance in Xen format (XVA) that I wish run to on another hypervisor (MS Hyper-V). What have I done so far:
I have converted the XVA to OVF using XenConvert, this resulted in a vhd ...
3
votes
2
answers
22k
views
Change Partition Table with GParted
I have an Ubuntu 12.04 LTS server that has 6x600GB SAS drives in a RAID 5 configuration (Perc 6/i).
The partition scheme looks like this:
Partition File System Mount Point Size
/dev/sda1 ...
3
votes
1
answer
1k
views
dual booting centos5.5 and fedora
I already have CentOS 5.5 on my system whose hard disk is ~500GB. I have tried to dual boot with Fedora 16. while installing fedora 16 I have created a ~250GB and ~4GB partitions for "/" and swap. The ...
3
votes
1
answer
12k
views
gparted live CD can't resize a partition?
I recently ran out of space on a VirtualBox VM (CentOS guest) managed by Vagrant. It was using a .vmdk image, so I couldn't dynamically resize it. Following these instructions, I cloned the old image ...
3
votes
1
answer
2k
views
Can I alter my Fedora LVM LV to install a new distro as a dual-boot?
My question is almost a duplicate of this question, but not quite because that one is about ext3 and I am already using LVM. I have an older HP Pavilion laptop running Fedora 11. I chose Fedora ...
3
votes
2
answers
2k
views
extend logical volume using parted via script
I would to extend my logical volume via script.
Before i had vm with 10 GB hdd, i incerease hdd 5 GB more, then its toatal 15 GB.
What manually i run command to extend hard disk as follows:
sudo ...