Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lvm]

In computer storage, Logical Volume Management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes.

0
votes
2answers
64 views

Copy LVM Volume Group to a new single hard disk

I have a headless Ubuntu (18.04) server with 3 hard drives each partitioned to a single lvm volume group for a combined size of 6Tb. I recently purchased a new hard drive that is 8Tb and I want to get ...
1
vote
0answers
36 views

Clone Centos 7 installation - MBR to GPT

I want to clone a centos 7 installation (using LVM) from a 500GB drive (using MBR) to a new 6TB HDD. I tried to use clonezilla to clone the the drives with no success. fdisk -l output from ...
0
votes
1answer
17 views

virtualmachine lvm reduce size KVM Debian9

I have got 4 6TB HDD's, each is divided into 5 partitions: 1) ESP - 250mb 2) raid - rootfs 14gb raid1 3) swap - 5gb 4) raid - 70gb raid1 LVM's for VM's 5) raid - 16tb raid5 LVM for storage And ...
1
vote
0answers
22 views

Preventing LVM from accessing “low-level” devices of DRBD

Context: Active/passive DRBD setup. KVM VMs on LVM volumes. LVM using /dev/drbd0 for physical volume and volume group. During tests of the setup I have: Shut down Secondary node. Rebooted Primary ...
5
votes
2answers
253 views

mdadm RAID5 random read errors. Dying disk?

First the long story: I have a RAID5 with mdadm on Debian 9. The Raid has 5 Disks, each 4TB of size. 4 of them are HGST Deskstar NAS, and one that came later is a Toshiba N300 NAS. In the past days I ...
0
votes
0answers
20 views

What File systems can I use with Samba VFS Shadow Copy

I have an up and running file server running a LVM managed mirrored array and Samba Version 4.5.12-Debian. I want to add some protection against accidental deletion / overwrite. The protection only ...
0
votes
1answer
17 views

Bad setting of LVM volumes - I cant extend partition

I have little mistake on configuration with LVM partions. It is virtual machine in esxi. I need extend LogVol01 in vg_vmm02. /dev/sdc was extended in hypervisor to 10GB (from 5). Problem is that I ...
5
votes
1answer
62 views

How to append free space from LVM volume?

I am running out of space on a LVM volume and am wondering where 10G are allocated: df -h /dev/mapper/vg0-staging 20G 19G 177M 100% /mnt/staging lvs staging vg0 -wi-ao---- 30.00g Is there a ...
1
vote
1answer
57 views

On ESX, does a Ubuntu VM re-use free space in the VM, before expanding the virtual disk?

I have a thin-provisioned Ubuntu 18 VM on ESX 6 with one virtual disk that is using almost all the underlying physical disk (I have a new 4TB disk ordered to move to shortly). The VM filesystem is ...
0
votes
0answers
26 views

How to resize lxc/lxd images, if i am using LVM backend?

i am using LXD few years and i am glad to use this platform in my testing environment. But few days ago, i couldn't install Microsoft Sql server 2017. The reason was, that i used default ZFS backend. ...
0
votes
0answers
31 views

Can't restore PV metadata

I have a corruption problem on a PV (within a multipath, don't know if it matters). The base system is a CentOS 7 and the volumes are hooked up via iSCSI to an external storage. I found the LVM UUID ...
0
votes
1answer
52 views

How to reduce size of mounted lvm volume with btrfs file system

My State: $: lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home myvg -wi-ao---- 100.00g $: btrfs filesystem resize -20g /home $: lvreduce -L-20G /...
2
votes
2answers
34 views

Restoring multiple EBS snapshots to larger volumes in a single logical volume

The situation: we have a MySQL server in AWS using three EBS volumes in a striped logical volume to hold the database data. The logical volume is close to full, so we need to expand it somehow. One ...
0
votes
1answer
57 views

Is it possible to fix corrupt LUKS header?

I just accidentally overwrote the LUKS metadata of my volume with a new LVM header. I have copy of the original LUKS header but can't find it. Just in case, I made a dd image of the first 10MB of the ...
0
votes
0answers
34 views

Ubuntu 18.04 qemu lvm vnc issue

I just stumbled across a very strange issue with qemu and vnc / lvm on an fully updated vanilla Ubuntu 18.04: I set up am VM through libvirt: virt-install -n web_devel -r 2048 --disk path=/var/lib/...
0
votes
0answers
17 views

Restarted Ubuntu 13.10 server, all connections refused. IPMI shows /bin /var /usr cannot be mounted (lvm2)

Upon boot on Ubuntu 13.10, IPMI is showing that it can't mount /tmp /usr /var folders, which are all setup as LV's. This results in the server refusing all connections via SSH or TCP. I've hit a dead ...
7
votes
1answer
694 views

Ubuntu Server 18.04LTS Can't extend default LV?

My recent install of Ubuntu Server 18.04 appears to have created an LV mounted on / that is only 4GB. However the volume group is 160GB as expected. But I get an insufficient disk space message when ...
3
votes
1answer
62 views

Corrupted LVM Recovery

I had (paying attention to the past time here) a Centos 6.7 host who was migrated using Vmware conversion tool from a HyperV cluster. Therefore, the final configuration of its disks was: / dev / sda1 ...
0
votes
0answers
11 views

How much RAM is suggested for 150TB archive server [duplicate]

I'm building a server that will be required to store about 150TB of data that will periodically be dumped and retrieved, but not in a constant availability way like a NAS - we'll probably turn it off ...
0
votes
1answer
88 views

LV Path is Missing

I have a pacemaker HA cluster with two nodes. Those two nodes use iSCSI disks and they can successfully connect iSCSI disks. However, recently an unknown error happened on my cluster: all the nodes ...
0
votes
1answer
65 views

Duplicate partitions (and lvm pv) when using hardware RAID

OS: Debian stretch, motherboard: ASUS H87I-PLUS. I am trying to setup bootable hardware RAID1. Through motherboard menu I've created array of two drives (sdd and sde). This array is recognized by ...
0
votes
0answers
18 views

creating LV in clustered LVM gives 'Error locking on node' after pvresize

We have two CentOS 6.7 hosts that both use cLVM to access LVs on the same iSCSI-LUN (no LV is accessed by both hosts at the same time). The exact stack is [iSCSI-LUN] - [multipath] - [cLVM] - [vg ...
0
votes
1answer
369 views

pvcreate: device /dev/sda3 not found (or ignored by filtering)

've read tons of threads about this problem, but nothing seems to work for me. I'm trying to expand the LVM volume of virtual machine located on our vSphere. This VM runs Debian 9. I already made the ...
2
votes
1answer
81 views

LVM or not for KVM storage?

Is there any issue with using LVM for your host server's storage pools or raw devices that are used by KVM guest? Eg. say I want to add storage to the /home directory on my KVM guest. I have a Volume ...
1
vote
1answer
210 views

How can i recover deleted pve/data correctly

I accidentally deleted pve/data thin volume in proxmox. Very next second i realised this and i tried to recovering it as below lvremove /dev/pve/data ls -lrt /etc/lvm/archive head /etc/lvm/archive/...
0
votes
0answers
56 views

Cannot mount LVM logical volume to same mountpoint previously used for mounting a GPT partition

[UPDATE] As this server is not yet in production, I had the chance to reboot it. Reboot cleared the issue. However, the issue remains if one cannot afford to disrupt the service. I am reorganizing ...
0
votes
1answer
334 views

How to recover a cached LVM with cache on ram-disk?

In this article there is a nice recipe for how to use a RAM-disk as cache-device for a classical LVM volume. Assumed you have an elder disk, lots of RAM and no SSD, you can boost disk performance to ...
0
votes
4answers
76 views

Raid 1 with 3 disks of different sizes

I'm new to this site. I am currently configuring a server, which has these ssd disks: 1X1TB SSD NVme 2X512GB SSD NVMe Now I would like to create a raid 1 between these disks, in which I would always ...
0
votes
1answer
57 views

Unalloacte space on RAID1 over LVM

I ran into situation where i resized vg and pv under raid1 and also md0 itself, but gparted still se whole disk as locked, i cant use free space i made to build new RAID partition, not sure why. My ...
0
votes
1answer
45 views

LVM commands - copying LV between two disks

id like to simply copy LV from one disk to another but as simply as it sounds, its becoming really abstract for me after lots of googling, to come up with the correct process. So i think i need a push ...
0
votes
0answers
14 views

Rearanging LVM RAID1 system - moving vg.system.cache

I have an issue where i need to split RAID1 setting with root/cache - to RAID1 over root and RAID0 over cache. I cant format the system. NAME MAJ:MIN RM SIZE RO TYPE ...
0
votes
1answer
47 views

(Why) Does lvmraid6 need 5 drives?

I'm investigating using LVMRAID instead of MD+LVM. In my case, I'm looking at a RAID6. As expected, the docs say you need N+1 devices for RAID5, and a minimum of 3 drives. The docs say for RAID 6 ...
0
votes
0answers
77 views

Is there a way to make VM snapshots in PROXMOX LVM storage

Acording to official docs https://pve.proxmox.com/wiki/Storage:_LVM the LVM storage option does not support VM snapshots. You need to setup Thin LVM for snapshots to work. My question is if there's a ...
0
votes
0answers
20 views

Can't activate a lvm raid6 with one missing device

I am testing lvm raid6 (stock versions in Ubuntu 18.04) and for that I created five fake pvs (files exposed through losetup). I proceeded to create the raid6 vg and an ext4 filesystem on a single lv ...
2
votes
1answer
385 views

LVM: One or more devices used as PVs in VG have changed sizes

I recently installed LVM on Ubuntu 18.04 running on a physical workstation, and then I created my first LV. After first reboot I found a problem, as I cannot activate it anymore. I noticed this error:...
0
votes
0answers
133 views

I have configured Samba file server on Centos 7 but Previous version shadow copy not available for windows 7 client

I have configured Samba file server on Centos 7 and configured vfs objects = shadow_copy2 using LVM snapshot so that windows 7 client can access Previous version shadow copy same like MS windows.But I ...
0
votes
2answers
90 views

Kill a process inside an lvm snapshot

In my XEN host, I have a snapshot that cannot be removed with lvremove $ lvremove /dev/vg0/snap-tmp-vm06.docker-disk -fdv DEGRADED MODE. Incomplete RAID LVs will be processed. Using logical volume(s) ...
2
votes
0answers
94 views

In linux, determine if a block device is being used

I'm doing automation that will reformat a new disk and mount it. I want my automation to check and make sure the disk isn't in use so I don't break something that was already running (as happened to ...
0
votes
1answer
27 views

I can not snap a pair of LVMs associated with a KVM

I use a snaphost for backup my machines based on KVM But on one server I can`t make snapshots of one machine Get a error, I dont how to repair the problem. Using default stripesize 64.00 KiB. ...
1
vote
2answers
189 views

What is ideal directory for kafka messages

The default value of logs.dir=/tmp/kafka-logsin server.properties. Usually /tmp is avoided from keeping any important files and we are storing messages and offsets! Any particular reason why one may ...
1
vote
1answer
271 views

Proxmox doesn't recongnize increased swap space

So I tried to increase the swap LV from 8GB to 16GB, but Proxmox web panel doesn't seem to see the change. The LVM increased the space, but Proxmox haven't changed it's panel. Originally lvdisplay ...
0
votes
0answers
177 views

How to recover [unknown] disk from LVM2 on Proxmox

On my server, i have 5 disks. The disks are configured as follows: Raid 1 (Disk 1 + Disk 2) [320gb each] - Proxmox installed Raid 1 (Disk 3 + Disk 4) [1tb each] + HDD (Disk 5) [1tb] = totalizing 1....
0
votes
1answer
27 views

Remove part for an lvm mirror

I am trying to remove some drives from an LVM stripe. The kernel wont free up the file system but I managed to move all of the activity off of it so I decided I would mirror the data to a network ...
0
votes
0answers
24 views

Got only half the space of RAID10 LV with 4 PVs (similar to RAID1 cause LV shows it has 4 'Mirrored volumes')

I'm trying to build an raid10 lv for root fs. I used these commands: lvcreate --type raid10 -m 1 -i 2 -l 24576 pve # created lvol1 lvcreate --type raid10 -m 1 -i 2 -l 8 pve # created lvol2 lvcreate --...
2
votes
4answers
106 views

RAID6 failed instantly and switched to RAID0 - any chance to rescue?

I´m running a server ob Ubuntu 16.04. Data storage on this system uses a lvm on top of a software raid 6 whereas the os is installed on a separate raid 1 with lvm. The raid 6 is built up of 7 ...
0
votes
1answer
30 views

Removing physical volumes from a mounted logical volume

I have a virtual machine with two disks, sda1 and sda2. I have a volume group (vg_linux) with these two physical volumes and I want to remove sda2 from this volume group. However, on this volume group,...
0
votes
1answer
77 views

LVM - Should I encrypt physical volumes or logical volume?

I have two hard drives and I'm about to build a backup system. Now I'm wondering which solution would be the best. I encrypt disk1 and disk2. After mounting these I create a volume group and logical ...
1
vote
1answer
54 views

Re-allocate space from one Volume Group to another Volume Group - Linux CentOs

I have a dedicated server provided to me by 1and1. I started migrating websites to the server only to realise that I am running out of disk space. I had to clear my backups in order to continue ...
0
votes
1answer
24 views

Xenserver and linux lvm

I need help regarding linux lvm on xenserver. The linux vm have 3 disk assigned from xenserver. After power outages the one disk get corrupted and linux vm wont boot. Lvm report that cant find disk. ...
-1
votes
1answer
61 views

Mount options for a deep-learning workstation [closed]

So, my university advisor assigned me to setup a deep-learning workstation in our laboratory to do some research. But it's my first contact with linux and system administration and I'm feeling a bit ...