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

learn more… | top users | synonyms

1
vote
2answers
510 views

How do I recover an ext4 volume overwritten by an LVM logical volume?

I was running an Ubuntu desktop. The OS was installed on a SSD. I had two additional drives formatted ext4 and mounted on /storage (1TB) and /storage-bak (1.5TB). I installed Centos over Ubuntu on ...
1
vote
1answer
65 views

Restored VG has shifted volumes

I'm recovering a PV on a mdadm RAID 1 with a single VG containing several LVs. The underlying devices have several bad sectors (one just a few, the other really much) and a silly typo made it ...
1
vote
1answer
311 views

How to create LV

I want to create some LV in my VG I have this: LV Name /dev/vg_appli/lv_grt LV Size 10,00 GB LV Name /dev/vg_appli/lv_sap LV Size ...
1
vote
1answer
317 views

Can we create lvm volume group with mapped device?

I can create a lvm volume group with a loop device. But if I use dmsetup to map the loop device into several devices, then I can't create a lvm group with /dev/dm-. Why is it not possible to create ...
1
vote
1answer
888 views

HPUX: changing LVM paths or disk device names

Our installed HPUX system has a VG called "vg00" whose data was stored in partition "/dev/dsk/c3t5d0s2" Now that disk failed and we have an exact copy of that disk. However when we use the new disk, ...
1
vote
1answer
152 views

How to add RAID5 to existing crypto-LVM?

I recently installed Debian Wheezy and let the installer guide partition the disk using a whole partition with encryption (LVM). Later on I've added four disks and setup RAID5 on them (using mdadm). ...
1
vote
3answers
762 views

Debian doesn't boot anymore

I use Debian Wheezy. Yesterday I added a new HDD to the system and expanded the LVM using the system-config-lvm gui-tool. I have a logical LVM group for root, /, and one for home, /home. I also ...
1
vote
1answer
218 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. ...
1
vote
1answer
903 views

How to resize root Volume Group

How Can I reduce size of root volume group? /dev/VolGroup00/LogVol00 I just have SSH access to Linux host.
1
vote
2answers
1k views

How to extend second CentOS 5 partition in VMware

I know this question has already been answered for a primary partition, but what about a secondary? I have extended the space to 30G in VMware. When I perform an fdisk -l, here's the output: Disk ...
1
vote
1answer
906 views

How do I attach my LVM RAID's to a new Ubuntu install?

I have an Ubuntu 9 Desktop system that I mainly use as a media server. I have a 2TB RAID5 and a 500GB RAID1, both using LVM. The OS drive is a 4GB CompactFlash card which has finally run out of space. ...
1
vote
0answers
25 views

ArchLinux: Error installing grub on encrypted lvm partition(lvm on luks)

I am trying to install Arch Linux on an encrypted partition (LVM on LUKS). I followed the relevant Arch Wiki guide, but when I do: grub-install --recheck /dev/sda it gives me this output: ...
1
vote
0answers
14 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. ...
1
vote
1answer
29 views

Not able to finish setting up LUKS

I am trying to encrypt a new VM with LVM on LUKS. I formatted and partitioned the HD (1 partition). I ran: # cryptsetup -c aes-xts-plain64 -s 512 luksFormat /dev/sda1 /mnt/dok/31.jpg typing ...
1
vote
0answers
30 views

One SSD cache for two partitions on two separate disks?

I have two hard drives: one for my operating system and the other for other data. I recently bought an SSD drive that I would like to use an LVM cache for those two devices. The problem is that I ...
1
vote
0answers
8 views

Error: “failed to connect to lvmetad” in Ubuntu 15.10 [duplicate]

My computer has a error that is preventing it from booting to the desktop. The error message is Warning failed to connect to lvmetad no such file or directory falling back to internal scanning ...
1
vote
2answers
47 views

Restoration of physical and logical volume group with data

My idea was to simulate such situation on VirtualBox as: some crash happened with my hard disk drive, but I had had LVM and it was not a big deal to restore data using it. My steps were: step1: ...
1
vote
0answers
31 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 ...
1
vote
0answers
18 views

Backup location in LVM

By default, the metadata backup is stored in the /etc/lvm/backup file and the metadata archives are stored in the /etc/lvm/archives file. What should I do If I want to change directory for backup? For ...
1
vote
0answers
25 views

Moved /var/log to a new logical volume now data is missing

I have a RHEL server that has /var mounted inside an LVG on its on dedicated LV. Per RH Security Advisory CCE-26215-4 I needed to migrate /var/log to its own dedicated partition. So I shrunk /opt to ...
1
vote
1answer
88 views

LVM Mount Rescue Mode

I am having trouble mounting a LVM to extract a Proxmox virtual machines data. Any ideas on how I can mount it? root@rescue:~# mount /dev/sdd /mnt/ mount: block device /dev/sdd is write-protected, ...
1
vote
0answers
22 views

Restoring VG configuration from recovered drive

Had to reinstall CentOS on a server with three RAID 1 arrays. I installed the OS on sda (300g), and left sdb and sdc alone (they were not formatted or otherwise fiddled with). The OS is up but ...
1
vote
1answer
211 views

How to boot gentoo with systemd, UEFI, lvm2 rootfs with systemd EFI boot?

I've installed Arch Linux with that setup. And now, I want to have dual boot with gentoo. But, when booting gentoo, the root UUID (on LVM) not detected. My partition scheme is like this: (lsblk -f) ...
1
vote
0answers
106 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
48 views

Encrypted boot drops to shell, how to set LVM crypttab consistently? 'ALERT! {logical volume path} does not exist'

I used Luks to encrypt my whole hard drive, and created that sda drive as a physical volume. Under that volume, I create a volume group vg00 with my 3 logical volumes lv00_root, lv01_home, and ...
1
vote
1answer
90 views

How to implement RAID 6 over different nodes on the network

I am trying to create a RAID 6 over independent nodes which are on the network. I have to further implement LVM over this RAID 6. I read about it at ...
1
vote
0answers
62 views

mount LVM RAID 5 with missing disk

I have a software RAID 5 (LVM, XFS) with three 2 TB drives. Is it possible to mount the RAID with one missing drive (instead of having to rebuild it)? How would this be done? [Edit] My /etc/fstab ...
1
vote
1answer
675 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 ...
1
vote
0answers
69 views

Recover VG after Adding Disks and Rebooting

I had an old 1.5 TB NTFS formatted disk I wanted to use in by RHEL 7 box, so I put it in my desktop booted, and proceed to delete the partition table using fdisk. I created a physical volume on it ...
1
vote
0answers
42 views

change device names in LVM

We have a server crash situation for our Oracle Database Server. The operating system was SLES 10 SP2 and Oracle Release 11.1.0.6.0. Now the system had this setup before crash. 1 boot disk --- ...
1
vote
0answers
870 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 ...
1
vote
0answers
130 views

How to create separate usr partition during arch install?

How do I modify and add the hooks needed in mkinitcpio to have a separate usr partition? Also, am I mounting the other partitions correctly? http://imgur.com/Rxt6o1g Basically I'm using UEFI with ...
1
vote
0answers
50 views

Change Partion Drive Space

Okay I am having some trouble here - pretty new to the Linux environment and need some help. I have a 2.7 TB RAID array, and someone configured a partition at around 200 GB but it really needs to be ...
1
vote
1answer
126 views

Fault-tolerant iSCSI root fs for Linux

I am in the process of moving some Linux servers onto a virtualized environment with their filesystems mounted from LVM volumes, which are in turn hosted on a remote NAS via iSCSI. I am able to start ...
1
vote
0answers
373 views

clvm (cman) has problems with dlm

I am trying to create a volume group which is accessible on two servers with clvm. I read about it and it looks like it is most easily to do this with cman. But after hours of testing I cannot achieve ...
1
vote
0answers
178 views

fsck single disk from Raid 0 lvm

My NAS (Seagate Blackarmor) is refusing to connect to the network after a fsck. I assume the root filesystem (stored on flash) might have been corrupted somehow after running fsck. The setup was a ...
1
vote
1answer
162 views

What are the overheads of using multiple smaller raid devices versus partitioned raid devices as physical volumes?

LVM only allows volume groups to be expanded by adding physical volumes. So if I have multiple volume groups which may need extra space, but it can't be predicted which will expand fastest, it's best ...
1
vote
0answers
235 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 ...
1
vote
1answer
560 views

Booting Gentoo on LVM inside LUKS with gpg encrypted keyfile

I'm trying to install Gentoo on LVM logical volume inside LUKS container encrypted with key file encrypted by GPG with passphrase. Everything was going smoothly until I tried to boot. I'm building the ...
1
vote
0answers
313 views

LVM issues and questions

I've got a NAS configured with LVM where one of the volumes is giving errors like this: vgscan reading all physical volumes. This may take a while... /dev/ElkhornC7VG1/idisk5: read failed ...
1
vote
0answers
393 views

Arch Linux boot failure: Fsck check on LVM /var mount fails

I recently installed Arch Linux on an older laptop that I am using as a personal workstation and machine to better learn how to administer Linux. I have a persistent boot failure that has started ...
1
vote
1answer
220 views

Booting from an lvm-cached volume

I created a cache pool following this article. The process seems to be successful. After doing an upgrade-grub and rebooting, Grub complains that it can not find the root volume (showing a UUID). - ...
1
vote
0answers
63 views

Lvm showing in suspended mode

LVM is in a suspended mode, how can I activate it? I tried: $ sudo vgchange -ay vgname $ sudo Vgexport $ sudo Vgimport But it isn't working.
1
vote
0answers
241 views

Mounting synology disks in ubuntu

I have some files on synology disk that I would like to recover with extundelete. I have mounted the raid1 setup. So on the disk is two raid storages (md2 and md3) and they are connected to one with ...
1
vote
0answers
120 views

External drive EFI bootloader with Debian 7.7 Wheezy

I'm currently trying to install Debian 7.7 on a removable drive with an encrypted LVM from DVD-1 with a self contained EFI bootloader like the one the DVD uses - that is, the computer's HDD should be ...
1
vote
1answer
340 views

broken fs after removing disk from LVM group

I messed up a bit and I am trying to find the best way to recover. A few days ago, 1 of the physical disk of my lvm setup started to show sign of failure (I/O errors) so I decided to move it to ...
1
vote
0answers
358 views

lvmetad hangs on startup

I got a machine running archlinux that have a problem on boot. It hangs for 90s waiting for pvscan on block devices, and then give up. (actually, the pvscan process are still stuck ,and any lvm ...
1
vote
0answers
24 views

Is there a distribution with an installer that can automatically do LVM over LUKS with everything aligned as needed?

http://www.void.gr/kargig/blog/2012/01/11/linux-ssd-partition-alignment-tips/ talks about aligning SSD partitions and LVM physical volumes. ...
1
vote
1answer
960 views

Fix LVM physical volume definition after removing /dev/sdb

Recently I set up LVM partition with an new disc /dev/sdc. I created the LVM with the following commands: pvcreate /dev/sdc vgcreate data /dev/sdc mkfs.ext4 /dev/data/srv tune2fs -m 0 ...
1
vote
0answers
80 views

Converting RAID partitions to LVM

I have a 3TB HDD. of type RAID 5. I want to convert it to LVM. How can I do this without data loss and without needing for installing the OS again? $ df -h Filesystem Size Used Avail Use% ...