Logical Volume Manager for the Linux kernel manages disk drives and similar mass-storage devices, in particular large ones. "Volume" refers to a disk drive or partition thereof.

learn more… | top users | synonyms

2
votes
2answers
246 views

The opposite of mount -o loop: can I read a block device as a regular file?

I'm trying to back up an LVM volume using Duplicity (note: not just the file contents of the volume, but the actual volume itself, byte-for-byte). The best way I've so far found is to dd all the data ...
0
votes
0answers
400 views

Udev rule for changing owner of Linux LVM device nodes

I'm having some trouble changing the owner of a Linux LVM logical volume on my Debian wheezy system. I added the following udev rule to both the initramfs and the real root file system: ...
0
votes
0answers
219 views

In linux is it possible to extend a ramdisk with a physcial drive in a logical volume?

I do not like how tmpfs behaves with swap and will allow memory to be exhausted before using the swap on physical disk (yes swappiness can be adjusted but it's still affecting the rest of the OS by ...
2
votes
0answers
353 views

Does Windows 7 support TRIM for Spanned Dynamic Disks?

Windows 7 supports TRIM for an individual SSD, but does it work with two SSDs merged together as a Spanned Dynamic Disk? "Dynamic Disk" is Microsoft's proprietary version of LVM.The equivalent ...
1
vote
3answers
109 views

Reverting pvcreate on a Windows System Recovery partition

As the title says I incorrectly ran: pvcreate /dev/sdb1 Where sdb1 was a Windows System Reserved partition. Now I know I could probably use the Windows CD to recreate it, but is there a way to do ...
1
vote
2answers
210 views

LVM without stripe

I want to use LVM to have a partition that spans over multiple drives. I know that there is a down side in that if one drive fails all the data in the array is lost. Is it possible to have LVM not ...
8
votes
1answer
594 views

Find files affected by bad blocks with md-raid5 and LVM

I've been doing a lot of research on this topic over the last few weeks - and I think I'm close to completing my recovery, as much as is possible at least. To make a long story short, I'll just ...
1
vote
1answer
735 views

Installing Debian on existing encrypted lvm

I have a dual-boot machine, where I already set up Ubuntu in an encrypted lvm. I want to use the same lvm for Crunchbang (a debian derivative), since I designed that lvm with two root-Volumes, a ...
2
votes
0answers
802 views

Recover data from one PV of an LVM mirror

A 1TB disk containing one partition which was the only PV in a VG containing one LV was failing by becoming intolerably slow without reporting any errors. My first thought was to attempt to use LVM ...
1
vote
0answers
485 views

Why “not a valid LUKS device”?

During installing Debian Squeeze I created partitions on a VPS (/dev/vda): vda1 = /boot vda2 = encrypted LVM (not using a standard way of Debian installer, but with the help of cryptsetup switching ...
0
votes
0answers
116 views

What is the right way to re-partition a disk with already installed linux?

What is the right way to fully re-partition my HDD (on a VPS -> no access to hardware), if there is currently installed a Debian Squeeze? I would like to create all encrypted LVM partitions, e.g.: ...
0
votes
2answers
607 views

GRUB2 UEFI booting from LVM on RAID (with XEN)

I'm experimenting with booting root filesystem from LVM volume inside the raid (mdraid superblock 1.x) via UEFI with GRUB2. Also I'm using Xen hypervisor. From grub command line I can see my lvm ...
1
vote
2answers
299 views

Migrating away from LVM

I have an Ubuntu home media server setup with 4.5TB split across a few hard-drives (1x3TB, 2x1TB) and I'm using LVM2 to manage the volumes. I have recently added a 60GB SSD to my server, and I wish to ...
1
vote
2answers
218 views

Can you use LVM and RAID together?

I heard with LVM you can have very big partitions by fusing hard drives together. I heard with RAID you can have backups of your data. Can i, and how would i do this: With 4 same hard drives, i want ...
0
votes
1answer
488 views

LVM snapshot size

I currently have 2 volume's: [root@compute4 /]# lvscan ACTIVE '/dev/vps/vm108_img' [30.00 GB] inherit ACTIVE '/dev/vps/vm109_img' [90.00 GB] inherit Now, I use the LVM ...
1
vote
1answer
291 views

Improve dd restore speed

Just now after waiting about 33 hours I finished restoring hard disk dev.pm.m3 resided on the LVM partition from previosly created zipped dump 5_dev.pm.m3_2012-11-03.gz. Here is its status: gzip -dc ...
0
votes
1answer
106 views

How to create physical and logical volumes on system reboot

My system is set up so that I take four devices, create a RAID 10 array out of them, create a physical volume, a volume group, and then three logical volumes, and lastly I create filesystems out of ...
5
votes
3answers
7k views

Fastest way to convert an ext4 formatted disk to LVM with ext4 on it?

I'm currently doing cp -aR to copy data from my (99% full) 1TB ext4 formatted disk to a new LVM-with-ext4-on-it disk. It's taking forever. Is there any way to attempt to "convert" the disk in place? ...
1
vote
2answers
182 views

Extending the /home partition

I currently have all my backups in /home. I added a new 2 TB disk in the machine and would like to extend my current /home partition by 2 TB (possibly with LVM). However, I don't want to lose my data ...
5
votes
3answers
2k views

From GRUB2, boot an ISO in an LVM2 logical volume

tl;dr - Is it possible to boot from a .iso file that is located in an unencrypted lmv2 logical volume? How? I'm trying to set this up in a VirtualBox VM before I do it for real with my laptop. I have ...
0
votes
1answer
1k views

Move home to partition or resize home to fit partition

I've two disks in my PC. My /home is in the /dev/sda3 so it's on sda1. Then I have another disk formated and mounted as /data in /dev/sdb1. I want to move /home to /data or delete data complety and ...
1
vote
1answer
62 views

A tiered approach to cloning linux partitons

I'm looking at a strategy for cloning Linux (root) partitions without having to use a Live CD. Literature suggests rightly that the source and target partitions must be umounted to be able to get a ...
2
votes
1answer
487 views

How to remove multiple word from grep command in AIX

I am trying to check disks used for mirror in lvs. currently I am using "lslv -m ulv" command but to check for multiple lvs is difficult. I guess there should be some option in grep to exclude ...
0
votes
0answers
144 views

I used LVM's pvcreate on an exisiting windows install. What do I do?

I was using LVM on an arch install disk and typed pvcreate /dev/sda2 but that was where my Windows installation was located. Did it overwrite the whole disk? If not, how can I revert it back to a ...
1
vote
1answer
830 views

LVM needed for encrypted, expandable RAID?

I am currently building a RAID-5 with three 2TB HDDs on Debian. I am wondering how I could configure my RAID to be encrypted and expandable in the future. I do not need nor want partitions, but must I ...
3
votes
1answer
4k views

Extending LVM partition on Debian/Virtualbox

I've just resized the Virtual Space on VirtualBox image 5G to 15G. I then used GParted to resize the physical partition which now looks like this: and using fdisk command: Disk /dev/sda: 16.1 GB, ...
2
votes
1answer
2k views

Having trouble with EXT4 on LVM on software RAID 5 (corruption)

Here's the quick and dirty of my problem. I'm using Lubuntu 12.04, Xubuntu 12.04 and plain Ubuntu 12.04. Tried with generic kernels 3.2.0-25 and 3.2.0-26. This issue persists on all 3 variants which ...
1
vote
2answers
280 views

Discover and mount all filesystems on all drives (including LVM)

I have a Live CD that I am creating that will access all physically attached disks on a machine. There is no user intervention involved and I need to find and mount all drives that can be mounted. I ...
1
vote
1answer
1k views

resizing/moving LVM volumes

I have a server machine running CentOS 6.2. It is configured using LVM mapping as it is the default and I didn't see any problem with going that way. I have a 500Gb drive in there right now, and 54Gb ...
0
votes
3answers
604 views

Best way to partition 1 TB (Linux and Windows 7)

Is there an intelligent way to partition 1 TB and be prepared for resizing/adding/deleting partitions? I was thinking about LVM, but as far as I remember, Windows 7 can't be installed on ...
4
votes
3answers
3k views

Home Server: storage virtualisation, what to choose?

I'm looking for virtualisation solutions for storage and OS for a home server. A sort of private cloud where I manage the storage space independently of the VM one. This question focus on storage ...
0
votes
1answer
901 views

How to expand disk in a Ubuntu VM?

I have a Virtualbox VM, with Ubuntu 12 installed in a 8gb disk, with encrypted LVM. I managed to add a 20gb disk, and now I need to expand the LVM to use those 20gb too, or just copy the entire small ...
1
vote
0answers
367 views

What does it mean “not a valid LUKS device”?

During an upgrade from Fedora 15 to 17, I installed into an existing LUKS encrypted partition. I'm sure I borked the boot loader options, because the new system boots to GRUB. When I attempt to fix ...
0
votes
1answer
975 views

Why does LVM HDD fail “mount” command when booting from CDROM?

Currently I have a superuser post asking if I can install/upgrade existing LUKS/LVM without having to erase and rebuild the partitions. This has provided instructions to mount the HDD, but there are ...
0
votes
2answers
2k views

How to align Logical Volumes on contiguous Physical Extents?

I have originally created 2 Logical Volumes in a Volume Group. The 2 Logical Volumes occupy the whole Volume Group and are sat on contiguous Physical Extents. However, after I have shrunk the first ...
5
votes
1answer
452 views

A weird issue relate to ext4/lvm/raid-5 after partition recovery

I have 3 hard disks, in the following paragraphs named /dev/sda, /dev/sdb and /dev/sdc, newest came first. Note: /dev/sdc has one primary partition /dev/sdc1, one extended partition /dev/sd2, and 3 ...
0
votes
2answers
8k views

vgdisplay and lvdisplay No volume groups found

root@ubuntu-server:~# pvdisplay root@ubuntu-server:~# vgdisplay No volume groups found root@ubuntu-server:~# lvdisplay No volume groups found root@ubuntu-server:~# what to do. I can't find ...
4
votes
1answer
9k views

How can I mount an encrypted LVM under Windows?

I have a virtual machine with Ubuntu server with an encrypted LVM. I set up a virtual drive using imdisk to access its virtual hard drive without running the virtual machine, but I can't find any way ...
3
votes
1answer
607 views

Migrating to LVM

The drive on my Ubuntu media server is nearly full. I hope to add another 2TB of capacity to the machine and would prefer for all 3.5 TB to be recognized as a single drive. To complicate things, I ...
1
vote
1answer
722 views

Adding Space to RAID5 using mdadm, lvm and ext3

I have seen a few descriptions about using mdadm with lvm to create an easily expandable raid, such as this question, but I still think I'm missing something. Say that I create the raid using mdadm ...
2
votes
3answers
7k views

LVM volume with corrupt MBR: how to mount and recover data from it?

I am new to LVM and partitioning in general, and so, am in a situation here. The Situation: I accidentally overwrote MBR of a Fedora 16-created LVM disk. Now, everything else on this disk is ...
1
vote
1answer
851 views

Simple Ubuntu Server - Expanding disk space - adding a new drive LVM, RAID0 existing setup - how?

I have a 1TB ext4 partition mounted at / with all my data and Ubuntu 11.04 (natty) installed. Now this drive is almost full (I used it as a database server for some processing). RAID0 is ok, I can ...
0
votes
1answer
312 views

Dead drive in LVM/XFS configuration

I had three drives in LVM: a 2 TB drive and two 1 TB drives (added later). One of the 1 TB drives -- I believe the third one -- has died. Spanning all three drives was an XFS partition. Reading: ...
0
votes
1answer
5k views

GRUB menu not coming up during system boot

My Dell system came with Win7. I installed Ubuntu 10.04 into an LVM encrypted partition with the /boot unecrypted on it's own partition. The PC boots directly to the Ubuntu decrypt screen with no ...
1
vote
1answer
267 views

Add partition to Windows XP Guest after extending Logical Volume on host?

How do I add a partition to a Windows XP Guest after extending the Logical Volume on the host? I have a CentOS 6 Server running several virtual machines, one of which is a Windows XP Guest. The ...
2
votes
3answers
1k views

Get LVM size using AWK?

I'm in need to find out the LVM size of image vm001. Let's say I have a LVM volume called /dev/VGgroup/vm001. Now using lvdisplay I can find out the size: --- Logical volume --- LV Name ...
1
vote
1answer
3k views

Using LVM after installing Debian

I have Debian Squeeze installed on VirtualBox. While installing I've chosen Ext3 filesystem and it takes whole virtual disk space. fdisk says: Disk /dev/sda: 33.0 GB, 32986103808 bytes 255 heads, 63 ...
0
votes
1answer
513 views

LVM vs RAID Home NAS Options

From what I am reading it appears Logical Volume Management might be a better solution for what my plans currently involve. My current setup consists of 3 1-TB drives all acting as some part of my ...
0
votes
1answer
842 views

Dualboot on lvm with luks

I try to install PC-BSD 9 besides Fedora 16 on my Thinkpad. I installed Fedora on the hard disk, using default lvm with encryption. I left 50GB "unused" on the 250Gb HDD. When I boot into the LiveCD ...
1
vote
0answers
617 views

vgscan not finding groups after an unexpected reboot

I have an LVM partition on one of my disks: Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes ...