Questions tagged [lvm]

Logical Volume Management provides storage abstraction, a generalization of disk partitioning.

0
votes
1answer
277 views

lvextend to extend root in RHEL 6

I have a server that processes data and it started giving me this error: write error: no space left on device cannot create temp file for here-document: no space left on device Though I use ubuntu ...
5
votes
1answer
2k views

Can I change an existing partition from MBR to GPT?

I needed to add extra 2.5TB to the existing 400GB disk (sda) on my system. I added new virtual disks with 2.5TB (sdb), proceeded to create the partition table with fdisk. Used pvcreate /dev/sdb1, to ...
0
votes
1answer
385 views

How to create a default lvm pool on lxd v3

The expected lxc storage create default lvm lvm.thinpool_name=lvdata lvm.vg_name=vghdd lvm.use_thinpool=true fails with the Error: LXD already uses volume group "vghdd" for pool "default" while ...
1
vote
1answer
4k views

LVM error Device not found (or ignored by filtering) but no partitions exist on device

I've deleted all partitions on 2 local disks and am setting up LVM across these two disks. I have successfully created a physical volume on /dev/sda, but doing so on /dev/sdb fails as described below. ...
1
vote
1answer
261 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 ...
0
votes
1answer
259 views

LVM on LUKS with multiple drives

Is it possible to setup a LVM on LUKS system using multiple hard drives and not enter a passphrase for each drive? In the past, I've done LUKS on LVM and had the key-files for other volumes on the ...
-1
votes
1answer
45 views

How to create a Partition on basis of Extents

I have one question bugging me can't get rid of it. Let's assume we have to create LVM the VG will have physical extent size of 16M and LV within it will have 80 Extents. How much space would i ...
2
votes
3answers
2k views

Understanding LVM2 behavior in case of disk failure?

I have a LVM2 group using the following command for a 5x4TB set up: pvcreate /dev/sd{b,c,d,e,f} vgcreate vg0 /dev/sd{b,c,d,e,f} lvcreate -l 100%FREE -n lvol1 vg0 Now that I created this monster, I ...
0
votes
2answers
709 views

Can I delete a Logical Volume from a Volume group with out affecting data on an other logical volume in the same volume group

I have 2 logical volumes lv1 and lv2 which are part of the same volume group vg0. I have to remove 2 physical disks that are associated to the vg0. Can I do a lvremove, vgreduce and pvremove on lv1 ...
1
vote
1answer
177 views

Removing LV cache after lvreduce fails

Seeing some odd behavior with lvms. If I resize a cached logical volume and then attempt to remove the cache I get a failure with exit code 5. Does anyone know why this would happen? Recreate steps: ...
1
vote
1answer
32 views

How to increase the size of a partition that sits before an encrypted one?

I have the following (lsblk output): And I want to increase the size of the boot partition (sdb2) but I'm not able to put unallocated space before the LVM partition (sb3), is there a way to do this? ...
0
votes
1answer
115 views

Recovering lost information

I installed a LVM storage on my computer and I had very important information inside /HFT. Here is the way I installed that LVM storage: sudo pvcreate /dev/sdb1 /dev/sdc1 sudo vgcreate VG /dev/sdb1 ...
1
vote
0answers
143 views

Multiple Logical volumes on Volume group

I am trying to create multiple logical volumes (more than 2000) on volume group. In this process, I have seen that "lvcreate" command will fail to create logical volume with message "metadata too ...
0
votes
0answers
114 views

Can I use one physical disk in two mdadm arrays?

I have three disks that I'd like to use in a RAID setup; 2x4 TB 1x8 TB Can I create two partitions on the 8 TB disk and include in two RAID 1 arrays with the 4 TB disks? RAID 1 array 1: 4 TB ...
1
vote
1answer
710 views

How can I merge two hard drives on an external linux server, without losing data already uploaded to one?

I have a media server running Plex over on Hetzner, but am in no way a server pro. I failed to realise that my two 2.0TB hard drives would be completely separate, so instead of 4.0TB of space in my ...
1
vote
1answer
377 views

How to resize logical volume in Red Hat Linux

Please guide that how to do following tasks with executing command. 1.Create a new physical volume, create a new volume group in the name of dataconresize, vg extent is 16.00MB. 2.Create a new ...
1
vote
1answer
133 views

How to partition a software RAID

I want to create a second partition on a software RAID 5 created on debian stretch. To create it I used mdadm --create /dev/md0 --auto md --level=5 --raid-devices=4 /dev/sda1 /dev/sdc1 /dev/sdd1 /dev/...
0
votes
1answer
66 views

How to increase lvm root parition

I am running a centos vm inside freenas. The vm disc is currently 20G and needs to be increased to 60G. I increased it in freenas (edit zvol in the gui). Then I used gparted from a live cd to extend ...
0
votes
1answer
258 views

How to add a btrfs raid 1 to an encrypted lvm2 volume group under Solus OS (Linux)?

What I have: Solus OS install with an encrypted LVM2 on a 56G SSD w/o swap - works pretty good. I have 32G RAM, so swap isn't an issue right now - it's my future main rig and it is mainly intended to ...
0
votes
1answer
268 views

Stuck trying to extend volume in Linux VM

I have a Debian Linux VM running (headless) on an Ubuntu box. I increased the size of the virtual disk with vboxmanage to 30G from its original 20G. I have tried many things, but I am still stuck ...
0
votes
1answer
204 views

Doesn't the existence of LVM snapshots slows down writing a file system wich doesn't support them natively?

As far as understand snapshots in LVM (please, do correct me if I'm wrong): since they are not persistent and work even with a file system which doesn't itself support snapshots => I suppose it must ...
0
votes
1answer
23 views

Extending lvm with space from another lvm

I have 2 logical volumes. Size Used Avail Use% Mounted on /dev/mapper/vg_name-lv_root 38G 5.3G 24G 19% tmpfs 1.1G 420K 1.1G 1% /...
0
votes
2answers
326 views

Grub2 + Loopback + LVM

I wish to boot my system from a LVM partition hosted by a loopback file, where the boot is on a USB drive. Using a non LVM setup, with an ext4 loopback file, it boot with not problems (the are ...
0
votes
1answer
124 views

Extend logical volume

I have a file server VM with the logical volumes as following, Filesystem Size Used Avail Use% Mounted on /dev/sda3 50G 7.8G 39G 17% / tmpfs 748M 72K ...
2
votes
2answers
2k views

What would cause the system to report the following warning at boot: failed to connect to lvmetad, falling back to scanning?

I have just installed Kali linux, with LVM for volume management. It boots ok, but seems to throw up a warning about not being about to connect to lvmetad. This question isn't just related to Kali ...
0
votes
1answer
2k 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 ...
1
vote
1answer
618 views

Mounting encrypted external device with conflicting LVM names

I got myself a new hard drive and installed the most current version of Linux Mint. Now I wanted to transfer the files from the old disk (I had no recent backup) but there are several issues the LVMs'...
1
vote
0answers
510 views

Mounting a 4tb lvm in Centos 7 keeps saying not enough space on device

I have a Centos 7 vm that won't boot, the journalctl says *failed to mount /sysroot. Dependency failed for Initrd Root File System. Dependency failed for Reload Configuration from the Real Root * ...
3
votes
0answers
614 views

vgrename volume group with root filesystem

I am running Scientific Linux 7.4 I have run vgrename to rename the volume group that contains my root filesystem. I thought this would be easy. $ vgrename old_vg new_vg edit /etc/fstab edit /etc/...
1
vote
0answers
76 views

LUKS cannot be closed on lvm with lvmcache

I have a CENTOS borgbackup server. All transactions are done over SSH, inside a bind-mounted chroot jail. Most of this detail is probably unnecessary, but I thought a little context might help. I ...
3
votes
2answers
3k views

How to Increase swap space in a CentOS VM

While trying to RPM install Oracle XE in a CentOS 7 VM running inside Virtualbox 5.1 I get the following error message: This system does not meet the minimum requirements for swap space. Based on ...
0
votes
0answers
6k views

warning /dev/centos/root swap centos-root does not exist — after configuring DRBD

I configured DRBD on default CentOS 7.3 Installation like following: /dev/centos/home was taking all the space in sda2 so reduced it and created /dev/centos/home (20% space) and /dev/centos/drbd (...
0
votes
1answer
82 views

Merge partitions resize2fs error

I was following this guide How do I combine two logical volumes that reside on a single physical volume in LVM? To merge /data into / So / would have 60G space in addition. Everything was done ...
3
votes
2answers
76 views

after trying to extend logical volume I got two logical volumes

When I added some volume to my current logical volume fedora partition I get this: Is it safe to have two partitions of fedora while I wanted to add the volume to the existing one? I created a ...
1
vote
1answer
637 views

Why should we encrypt the system partition and not only /home? [closed]

I am currently installing a Debian distro on a new desktop computer and I am looking for pros/cons arguments for two ways of making the partition table (in matter of performance and security). My new ...
0
votes
1answer
278 views

Is it safe to run hdparm -y on lvm

I've got a lvm volume, which is composed of two hard drives enclosed in external enclosure connected through usb. As it's external and not used too much, I like to spin it down if it is not used. I'...
2
votes
0answers
172 views

LVM boot activation sequence

I should write a SystemD service to execute a fsck on some LVM volumes. In order to set the right dependencies I have analyzed the boot sequence by the command systemd-analyze plot. Unfortunately my ...
2
votes
1answer
2k views

How do I recover a lost LVM volume group, not found by vgscan and lvmdiskscan

I have a post: How to copy the old disk data ? The answer is good, but did not help me. The answer user suggest me to open a new post there, because this is some difference. I tried to scan the ...
0
votes
1answer
17 views

custom partitioning failed for a centosVM

So I do have disk space for the vm available 40G. and I want to custom the partitioning in the following way: using LVM with a vol group = vg_root / -2GB /usr - 5GB /var -2GB /tmp- 1GB /opt - 1GB /...
0
votes
2answers
2k views

Configure separated GRUB to run Linux from LVM ddrescued device

I got new 120GB SSD and I want to restore my Linux Mint from my ddrescued /dev/mapper/mint--vg-root I splited SSD to 500MB sdb1 Ext4 and 119GB sdb2 LVM as it was before crash. Then I created mint-vg ...
-1
votes
1answer
156 views

extending a 40TB xfs formated FS over LVM

I need to increase space on my data volgroup in a VM. The VM is running CentOS 6.6, and it is not the root partition. Two physical raw disks are currently two physical volumes, that are part of ...
1
vote
1answer
3k views

Centos 7 - migrate standard root partition to LVM

I would like to migrate standard root partitions (Centos 7 with xfs filesystem) to the LVM partition, unfortunately every attempt fails and after reboot the system won't start (I suspect problem with ...
-1
votes
1answer
2k views

File system check of the root filesystem failed, manual fsck can not fix [closed]

Linux Mint 18 on SDD with LVM ext4 Booting in recovery mode shows: ata3.00: status: { DRDY DF ERR } ata3.00: error: { ABRT } ata3.00: configured for UDMA/100 sd 2:0:0:0: [sdb] tag#0 FAILED Result: ...
4
votes
1answer
1k views

Persistent LVM device with loopback devices by fstab

I like to create a LVM device where physical volumes are loopback devices. I have read lot of documents and tutorials, like this. Unfortunately all of them are based on the losetup command, which ...
1
vote
0answers
92 views

Mysterious problem: Deleting massive amount of files doesn't free up disk space [duplicate]

I have a disk that is 100% used, 400 GB of 400 GB, however I have moved more than 44 GB of files from it, but no extra space got available, the usage is still 400GB of 400GB. Filesystem ...
0
votes
2answers
279 views

How to recover/copy data off disks that were once part of a RAID1 (LVM on MD) in a 2-disk NAS?

I have got a 2-disk NAS configured by the builtin software to be a RAID1 array. On this were two volumes (LVM on MD) with data. Now I replaced the two disks and wish to copy over the old data. I have ...
0
votes
1answer
39 views

What are the components of ovirt api for creating the VM

I am using the oVirt API, I am checking into the ovirt documentation, It has the following as payload, <vm> <name>myvm</name> <template> <name>Blank</name>...
2
votes
1answer
285 views

Linux - Increase volume of drive [duplicate]

Running df -h gives me the following: Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 49G 1.3G 98% / devtmpfs 7.8G ...
1
vote
1answer
474 views

LVM why are new Logical Volumes inactive on boot?

I have two separate drives. one is for booting and one is for storage. I created a new logical volume called "lv_storage" in the volume group "ultrabay". However, when I boot /dev/ultrabay/lv_storage ...
1
vote
1answer
48 views

linux + LVM + extent small disk by add another disk

we have Linux machine redhat 7.2 LVM disk disk -sdd with only 2G we want to extend the size of /data to 20G by adding another disk - sde /dev/sdd 2.0G 9.2M 1.9G 1% /data expected ...