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

learn more… | top users | synonyms

10
votes
1answer
941 views

Why are there two different values for the size of a drive and how to reconcile them with device-mapper and LVM?

I have a 1 TB drive attached via USB. It contains an LVM physical volume filling the entire device (without any partition table). When I tried to extend a logical volume by using the entire PV, the ...
0
votes
1answer
23 views

Create a new volume on free diskspace from inside Dom0

I have a server with two HDDs (/dev/sda and sdb) with 1.8TB each. On both disks, there is a 500MB Swap and an 800GB partition, that are in a raid md0 and md1: pvs PV VG Fmt Attr PSize ...
1
vote
1answer
1k views

how to make LVMs at available boot? kernel panic - dracut cannot find logical volumes after kernel upgrade in CentOS 6.6

I have a centoOS 6.6 vmware vm that I ran yum update on which upgraded the kernel after reboot, I started getting this: dracut Warning: No root device "block:/dev/vg_myhost/lv_root" found dracut ...
0
votes
0answers
17 views

How to restore lvm partition without config file?

Today I did update my ubuntu server. The device structure is looks like to below 1) sda1 # new os 2) sdb1 # origin /boot partition 3) sdb2 # origin swap partition 4) sdb3 # origin ...
1
vote
1answer
1k views

LVM volume is inactive after reboot of CentOS

It seems there are many people with similar problems, yet I've found nothing that could help me. I ask here in hopes that someone might have a good idea. I've reinstalled a Linux server from CentOS 6 ...
11
votes
3answers
29k views

How do i extend a partition with a LVM and the contained physical volume and logical volume?

On my 240 GB SSD i had at first two partitions, one containing the Logical Volume with Linux Mint and the other had contained a NTFS partition to share with Windows. Now i removed the NTFS partition ...
3
votes
1answer
2k views

How do I resolve an error when booting, “Couldn't find device with UUID…”

I have a RHEL 6 system, running on a VMWare machine. The admin of the VM server added a second RAID volume to the server, which my RHEL system does not use. Now, when I boot the RHEL system, I get a ...
1
vote
1answer
19 views

mkswap complains that partition is misalilgned (LVM on RAID-0)

I have a RAID-0 setup on two identical hard disks (same brand and model). The partition table is identical on both (I have cloned it). However, /dev/md0 occupies only part of the disks, because I had ...
0
votes
2answers
2k views

vgdisplay shows 0 free PE/size

I'm trying to configure a CentOS HA system with 2 nodes, with DRBD for replicated storage. I'm following the "Clusters from Scratch" guide, and at the DRBD portion, I need to create a partition for ...
2
votes
1answer
64 views

NixOS installation on multi-boot system with GRUB (from Arch installation)

I have one physical disk (/dev/sda) which is divided in /dev/sda1 (which is /boot bootable GRUB2 partition used and setup with Arch) and /dev/sda2 which is my cryptroot that, when unlocked, is a ...
1
vote
1answer
35 views

extend an LVM mirror with an extra non-mirrored disk

I have an LVM mirror made of 6 disks of 1Tb. I've made a RAID 1 mirror with 3+3 disks. The logical volume and the partition on it have therefore 3Tb of usable space. Running out of disk space, I'm ...
1
vote
1answer
74 views

When using dm-cache, how do you do snapshots on a cached LV?

In dm-cache, how do you do snapshots on a cached LV? I attempted the usual way on a CentOS 6.7 installation and got the following results:- # lvs LV VG Attr LSize Pool ...
-2
votes
1answer
33 views

debian from disk to big disk: what i miss? [closed]

Usually i migrate virtual machine to new bigger disk following this procedure a)Attach new disk b)Mount to mnt c)rsync -avogpP --delete /olddirs /mnt/newdirs except for tmp proc sys dev,i use to ...
2
votes
1answer
815 views

How to reduce LVM size and increase one existing partition's size

I want to add 7 GB space to one of my existing partitions (/dev/xvde1), and reduce an LVM partition by 7 GB (/dev/mapper/vg--home-lv--home). My total disk size is 40 GB. Detail of partitions is as ...
3
votes
1answer
28 views

mount: Unrecognised segment type thin

So my Fedora Linux machine crashed during an update, and now refuses to start properly. I'm using SystemRescueCD to try to recover the contents of the hard drive. Following the steps in this post, I ...
3
votes
1answer
499 views

Corrupt LVM metadata header after kernel update

I'm running Debian Wheezy (Linux wheezy3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux) as an encrypted LVM with hardware raid 1 (Adaptec 6405E) on a supermicro server. I was encounting ...
0
votes
1answer
37 views

Restoring fdisk mistakes: New partitions & table

On a deabian 8.2 system I made a new LVM partition with fdisk and wanted to issue a pvcreate command, but was constantly being called and then made this horrible horrible mistake. Before the call I ...
7
votes
1answer
1k views

Can Grub2 multi-boot LUKS/LVM distros with only one boot partition?

There are many tutorials on the internet for multi-booting unencrypted distros using a single boot partition and chainloading. For example, booting 145 OSes. Likewise, there are tutorials for ...
0
votes
1answer
1k views

Adding a second hard disk CentOS

I'm running CentOS on my VMware server console, and I want to know how to make a second virtual hard disk on which I can expand the size of the primary logical volume AND and a third to hold two ...
2
votes
1answer
176 views

How do I configure grub to boot another linux distribution off an lvm partition?

(I no longer have this setup so I cannot test new answers, sorry. I had to switch computers and am now only using arch; I am leaving the question as it is though since I'd love to know a solution if ...
0
votes
1answer
1k views

Logical Volumes fails to mount with dmsetup and no table present

I am stuck with all the volumes on a volume group unable to mount, after a yum update on a CentOS 5.11. device-mapper upgraded from 1.02.24-1 to 1.02.67-2 The machine boots correctly from ...
1
vote
1answer
24 views

Can I mix SAS and SATA HDDs together using LVM?

I was playing with my server with a 300G SAS HDD. However, recently I am considering making it into a production server which demands elastic storage. So I meet the question that whether it is okay to ...
2
votes
0answers
19 views

How to shrink sda disk with XFS filesystem

We have a RHEL 7 server with 2 disks (sda and sdb). Our /, /var/log and swap are on sda, /var is on sdb. We use LVM and XFS. sda is too big (160 GB) and we would like to shrink it to 40 GB. We can ...
1
vote
3answers
42 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 ...
1
vote
1answer
45 views

Ext4 corrupted and unrecoverable after LVM resizing + power failure

I have a completely standard, single hard drive Fedora 23 desktop. The dual-boot installer set up the Linux partition as LVM, with root, swap and home logical volumes; root and home were both ext4. ...
9
votes
1answer
4k views

How to shrink root filesystem without booting a livecd

I find myself needing to rearrange a system's partitions to move data previously under the root filesystem into dedicated mount points. The volumes are all in LVM, so this is relatively easy: create ...
3
votes
1answer
91 views

Filesystem still showing the old value after reduction in linux, however showing the correct value in LVM

We have a task to resize the filesystem from 8T to 7T which is in LVM. We have given resize2fs command, while the command is still being run we have got the error "Write failed: Connection reset by ...
3
votes
3answers
2k views

Copying an HDD to a larger one by dd

I'm trying to copy an entire HDD which has IBM PC-style partition table to a larger one by dd on GNU/Linux. The questions are: Can I use the additional space on the larger disk by changing the ...
0
votes
0answers
24 views

Centos 7.2 Convert single LVM to RAID Mirror Reinstall BootLoader

I am trying to convert a single-drive Centos 7.2 installation with LVM into a two-disk mdadm mirror with mrrored LVM. I was able to follow the excellent instructions at: ...
3
votes
2answers
15k views

Error “/run/lvm/lvmetad.socket: connect failed: No such file or directory” - but not Grub related

All LVM commands give me the error /run/lvm/lvmetad.socket: connect failed: No such file or directory. I Googled this error and found only postings related to Grub and Grub-install. wish to get rid ...
3
votes
1answer
43 views

Making a swap partition using lvm

When we make a swap using a regular physical drive, we just use fdisk and make a partition with type swap, using the swap code for that partition, followed by mkswap and swapon commands. But what ...
0
votes
1answer
44 views

lvreduce : “No directory, logging in with HOME=/”

I wanted to reduce my home LVM size so I executed the following commands : sudo umount -fl /dev/ubuntu-vg/home lvreduce --size -4G /dev/ubuntu-vg/home As the last command didn't work (apparently ...
0
votes
1answer
36 views

how to fetch lvm mount point (generic)

I need to write a script that will check whether an LVM exists on the system or not. If an LVM exists, then it will perform certain steps else it will do other steps. My issue here is how to find a ...
0
votes
2answers
50 views

gparted (live usb) says my partition is mounted, but where?

I'm attempting to grow /dev/sda5, which is an 'lvm2 pv' partition, but it's contained in /dev/sda2, which is an extended partition. There is plenty of "unallocated" space immediately after /dev/sda2, ...
0
votes
0answers
43 views

how to Increase VM disk without reboot on Linux redhat 6.x + LVM

I increased the second disk in VM machine from the VSphere client GUI as the following: By right click on the machine --> edit settings --> hard disk2 --> increase the disk from 1G to 2G Then I ...
0
votes
1answer
6 views

How to replace a disk which contains the CentOS6

I have a machine that contains a disk which one has CentOS 6 Installed. In that disk, There are two partitions. One of them if mounted on /boot, and the second one is a PV for the rootvg. I need to ...
0
votes
0answers
8 views

Why is EXT4 on LUKS on MD-RAID6 not detected by openSUSE's YaST

For maximum control over the storage configuration I've got two MD-RAID6 devices pre-configured as follows from openSUSE's Rescue system before rebooting the computer into openSUSE's installation ...
0
votes
1answer
27 views

Cannot mount newly created Logical Volume

I try to create a Logical Volume under an existing Volume Group but I cannot mount the new LV due to error: "Bad magic number in super-block while trying to open": [root@host-xxxx ~]# df -h ...
1
vote
1answer
3k views

LVM unknown device: how to recover?

I have a server with two hard drives that I thought I had correctly installed with LVM, until I discovered that the second hard-drive did not actually seem to be used. I investigated the problem and ...
0
votes
1answer
18 views

Extended logical volume in LVM still shows old size

I have setup a server with LVM, and at first I juset created a small logical volume named 'root' of about 10GB, but later changed my mind. I extended it to 1TiB, but my server still is in two minds of ...
0
votes
1answer
57 views

How to allocate available HDD from /home to /root [duplicate]

I have a 500GB HDD for CentOS 6.7 . But when I created a partition, I just have created a small storage size for root, but /home folder had lots of capacity. Could I move available capacity from /home ...
1
vote
1answer
44 views

How to reduce root Volume Group size in LVM?

I found a similar question here, but there's one different point on my server: --- Volume group --- VG Name vg System ID Format lvm2 Metadata Areas 1 ...
7
votes
2answers
7k views

/dev/md127 refuses to stop. No open files

So I'm trying to stop /dev/md127 on my Ubuntu 12.10 box. It was set up as RAID1, but I'm trying to move everything (well, rename) to md0. I read that renaming isn't possible, so I'm trying to remove ...
7
votes
3answers
465 views

Shrinking LVM physical volume on top of mdadm degraded RAID array, adding a spare and rebuilding it

I have a Debian Wheezy system with a couple of 500 GB HDDs in RAID-1 (mdadm mirror), on top of which sits LVM logical volumes with 5 partitions (boot, root, usr, var and tmp), total size of 47.15 GiB. ...
1
vote
1answer
15 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 ...
0
votes
1answer
16 views

LVM Snapshot - Copy on write - does it apply to new data?

I have been reading about LVM Snapshots, and I have a general understanding of how it works. If a snapshot is made of source data, I understand that the copy-on-write (COW) means that if a ...
1
vote
1answer
32 views

Split home partition into 2 (xfs on LVM)

I am using centos 7 and I have a /home mounted on an xfs filesystem on a dedicated LVM partition. /dev/mapper/centos-home 782G 34M 782G 1% /home I want to split this partition to 2 ...
0
votes
0answers
47 views

linux + resize2fs with Operation not permitted error

I am trying to increase the /opt to 65g but I get the following message Operation not permitted While trying to add group #8256 what is the resolution for that? root@linux:/opt # lvresize -L 65g ...
1
vote
1answer
33 views

Swap /dev/mapper/* devices

I have been given a box that has /dev/mapper/root mounted as / and mapped to /dev/dm-0. It has /dev/mapper/home mounted as /home and mapped to /dev/dm-2. The dm-0 device is 5G and the dm-2 device is ...
1
vote
0answers
30 views

How to wait for detected LVM volumes?

I have the following problem: I have a machine running arch and which contains a encrypted LV in a LVM. Inside the (encrypted) LV is another PV located. So I have in fact two VGs: One which contains ...