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.

448 questions
3
votes
2 answers

LVM Recovery with a failing disk

I have an LVM setup on Debian 7.8 with kernel 3.2.65-1+deb7u1 running OpenMediaVault The LV is made up from 4 disks Disk /dev/sdb: 4000.8 GB, 4000787030016 bytes Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes Disk /dev/sdd: 2000.4 GB, 2000398934016…
CJSewell
  • 131
2
votes
0 answers

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 Sector size (logical/physical): 512 bytes / 512…
Shade
  • 414
2
votes
1 answer

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. Find below the vgdisplay output and df…
2
votes
2 answers

How logical volumes larger than a single disk are stored into multiple disks?

I have one LV that spans across 2 phisical volumes, 2TiB each, for a total size of ~4Tib. Is LVM going to first fill one disk and then start with the second one? In other words, supposing to take one of the 2 disks and attach it to another machine,…
Ignazio
  • 123
  • 1
  • 5
1
vote
0 answers

Is it possible, or practical to "Nest" LVM VGs?

Situation is: 1x1TB 7200 HDD; 1x0.5TB 7200 HDD; 1x1TB 5400 HDD; 1x0.5TB 5400 HDD. All interconnects SATA3.0+ Desired outcome... Join the 2x 500GB HDDs to form 1TB; Present that to LVM as 3x1TB volumes for striping. How would LVM handle striping with…
1
vote
1 answer

I/O error on dm-3 but I am not using LVM

I've got these errors, but I don't know what partition/disk corresponds to dm3 or even dm-3-8. [22083.266714] Buffer I/O error on dev dm-3, logical block 33062912, lost sync page write [22083.266727] JBD2: Error -5 detected when updating…
1
vote
1 answer

How to create a LVM and ext4 file system using lvcreate command only

How to create a LVM and ext4 file system using lvcreate command only. is there any swich in lvcreate command to include the file system type?
skv
  • 11
  • 2
1
vote
1 answer

mounting lvm based vmware disk file on another VM

I had a VMWARE based VM which is crashed due to uninstallation of some important libraries. Now I want to mount its vmdk files as disk on another VM but it is getting failed. The Disk is visible in fdisk. Disk /dev/sdd: 32.2 GB, 32212254720 bytes 64…
1
vote
1 answer

deactivate and shrink LV /tmp

How can I deactivate and shrink the Logical volume mounted as /tmp safely ? lvm> lvreduce --size 30GB /dev/vg_server4/LogVolTmp WARNING: Reducing active and open logical volume to 30.00 GiB THIS MAY DESTROY YOUR DATA (filesystem etc.) Do you really…
0
votes
1 answer

Multiple LVM and Multiple hard drives.. again

I have a little (and might sound stupid) question.. but google didn't got me to a solid answer in all the weekend. I am planning to make a file/webserver server for home/development use.. And I want to use LVM to be able to add storage space in the…
KnF
  • 9
0
votes
1 answer

LVM default created volumes: Are they standardized?

I've noticed that in my LVM setup I have lv_root lv_home lv_swap Are these created by LVM for me on boot? I haven't found any documentation on how these volumes are created.
0
votes
1 answer

LVM snapshot size

I currently have 2 volume's: [root@compute4 /]# lvscan ACTIVE '/dev/vps/vm108_img' [30.00 GB] inherit ACTIVE '/dev/vps/vm109_img' [90.00 GB] inherit Now, I use the LVM snapshot function to create backups. My quesion is,…
Devator
  • 1,055
0
votes
1 answer

How do I add a previously removed physical volume back to a volume group?

After removing a physical volume from a machine, and returning the physical volume back to the machine, the physical volume is ignored and the following message appears: [root@emma ~]# pvscan WARNING: VG vg001 was previously updated while PV…