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

learn more… | top users | synonyms

2
votes
1answer
1k views

How much can the space allocated for an LVM snapshot be reduced?

I created an LVM snapshot, then I modified the original logical volume, and now I see that I probably allocated too much space to hold the snapshot. And I want to reclaim some free space by reducing ...
6
votes
1answer
5k views

How to configure a filesystem+LVM for effective usage of SSD?

ext4 is one of the filesystems recommended for using on SSDs (with a number of built-in techniques and advices how to tune it for better performance and wear-levelling of SSDs). I want to install a ...
3
votes
1answer
217 views

Create Logical Volume Snapshot at boot and before mount

I'm using Kubuntu 11.10 and before I upgrade to 12.04, I want to make snapshots of my filesystems. Coming to think of that, I realized that it can be very useful to create snapshots of logical volumes ...
1
vote
1answer
3k views

Install Backtrack 5 r2 into running LUKS setup installed with ubuntu

One Harddisk (sda) Two Partions. With a working ubuntu running. 1) /boot 2) LVM with this virtual volumes/partions/ or whatever they are called inside: Swap Ubuntu Home Prepared for Backtrack Of ...
1
vote
1answer
781 views

mdadm raid0 with disks of different size?

Currently I'm using LVM just to merge a few disks of different size. I want to know if it is possible to use mdadm with stripes instead of LVM? Will it give me additional performance? Will it use ...
4
votes
4answers
1k views

Partitioning a 2tb drive

Im new to linux Im planning to install Squeeze on a 2tb hard drive a follows: / - 10gb swap remaining space will contain /home, around 1.9tb i hope, i will try to use as lvm to add my old 1tb drive ...
2
votes
3answers
589 views

Recovery of data on raid5+lvm reiserfs partition, after raid5 problems

I've got a server with 3 sata hard drives. Each has 2 partitions: one small is part of /dev/md0, a raid1 array (/boot), rest is part of a raid5 array (/dev/md1), which is an lvm physical volume. ...
6
votes
7answers
6k views

Should LVM partitions be used in virtual machine images?

Should LVM be used for the partitions when creating VM images (e.g., KVM images)? It seems like it adds complexity if you want to, say, mount a qcow2 image in the host if the image has LVM partitions. ...
3
votes
1answer
530 views

Create a volume group from a logical volume instead of a physical volume

Is it possible to create a volume group from a logical volume instead of a physical volume? If so, are there any pitfalls in doing so? Use case: Installing OpenStack Compute on a a system that ...
1
vote
1answer
624 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. ...
3
votes
1answer
2k views

Uninstall the Encrypted LVM function to remove the prompted password entry during Ubuntu Boot

When I installed Ubuntu 11.04 and I was offered the option of enabling "encrypted LVM" for my hard drive. After choosing that option, I am prompted for my password during boot to decrypt the LVM. ...
3
votes
3answers
835 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 ...
5
votes
2answers
2k views

Does LVM increase the risk of data loss?

Let's say I have two identical disks, and I set one LVM logical volume on them (no mirroring). Question: What will happen when one of the disks fails? I will lose all the data from all the disks I ...
2
votes
2answers
4k views

How to Expand LVM2 Partition in Fedora Linux

I've been using Fedora 15 on a VMWare virtual machine. Over time, the disk space I initially allocated for the file system began to run out, only 12GB left. I've expanded the disk space an extra 25GB. ...
2
votes
1answer
387 views

How to extend an ext3 partition over LVM inside a file (virtual machine)?

I need to extend the root partition of a virtual machine (VM) using LVM (Logical Volume Manager) . I can afford a few minutes of downtime so a VM shutdown/reboot is fine. The virtual hard disk is in ...
1
vote
1answer
137 views

# of reads/writes for LVM vs. “regular” partitioning?

I am going to be installing linux to a USB flash drive (an actual install, not a "live usb"). I need it to be completely portable, so I can't realistically have the high-access partitions (swap, var, ...
2
votes
1answer
189 views

Device node LVM

There is mention of a device node, when I was reading about LVM. I can't find anything useful as to what it is or functions as. Any help or suggestion of where to look would be appreciated.
0
votes
1answer
429 views

How to change or create Lvm partition in Centos after install OS in shell

How to change or create Lvm partition in Centos dedicate server after install OS in shell?
0
votes
3answers
615 views

How to fix bad mirroring on AIX?

So mirroring is bad: 0:root@SERVER:/root # lslv -m hd2 hd2:/usr LP PP1 PV1 PP2 PV2 PP3 PV3 0001 0209 hdisk30 0322 hdisk32 0002 0210 hdisk30 ...
4
votes
2answers
1k views

RHEL6 LUKS with TPM support?

I'm surprised that this question is not asked more frequently, but (in RHEL) does LUKS support TPM's the way that Windows BitLocker does? If so, how is this feature implemented, and does it provide ...
1
vote
1answer
527 views

Resize a Physical Volume, resize2fs won't work with it

I need to resize my PV so that I could make room for a new partition, /dev/sda7 --> belongs to Volume Group: vg0 vg0 has 23g free space not allocated, so I tried pvresize ...
3
votes
0answers
4k views

LVM2 can not wake up suspended logical volume

Read my story below. I'm using LVM2 with following information: Scan for VG: # vgs VG #PV #LV #SN Attr VSize VFree unix 1 1 0 wz--n- 115.00g 45.00g Scan for LV # lvs LV ...
1
vote
2answers
1k views

What does a mirrorlog do in LVM mirroring?

http://www.tcpdump.com/kb/os/linux/lvm-mirroring/intro.html states that when mirroring a Logical Volume in LVM we need a "A volume for the log "... ehh, what exactly is a mirror log? Is it always ...
1
vote
1answer
4k views

How to decrease the size of a logical volume/fs aix?

oslevel -s 6100-03-03-0943 IF I have a Logical Volume that I need to shrink, then how can I do it? [there could be several FileSystems on it...]. What is the process?
4
votes
2answers
3k views

Permanently changing the ownership (or group) of LVM volume

How can I permanently change the ownership (or at least the group) of a LVM volume? I figured that I have to use udev, but I don't know how the rule should look like? Let's say I want to change the ...
2
votes
2answers
1k views

Reduce LVM /tmp size to 10G and add everything to / root dir

I want to reduce the partition mounted at /tmp to 10GB and add all unused space to the / partition. If I umount -l /tmp and run fsck.ext3 -f /dev/privg/lv_tmp, I get this: fsck.ext3: Device or ...
3
votes
2answers
191 views

Can lvm2 volumes based on device names like sda, sdb etc be mounted if their names change?

Lets say I would like to make a large volume from external usb drives. I create the lvm volume on drives that have been given certain device names sdf sdg or whatever and at some point they are ...
4
votes
1answer
365 views

What filesystem has best support for shrinking?

Most mainstream filesystems can be grown fairly reliably, but what if I think I would like to shrink in future? XFS is a non runner. Reiser seems to have good support but gives scary BETA warnings , ...
2
votes
2answers
2k views

Which device is using this logical volume?

I'm trying to remove an LVM logical volume, which I believe is not currently in use. However, when I attempted to remove it, I get an error: # lvremove /dev/vg_service1/lv_home Logical volume ...
2
votes
1answer
499 views

Equivalent to “copies=2” feature of ZFS in Linux with LVM

I have a laptop with only one HDD and is impossible add other HDD. The feature "copies=2" of ZFS is the perfect solution for to add redundancy to my /home in the laptop. I would like emulate the ...
1
vote
1answer
545 views

Resize LV's in a LUKS encrypted VG - Ubuntu 11.04

I wanted to resize the FS on a machine but i ran into problems: Purpose: the LV of /home is too big, the LV of / is too small (they're on 1 VG.) - I need to put 10 GByte from /home to /!! Problem: ...
2
votes
1answer
379 views

curious soft raid 5 setting inconsistency

Lately I bit the bullet and upgrade my OS from Fedora 11 to Fedora 15, and I've been trying very hard to figure out why Fedora 15 can't see the Raid setup that I created in Fedora 11. I think I must ...
4
votes
1answer
256 views

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

After creating 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 activation ...
5
votes
1answer
718 views

Can LVM snapshots be writable? (and used for temporary experiments)

It seems that usually it is talked about snapshots as read-only. (In a scenario where one creates a snapshot, then does some experiments with the main volume, and then restores the old state by ...
2
votes
1answer
329 views

LVM tools on raw block copy

I have several raw block copies of disks that have both NTFS and Linux partitions. The parition tables generally have both a Windows NTFS partition and a Linux LVM partition. I need to work on all of ...
6
votes
1answer
508 views

Linux device-mapper & ext4: what happens when the COW table fills up?

Consider the following scenario: I use Linux device mapper to create a snapshot of an ext4 file system. The snapshot is mounted as read-only; the source volume is mounted as read-write. I read the ...
10
votes
1answer
3k views

How to create a read-only snapshot in LVM, and then rollback to it after some work?

What are the commands to use in LVM in case I want to: create a read-only snapshot of a volume; (do some experiments in the volume); and then rollback the volume to the snapshot?
3
votes
1answer
1k views

LVM2 partition alignment

How to do the following with Linux tools : LVM partition alignment and alignment of partition on LVM ? What in case where I want to setup LVM partition (for "pv") and then partitions ? To be more ...
10
votes
1answer
4k views

Using a LVM partition as a Virtualbox drive

Is it possible to use a LVM partition as a Virtualbox disk? I can't find any option to use a device as a Virtualbox disk, only disk images.
4
votes
1answer
402 views

Resizing logical volume with no free extents but with free disk space

I have a 7.9 TB logical volume formatted with XFS filesystem. I have 8 1 TB RAID devices as physical volumes, and 1 volume group that contains all of these devices. I have 2.5 TB free space on my ...
6
votes
1answer
1k views

How to set keyboard layout used to enter password on an encrypted filesystem?

After my upgrade to Debian 6 (Squeeze), the keyboard layout used to enter the password of encrypted filesystem has been changed. How can I revert it back to previous one? My understanding is that, ...
9
votes
2answers
937 views

Choosing filesystem for a 16TB Raid

I'm just putting together a machine with eight 2TB disks. I will be using Raid 6 (12TB of usable capacity) on top of them, but I'm not sure whether I should make LVM on top of the RAID, or what ...
11
votes
4answers
2k views

The merits of a partitionless filesystem

I ran into something a couple of weeks ago that I'd never seen before: A filesystem (ext3 I believe) installed to a storage device without a partition. In essence /dev/sdb was the entire filesystem. I ...
2
votes
2answers
2k views

How to check LVM mirroring under Linux?

How can I check the LVM mirroring under Linux? E.g.: are there any mirrors on a given machine & some details about them, etc.
1
vote
1answer
552 views

How to Mirror one more disk on existing filesystem

in my test machine i can see the filesystem list using bdf commands. $bdf Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol3 58916864 6242747 49386840 11% / ...
2
votes
2answers
2k views

How to change dm_crypt aes/256 LVM password after install?

I installed Fedora 14 & Ubuntu 10.04 LTS on my PC. I used dm_crypt/LVM with aes256 in both installs (2 VolumeGroups, each encrypted, so there is 2 separated & encrypted linux distro on this ...
2
votes
1answer
2k views

Devices get renamed when SATA disk attached

I have an HP xw8200 workstation running linux with two small, fast SCSI drives hooked up to the onboard LSI SCSI controller. The drives get labeled /dev/sda & /dev/sdb in /dev, respectively. I ...
6
votes
2answers
15k views

lvm devices under /dev/mapper missing

I'm using Debian squeeze, and running LVM on top of software RAID 1. I just accidentally just discovered that most of the links under /dev/mapper are missing, though my system seems to be still ...
2
votes
1answer
5k views

How do I determine LVM mapping on a physical device?

I have a server (SUSE 11.5) that has two disks. There is only one volume group (vg01). How do I determine the physical device on which that vg exists?
1
vote
1answer
687 views

Device names for logical volumes

Consider this: # fdisk -l /dev/sda Disk /dev/sda: 298.9 GB, 298999349248 bytes 255 heads, 63 sectors/track, 36351 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot ...