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

learn more… | top users | synonyms

1
vote
2answers
25 views

How to reduce LVM for root partition?

I am trying to reduce the space dedicated to root LVM since I don't really need it and I am having a few doubts. Below is the output for lvdisplay: # lvdisplay --- Logical volume --- LV Path ...
1
vote
3answers
35 views

Create Partition (Standard partition vs LVM physical volume) in CentOS installation

All. Forgive me I not familiar with the Linux. I am trying to install CentOS in the VMWare. As I knew, Linux can only create three kinds of partitions. they are primary, extended, and logical, For ...
0
votes
0answers
15 views

How can i make incremental backup?

I have a linux based HOST system with KVM. And a GUEST system using Windows Server 2012R2 on a lvm partition. How i can make an incremental backup of this lvm set? Or better yet, how can I make a ...
4
votes
1answer
435 views

Why does activation of LVM partition with large snapshot take a long time?

After creating a large snapshot (I assume it drifted about 30GB from the original) I noticed that vgchange -ay took noticeable longer (to the point I thought computer hanged). What does the ...
10
votes
1answer
984 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
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 ...
1
vote
1answer
87 views

Automatic unlock LVM partitions with a Key LUKS dm-crypt

I'm trying to make an automatic unlock of other partitions, I have 9 Logical volumes including root, and I know root LVM will unlock manually true password to have a key decrypted. My goal is unlock ...
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 ...
12
votes
1answer
5k 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 ...
0
votes
1answer
52 views

How do I create a dd IMAGE from LVM for recovery purposes [duplicate]

How do I backup a LVM partition to an image for recovery purposes? I am trying to run dd on /dev/sda2, but it crashes after ca 8 hours, at around 380G sudo lvmdiskscan /dev/centos/swap [ 3....
0
votes
1answer
231 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 ...
0
votes
0answers
17 views

lvm data lost risk

Recently I bought server for my files , I have 4x6TB hard drives : root@Debian-85-64bit-minimal ~ # lvmdiskscan -l WARNING: only considering LVM devices /dev/sda2 [ 5.46 TiB] LVM ...
0
votes
0answers
19 views

Edit grub timeout in encrypted lvm setups with /boot partition?

My old setup was LVM with Ubuntu 16.04. Disk had a GPT table with a BIOS-grub and a main partition. I was able to change the grub timeout by editing /etc/default/grub, commenting out the two ...
0
votes
1answer
20 views

Restore unencrypted LVM2 logical volumes to LVM on LUKS setup?

I have an unencrypted Ubuntu 16.04 setup using LVM2. I'd like to 'port' this into an encrypted setup on the same computer and disk, which would save me the hassle of reinstalling all the apps and ...
0
votes
0answers
11 views

Any issues with restoring from a setup with GPT and BIOS-grub partition to one with MBR and /boot partition?

I had a non-nencrypted Ubuntu 16.04 setup using LVM2. I 'ported' this over to a fresh encrypted lvm setup on the same computer and disk, which saved me the hassle of reinstalling all the apps and ...
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 ...
1
vote
1answer
37 views

Purpose of Physical Extents

Today in class we are learning about logical volume management and I'm trying to find out what the actual purpose of physical extents are. I know what they are defined as and I understand how to do ...
0
votes
0answers
18 views

drive geometry error with vfat

I'm curious what this error means: [root@server1 ~]# mkfs -t vfat /dev/example mkfs.fat 3.0.20 (12 Jun 2013) unable to get drive geometry, using default 255/63 I was attempting to make a file ...
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 ...
1
vote
0answers
14 views

Encrypt partition and LV afterwards

What I want to do I am using Kubuntu 14.4 and like to use kvpm for my LVM-needs. I have a partition and a Logical Volume. On both is data. I would like to encrypt each of those. https://wiki....
0
votes
1answer
10 views

General ratio regarding FS <-> LV

Based on New FS size differs from LV size We need a 4 GByte sized FS on top of an LV. OS: RHEL6, 64bit. Question: How big LV is needed to have a 4096 MByte sized FS on it? Are there any percentages ...
0
votes
1answer
19 views

Convert free space LVM to ext

Can I convert Free space in a LVM partition to a ext3 partition? If I run pvs: PV VG Fmt Attr PSize PFree /dev/sda3 ubuntu-vg lvm2 a-- 297,11g 30,02g So I have 30GB unused, ...
2
votes
1answer
843 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
0answers
29 views

How to solve File-based locking initialisation failed.

Am on a CentOS-Minimal Virtual Machine, i had accidentally deleted a hard disk that contained a Volume Group (LVM). After rebooting i got an error saying " File-based locking initialisation failed". ...
1
vote
1answer
66 views

LVM: How to clone thin-volume

I'd like to know how it's possible using the lvm cli tool to clone an existing lvm thin volume, creating another thin-volume with the same contents (but possibly a larger size) as the original one. ...
0
votes
0answers
33 views

How do I repair an ext3 filesystem (superblock)?

Disk setup (2) 300GB HDDs in RAID 1 /dev/sda1 - ext3 /boot (1GB) /dev/sda2 - swap swap (20GB) /dev/sda3 - LVM (179GB) (2) 500GB HDDS in RAID 1 /dev/sdb1 - LVM (500GB) LVM - System (...
4
votes
1answer
13k views

How to Format an LVM partition [closed]

I need to format a partition. But I have one LVM on my machine (VirtualBox) that is composed of two different two partitions of two Virtual HDD's (sdb5 and sdc5) fdisk output df output
1
vote
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 /dev/...
2
votes
2answers
2k 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
14 views

Unable to run LVM on CentOS 6 via VNC Viewer

Need to run Logical Volume Manager on my CentOS 6 vm using VNC Viewer but when I double click on it, nothing happens. What I did is to go to System > Administrator > Logical Volume Manager Am I ...
0
votes
1answer
25 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
2k 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
20 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 ...
11
votes
3answers
31k 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 ...
1
vote
1answer
29 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 ...
2
votes
1answer
86 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
45 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
89 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 ...
3
votes
1answer
41 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
524 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
41 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 multi-...
2
votes
1answer
258 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 ...
1
vote
1answer
28 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
23 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
56 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
65 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. ...
3
votes
1answer
95 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 ...