Questions tagged [lvm]

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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
7k views

What is LUKS and LVM2 PV in Gnome-Disk?

After a standard installation of Linux Mint Debian Edition 4, this is how the hard drive is partitioned according to gnome-disk: Ext4 is the standard file system for current Linux systems AFAIK. But ...
david's user avatar
  • 337
2 votes
1 answer
2k views

Check if LVM RAID1 mirrored LV is degraded

I have successfully installed Ubuntu to a mirrored LV (two copies in total). I am also surprised to find the new mirroring is backed by MD by default It's a Hyper-V virtual machine, and I want to ...
Shane Hsu's user avatar
  • 253
2 votes
1 answer
218 views

How to move data between LVM LVs without physically rewriting it?

I want to move large volumes of data bewteen two LVM logical volumes (LVs) on the same physical volume. I use a SSD, so I don't want to write too much physically. My understanding is that cp, mv and ...
Hey's user avatar
  • 1,261
2 votes
1 answer
5k views

Remove encryption setup on a lvm/luks partition

On my linux machine, I have setup disk encryption using lvm/luks. However later I delete one of the partition and format it to NTFS in order to use it on Windows (as I have dual boot linux/win10). ...
Alex's user avatar
  • 55
2 votes
1 answer
721 views

How to resize LVM /home and /usr partitions

I need to increase the space on my /usr partition, however I cannot shrink my /home partition, as the manager requires unmounting, which cannot happen while the system is running. I am running Debian ...
Fearless's user avatar
2 votes
1 answer
322 views

Protect from access lvm encrypted partition from windows

This is my first question here, so forgive me if it isn't appropriate or too noobish. I want to install Linux and Windows on my machine, but so that the linux partitions would be lvm encrypted and ...
kaspersky's user avatar
  • 121
2 votes
1 answer
159 views

How to grow an LVM volume in the middle?

Let's say I created the following Linux LVM volume group and logical volumes: $ sudo vgcreate vg1 /dev/sdb1 $ sudo lvcreate -L 10G -n lv1 vg1 $ sudo lvcreate -L 10G -n lv2 vg1 $ sudo lvcreate -L 10G -...
Roxy's user avatar
  • 379
2 votes
1 answer
8k views

Cloning HDD containing /boot and LVM to new HDD

I am trying to clone the drive below to a new drive of a bigger size: sda 8:0 0 223.6G 0 disk ├─sda1 8:1 0 500M 0 part /boot └...
etnguyen03's user avatar
2 votes
2 answers
2k views

Can't make LVM Cache to be persistent after system reboot

I've got LVM logical volume on top of MDADM RAID1 setup. I'm trying to add SSD device as Cache to this logical volume via: vgextend dataVG /dev/sdd lvcreate --type cache --cachemode writethrough -L ...
Timka's user avatar
  • 208
2 votes
1 answer
422 views

Recover LVM to single drive

The situation I have a volume group that spans four 1TB drives with six logical volumes. Three drives have full-drive physical volumes (no partitions), while the fourth drive contains /boot and a ...
user19087's user avatar
  • 541
2 votes
1 answer
146 views

Linux Partition with SSD and HDD

I'm currently setting up my server and I don't get how to choose Disk 1 and Disk 2 for the partition. vg0 should be the HDD and vg1 the ssd. Maybe you can help me how to set up such in this syntax. ...
Gamerboy59's user avatar
2 votes
2 answers
5k views

how to recover pv and lvm with no lvm export?

hi i have a server which its first hdd was broken , the server has 2 HDD , the first hdd crashed . datacenter replaced it for me with a new hdd. the second hdd use to have 2 pv on 2 partitions , ...
Farzin Sb's user avatar
2 votes
1 answer
4k views

resize a volume

I would like to increase lv_home to 20G and increase lv_root to 120G. In VMware I extended the harddrive to 200G. You can see that below in .host:/ Filesystem Size Used Avail Use% Mounted ...
paul cappucci's user avatar
2 votes
1 answer
801 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 ...
Hemant's user avatar
  • 131
2 votes
2 answers
823 views

How do I install Ubuntu 10.04 with full disk encryption alongside other operating systems?

I always used the Full Disk Encryption option of the alternate installer, but now I need to keep another OS running in the first partition but that option seems only to be able to use the whole disk. ...
Plinio's user avatar
  • 151
2 votes
1 answer
3k views

Gparted: Copy Greyed Out

I booted my system to a gparted linux live CD and I have two partitions: /dev/sda1 /dev/sda2 I want to move both of them to my new physical hard drive (called /dev/sdb). When I right click on /dev/...
user avatar
2 votes
1 answer
4k views

Creating LVM partition on SD card fails with "device not found"

I'm trying to create a single LVM volume on my SD card, using Ubuntu Netbook Remix. The SD card is at /dev/mmcblk0. So far, I've used fdisk to create a partition (type 8e - Linux LVM) on the device. ...
Ilari Kajaste's user avatar
2 votes
0 answers
77 views

Recover a RAID5 logical volume with two failed devices

before bashing me I assure you I know a RAID5 devices can survive only one drive failure. So... why am I asking this? I had two disks disconnected simultaneously from my machine, so raid failed. Also ...
RDX's user avatar
  • 41
2 votes
1 answer
2k views

How to update LV UUID, Devices file not found

A recent BIOS update has jumbled things in my LVM but I'm not sure what... [root@localhost ~]# pvscan Devices file sys_wwid naa.57c35481cc13b195 PVID IpYMVDa5eXTqYQuLzXc8GukoAVUOK32u last seen on /...
cogito's user avatar
  • 31
2 votes
0 answers
3k views

Mount an active logical volume results in special device does not exist

I'm trying to get data from an Ubuntu server disk that got it's boot partition faulted. On the disk there is a logical volume that I'm trying to access through WSL2 on Windows 11. I can activate the ...
Bjorn Bailleul's user avatar
2 votes
1 answer
229 views

Creating bootable windows image from a logical volume

Recently I have taken raw image (using dd) of a logical drive of my laptop running windows 10. I would like to convert this into a bootable Virtual Disk so that live analysis of OS can be performed. ...
Madhu G's user avatar
  • 21
2 votes
2 answers
3k views

mdadm RAID underlaying an LVM gone after reboot

The main part of my problem ha been discussed here the other time... ... but I have two special questions that haven't been answered before. The Situation: I upgraded my hardware, installing two new ...
Martin L.'s user avatar
  • 103
2 votes
1 answer
509 views

Removing lvm cache volume results in "Unknown feature in status" output

Recently I've replaced the HDDs in a RAID 1 mdadm array due to a lack of space. The structure is as follows: - 2 HDD in RAID 1 (Originally 2x2TB, now 2x4TB) - LVM - Swap - BTRFS - 3 ...
Zelec's user avatar
  • 21
2 votes
1 answer
570 views

Luks/LVM disk encryption: how to change size

I installed Linux Mint Cinnamon 19.1 and enabled LUKS. It automatically created the following set-up: [~]: lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:...
Mikko Vedru's user avatar
2 votes
0 answers
241 views

Ubuntu LVM on LUKS UEFI

I want to install Ubuntu on LVM on LUKS in UEFI mode. An UEFI partition, another encrypted partition for /boot and again an encrypted partition for system. My question is: How can I add hooks to ...
user974947's user avatar
2 votes
0 answers
810 views

SSD overprovisioning and encrypted LVM

I have a SSD with an encrypted (cryptsetup/luks) LVM partition. Since I'm not yet into that ssd stuff I offhandedly left approx. 10% unpartitioned for overprovisioning. Just because I was told that ...
anse's user avatar
  • 21
2 votes
0 answers
290 views

RAID migration w/ MegaRAID SAS Raid controller

I have a workstation with 8 drive bays and a MegaRAID SAS-3 3108 raid controller. 5 of the 8 bays are populated, and it is configured as a RAID5. I need to expand my disk-space, and putting in 3 more ...
AFF's user avatar
  • 21
2 votes
0 answers
329 views

Can Fedora 28 be installed from an ISO file on an LVM partition?

I am attempting a medialess installation of Fedora 28, using an ISO image stored on an LVM partition. After struggling for a while I found this post which helped a lot, but I am now encountering the ...
Skippy le Grand Gourou's user avatar
2 votes
0 answers
1k views

LVM2 Raid 1 "needs refresh", but does not refresh or scrub

I'm running a LVM RAID 1 on two disks. Here is what lvs tells my about my VG: root@picard:~# lvs -a -o +devices,lv_health_status,raid_sync_action,raid_mismatch_count /run/lvm/lvmetad.socket: ...
Lukas Barth's user avatar
2 votes
0 answers
296 views

lvcreate vg0 not found

I am looking at the mongodb documentation for creating a logical volume with lvcreate. lvcreate --size 100M --snapshot --name mdb-snap01 /dev/vg0/mongodb The example is the output is: Using ...
staminna's user avatar
  • 151
2 votes
1 answer
238 views

Why /home/.ecryptfs is missing inside dd image of LVM partition?

Disk Copy 2 month ago I backed up the 128G HDD of an old laptop with Ubuntu 16.04 on it, using dd: # sudo dd if=/dev/sda of=/media/victor/blackWD/ss9backup.img conv=noerror bs=128k status=progress ...
Sulliwane's user avatar
  • 121
2 votes
1 answer
107 views

Any good reason to slice a LUN and create several VGs instead of create just one VG?

I'm the new administrator for a Linux RHEL box which uses a fibre channel 1-TB LUN disk. I find amazing the following: this LUN has been sliced by means of GNU parted(1), then each slice is turned ...
Jdamian's user avatar
  • 263
2 votes
0 answers
759 views

Where is the speedup effect on using lvm2-cache

I recently discovered that LVM2 supports now caching: http://man7.org/linux/man-pages/man7/lvmcache.7.html The cache logical volume type uses a small and fast LV to improve the performance of a ...
reox's user avatar
  • 995
2 votes
0 answers
863 views

Redundancy: LVM+mdadm or LVM internal RAID

The task is to create LVM storage for virtual machine images. So LVM will be used in any case. There are two ways LVM providing redundancy: block mirroring lvcreate -m 1 --mirrorlog mirrored -n ...
eugene-bright's user avatar
2 votes
0 answers
2k views

/etc/init.d/lvm2 script not executed during startup

On startup, I want the /etc/init.d/lvm2 script shipped with Debian squeeze to be executed. I ran update-rc.d lvm2 enable and checked that the symlinks are created in the /etc/rcX.d folders: # find /...
janoliver's user avatar
  • 183
2 votes
1 answer
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 ...
jostrus's user avatar
  • 31
2 votes
0 answers
1k 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 ...
Shade's user avatar
  • 414
2 votes
1 answer
725 views

Linux command line partition manager with LVM

I need to write a program to format SD card with, FAT boot, ext4 and swap partitions. I would like the ext4 to use LVM. Ideally there would be scope for mdadm. I need help finding a command line ...
Pete Roberts's user avatar
2 votes
1 answer
446 views

Extending available space in LVM using LUKS

I have one volume group consisting of lv_root, lv_swap and lv_home. I want to increase the space available to lv_home by adding an extra hard drive. Can this be done while maintaining a LUKS-based ...
Chris's user avatar
  • 413
2 votes
1 answer
3k views

lvm vgdisplay shows 0 free extents, while df shows freespace

My vgdisplay shows 0 PE's. But if i mount the volume and run df -h i get loads of free space. Is this something to do with the way lvm allocates extents? I don't get similar behaviour from my other vg....
Software Mechanic's user avatar
2 votes
0 answers
318 views

How to mount USB disk with LVM/LUKS crypted volumes on a Mac? [duplicate]

Possible Duplicate: How to mount an encrypted ext3 filesystem under OS X? I have a USB disk that I've partitioned with LVM and encrypted some of the volumes with LUKS. This is all Linux/Device ...
Jasiu's user avatar
  • 171
2 votes
1 answer
3k views

How does Ubuntu LVM encryption work?

While installing Ubuntu Server, during the partition step one of the options is "use entire disk and set up encrypted LVM" (see screenshots). Can anyone explain - or at least point to the necessary ...
Sridhar Ratnakumar's user avatar
1 vote
1 answer
1k 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 ...
user avatar
1 vote
2 answers
3k views

How do I access lvm disk with same VG name as current?

I reloaded my PC onto a new disk then put the old disk back in the PC to recover old files. I kept the same PC name. The OS setup routine appears to have used my PC name (stiffler) to create the LVM ...
regulatre's user avatar
  • 470
1 vote
2 answers
566 views

LVM Extend... not sure the filesystem

I would like to extend my LVM partition. First I did lvextend -L +100G /dev/server/home Now I still have to extend the filesystem. The tutorials tell me to use resize2fs, but that only works for ...
Jarvin's user avatar
  • 7,266
1 vote
2 answers
695 views

Is there something analogue to LVM logical volumes in BTRFS?

I like the way BTRFS does snapshots and subvolumes but it does not feel right to use LVM just because I want my logical volume to be of certain size. Is there something analogue to LVM logical ...
DejanLekic's user avatar
1 vote
3 answers
175 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 it ...
atx's user avatar
  • 223
1 vote
3 answers
1k 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 ...
Kye's user avatar
  • 208
1 vote
3 answers
1k views

Can I use Logical Volume Management when I have a Windows partition? And how safe is it?

I recently found out about Logical Volume Management. Seems interesting, but I have a couple of questions: Does it matter if I have a Windows partition? It seems that LVM is bound to the Linux kernel,...
Javier's user avatar
  • 3,853
1 vote
1 answer
567 views

Does multiple snapshots influence the performance?

My desktop system(Kubuntu-20.04.4, with LVM2 root-fs) need to be frequently adjusted the configurations, but some configuration would be fault. I take a new LVM2 snapshot of root fs, before every time ...
Leon's user avatar
  • 239

1 2
3
4 5
9