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.

1504 questions
0
votes
1 answer

Best way to mirror a large drive onto two smaller ones

I have an 8.0 TB Drive which will soon start filling up with videos I have two spare 4.0 TB Drives The system is running Linux Mint 19 Tara and is my desktop system (Yes it's a big system able to support 6 HDD in total) What's the best way to…
0
votes
0 answers

terraform - shall one use simple disk or linux LVM?

Is there any drawback of using LVM disks in terraform managed virtual machines? Currently I come to the project where all disks are simple linux disks, but terraform is unable to resize them up without destroying them (data loss). And as everything…
Wojtas.Zet
  • 391
  • 1
  • 3
  • 8
0
votes
0 answers

How to reduce size of LVM partition and create another partition?

I have a standard parition and lvm partition on my disk /dev/sda [root@server1 ~]# fdisk -l Disk /dev/sda: 10 GiB, 10737418240 bytes, 20971520 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O…
meallhour
  • 111
  • 2
0
votes
0 answers

Extend mirrored LV onto one PV

Legend: Crummy homemade LVM Legend Mixed: Mixed LV I need to add space to an existing 1TB mirrored LV (2 1TB disks) with a new 2TB disk yielding 1+2=3TB. How do I do this? I can't move my data to another FS and recreate my LV as a single linear…
jkoop
  • 31
  • 7
0
votes
0 answers

Folder in Ubuntu Became a File and the other Show Question Mark in Owner/Group

I encountered a very weird issue, appreciate if someone could help. One of my folder stored in a LVM2 XFS filesystem (mdadm RAID6), silently became a file and a folder showing question mark on both owner and group. All the data on this filesystem…
teclinux
  • 39
  • 4
0
votes
0 answers

Centos 7 - Shrink size of LVM Partition

I have a Centos 7 VM which was built from an OVA template. I have it running under Virtualbox. Issue I have is the VM has a dynamic disk of 200G - but only 4 Gb used. I want to shrink the partition to 40Gb. EDIT. The file system is xfs Its an LVM…
Adam
  • 11
  • 2
0
votes
0 answers

Can't open /dev/sda1 exclusively. Mounted filesystem?

I'm aware that there are a lot of similar questions about this, I have tried following through the responses but nothing has helped. I'm more than happy to post more logs if needed. The end goal: Have three ssds (sda, sdb, sdd) all mounted as 1…
The Ref
  • 101
  • 1
  • 2
0
votes
2 answers

several error for pvcreate and lvcreate

I am getting the following error pvcreate /dev/mapper/mpathd Error reading device /dev/mapper/mpathd at 0 length 512. Error reading device /dev/mapper/mpathd at 0 length 4. Error reading device /dev/mapper/mpathd at 4096 length 4. Error…
Learner
  • 103
  • 3
0
votes
2 answers

How to extend hard to an LVM without disrupting current data in CentOS

We have a CentOS server that has 2TB of disk. When we got the server for "god knows why" the partitions were like so: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T 0 disk ├─sda1 8:1 0 2M 0 part…
Hossj
  • 101
  • 1
0
votes
0 answers

LVM not able to add free space to Logical Volume

--- Volume group --- VG Name BKMASTWS01-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 …
0
votes
1 answer

Which docker storage driver for new server with NVMe drives?

I am building new server for GitLab CI jobs. Currently we already have one home-made. It's using classic HDDs + SSDs for caching so I chose ZFS storage driver which is not performing optimally. New server will consist only of two NVMe SSDs so I…
0
votes
0 answers

Is free disk space in a LVM volume group required?

I installed Proxmox and experimenting around with it and noticed that it keeps some free space on the LVM volume group by default. I wonder why this is? Does LVM need this or something? because is was simply able to allocate the empty space to…
CodeNinja
  • 305
  • 1
  • 8
  • 18
0
votes
0 answers

How can I merge several logical volumes into a new logical volume on another disk online? Bonus curveball, all the lv's are /var folders

I have two virtual disks sda and sdb on an rhel7 VM. My /var and /var/log folders are both constrained by the sizes of their initial provisioned logical volumes. sda is partitioned into an xfs filesystem: /dev/sda1 mounted at /boot and a physical…
Tyler Clendenin
  • 197
  • 1
  • 1
  • 10
0
votes
4 answers

Linux LVM: Single or Multiple Harddisk Partitions?

I am about to add a second harddisk to my server for data storage and have decided to use LVM. My plan is to use one volume group with server logical volumes. Since the disk is new I need to partition it first. How many primary partitions should I…
jk04
0
votes
2 answers

Lost access to LVM cached volume

I don't normally ask for help with Linux, preferring to figure things out for myself, but this time I'm really stuck and I don't know where to turn for help. About a year ago, I added lvmcache to one of my LVs as an experiment. A few days ago I…
qris
  • 1,203
  • 12
  • 21