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

learn more… | top users | synonyms

1
vote
1answer
126 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
33 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
22 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
14 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
28 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
35 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. ...
7
votes
1answer
3k 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
87 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 ...
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 ...
0
votes
0answers
19 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
1answer
1k 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 ...
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 ...
3
votes
2answers
14k 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
41 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
39 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
31 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 ...
10
votes
1answer
892 views

Why does hdparm see two different values for the size of a drive?

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
2answers
29 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
31 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
7 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
22 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 ...
2
votes
1answer
800 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 ...
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
17 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
52 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
37 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 ...
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 ...
7
votes
3answers
450 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
27 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
41 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
30 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
23 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 ...
1
vote
2answers
43 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% ...
0
votes
2answers
54 views

command to list logical volume I/O statistics on AIX

I am looking for a command which displays the I/O statistics of logical volumes (like reads/sec , writes/sec, io utilization %, read kb per second, written kb per second) . I tried iostat, but its ...
0
votes
1answer
53 views

How to create a volume group that is larger than 2 TB on a non-GPT system?

I've recently setup a CentOS 6 x64 server with 4x 3TB drives, running on top of a RAID-10 array. Current partition schema is as below; /boot 500M (Standard ext4) vg_root 10G (LVM) swap 12G ...
1
vote
1answer
181 views

LVM drives have same pvid

I am trying to remove a corrupt drive from a LVM volume group but when I try to pvmove data I get # pvmove -v /dev/sda1 Cluster mirror log daemon not included in build. Found same device ...
1
vote
0answers
14 views

Boot Entry for Loading Encrypted LVM

So, I recently installed Arch Linux (EFI) with the root folder in an encrypted LVM. I am loading the correct modules and hooks on startup, but it's telling me it can not load the encrypted space after ...
1
vote
1answer
80 views

md raid not mounted by dracut

Background I'm running Centos 7. Originally, it was running on a single disk that looked something like this: 1 200M EFI System (/boot/efi) 2 500M Microsoft basic (/boot) 3 465.1G ...
0
votes
1answer
79 views

Can't initialize physical volume of volume group without -ff

Can't initialize physical volume "/dev/sda3" of volume group "stark" without -ff I created physical volume with pvcreate followed by vgcreate and lvcreate successfully. Later on, I deleted in ...
1
vote
0answers
350 views

Backup partition in LVM using Clonezilla

I installed a Debian Jessie machine on a 1.4TB disk (technically a hardware RAID but this shouldn't matter). At installation, I created an unencrypted LVM with 3 volumes, including a 30 GB volume I ...
0
votes
0answers
36 views

LVM and specify the disk for mirrorlog

When converting a LVM from linear to mirror lvconvert --mirrorlog disk vgdata1/data1 -m1 /dev/vd[de] we want to specify that the mirrorlog should be on a separate disk, such as /dev/vdf Is it ...
0
votes
0answers
11 views

Can I reinstall Linux and keep LVM data on another drive? [duplicate]

I have an SSD with CentOS installed I also have 2 HDD's with several LVM partitions configured for data. Can I completely reinstall Linux and mount the HDDs without losing data? I wasn't sure where ...
-1
votes
1answer
34 views

After running “mkinitcpio -p linux” i got “Hook 'lvm' cannot be found”

Trying to install Arch with LVM basing on this guide: http://sharpeend.impcode.com/2014/04/installing-arch-linux-with-lvm.html Partitions: sda -system-boot -systrm-root -system-home
20
votes
2answers
12k views

RAIDing with LVM vs MDRAID - pros and cons?

In his answer to the question "mixed raid types", HBruijn suggests using LVM to implement RAID vs the more standard MDRAID. After a little investigation, it seems LVM also supports RAID ...