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
9
votes
1 answer

Getting files out of XFS with 64kb block size

I've been on a mission to recover files from one of my 2 perfectly working, non-corrupted, non-encrypted NAS drives that used to be in RAID 1. The NAS was Patriot Javelin S4, which (as I found from my research) uses Promise Fasttrack fake raid…
Max Chernyak
  • 650
  • 8
  • 21
9
votes
5 answers

Linux md vs. LVM performance

I am trying to tune my NAS, running openfiler, and wondering why I'm getting relatively poor read performance from 4 WD RE3 drives in RAID 5. EDIT: Please note I am talking about the buffered disk read speed not cached speeds EDIT: Changed…
Dean Smith
  • 1,270
  • 2
  • 11
  • 13
9
votes
2 answers

Are bcache and/or dm-cache considered stable for production in 2016?

I would like to use linux SSD caching (dm-cache or bcache) with Debian Jessie production servers. (kernel 3.16) My question: Are dm-cache and bcache modules reliables in linux 3.16 ? Do I need to upgrade my kernel to a more recent version ? I also…
sligor
  • 93
  • 1
  • 5
9
votes
1 answer

How to resize DRBD disk on LVM?

this is my drbd config resource mysql { protocol C; floating 10.100.101.1:7788 { device /dev/drbd0; disk /dev/VolGroup00/LogVol02; meta-disk internal; } floating 10.100.101.2:7788 { …
DmitrySemenov
  • 835
  • 2
  • 15
  • 27
9
votes
2 answers

What's the difference between "mirror" and "raid1" in LVM?

On the lvconvert(8) man page it says: --type SegmentType Used to convert a logical volume to another segment type or to explicitly state the desired RAID1 segment type ("mirror" or "raid1") when converting a linear logical…
Julian
  • 212
  • 2
  • 8
9
votes
3 answers

LVM: regenerate a UUID?

I have some virtual machines which were clones of the same original disk image, which contained some LVM volumes. When I clone these, I end up with multiple LVM volumes (albeit on different hosts) which have the same 'unique' ID. Is there any way…
kdt
  • 1,400
  • 3
  • 22
  • 34
9
votes
3 answers

LVM spanning over multiple disks: What disk is a file on? Can I lose a drive without total loss?

I have three 990GB partitions over three drives in my server. Using LVM, I can create one ~3TB partition for file storage. 1) How does the system determine what partition to use first? 2) Can I find what disk a file or folder is physically on? 3) If…
Luke has no name
  • 1,249
  • 1
  • 12
  • 14
8
votes
1 answer

Linux: ZFS analog of pvmove - how to move data off from vdev?

I need to expand disk capacity of the server. The pool was started with 1Tb disk, then it was expanded with 2Tb disk. There is more than 1Tb free space, i.e. all data will easily fit 2Tb part, but it is currently allocated on 1Tb disks. In reality,…
Nikita Kipriyanov
  • 10,947
  • 2
  • 24
  • 45
8
votes
1 answer

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 I try and expand the LV even though the group…
tomstephens89
  • 1,011
  • 1
  • 12
  • 24
8
votes
1 answer

What does the less than symbol in front of LVM volume size mean?

Input lvs Output LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home mainvg -wi-ao---- 10.00g root mainvg -wi-ao---- <40.00g swap swapvg -wi-ao---- 4.00g What does the less than symbol (<) in the root volume…
Ryan J
  • 355
  • 4
  • 11
8
votes
3 answers

How to specify sector size for LVM logical volume?

I'm creating logical volumes for export via targetcli (iSCSI). I'm using lvm's thin provisioned volumes, e.g. lvcreate -V 1T --thin -n vol_name storage/thin_pool Then I add the created logical volume into targetcli's iblock backstore. The…
velis
  • 233
  • 2
  • 10
8
votes
2 answers

Impact of using thinpool on LVM performance

Using LVM, what are the performance implications of using thinpool on an logical volume?
Tom Hale
  • 1,105
  • 1
  • 12
  • 24
8
votes
1 answer

LVM mirror attempt results in "Insufficient free space"

Attempting to add a disk to mirror an LVM volume on CentOS 7 always fails with "Insufficient free space: 1 extents needed, but only 0 available". Having searched for a solution, I have tried specifying disks, multiple logging options, adding 3rd log…
kermatt
  • 525
  • 2
  • 5
  • 12
8
votes
3 answers

Very high memory usage, but not claimed by any process?

While stress-testing LVM on one of our Debian servers, I came across this issue where memory would fill up a lot to the point where it would run the server out of memory, but no process would claim the memory. See…
SharkWipf
  • 361
  • 1
  • 3
  • 11
8
votes
2 answers

Used vgextend/lvextend to add addtional 8GB space but it is not reflected in df output

I have created an instance of ubuntu VM in VirtualBox. At the beginning I have only allocated 7GB for the storage and the VM has now run out of space. First I added another 8GB (/dev/sdb) to the VM via VirtualBox frontend. I then set up the…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96