LVM in 16.04 cannot mount LVM Cached Volumes created in 15.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
I'm test driving Ubuntu Mate Beta 1 (from USB) on a machine that uses LVM caching. (I use some SSD to cache old hard drives). My LVM setup was created with Linux Mint Debian Edition - Betsy release.
The system cannot mount these cached volumes due to the following error reported by 'pvs':
ubuntu-
LV CacheArchive has invalid cache's feature flag.
LV CacheArchive is missing cache policy name.
Internal error: LV segments corrupted in CacheArchive.
LV CacheArchive has invalid cache's feature flag.
LV CacheArchive is missing cache policy name.
Internal error: LV segments corrupted in CacheArchive.
PV VG Fmt Attr PSize PFree
/dev/sda5 vga lvm2 a-- 80.00g 70.00g
/dev/sda6 vga lvm2 a-- 160.00g 50.00g
/dev/sdb1 vga lvm2 a-- 200.00g 50.00g
I did a bit of googling and found a similar report for upgrades from Fedora 21 to Fedora 23. See https:/
I'll annotate this bug with the LVM version from my existing Debian based configuration in a few minutes.
This is a show-stopper for me because I use LVM caching on both of my PCs. It's a great way to marry a 256 GB SSD with a 2 TB hard drive. I keep the OS and some key partitions on the SSD and then use the rest of the SSD to cache the hard drive.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lvm2 2.02.133-1ubuntu7
ProcVersionSign
Uname: Linux 4.4.0-7-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CasperVersion: 1.367
CurrentDesktop: MATE
Date: Sun Mar 13 12:48:41 2016
LiveMediaBuild: Ubuntu-MATE 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160224)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lvm2
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in lvm2 (Ubuntu): | |
importance: | Undecided → High |
Here is the package info for LVM2 on LDME Betsy:
dpkg-query -l lvm2 Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ====-== ======= ===-=== ======= ==-==== ======= ======= ======= ======= =
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii lvm2 2.02.111-2.2 amd64 Linux Logical Volume Manager
aptitude show lvm2 event1. 02.1 (>= 2:1.02.74),
libdevmapper1 .02.1 (>= 2:1.02.90), libreadline5 (>= 5.2), libudev1 (>= ng-tools
thin-provision ing-tools (< 0.3.2), thin-provisioni ng-tools (< 0.3.2) sources. redhat. com/lvm2/
Package: lvm2
State: installed
Automatically installed: no
Multi-Arch: foreign
Version: 2.02.111-2.2
Priority: optional
Section: admin
Maintainer: Debian LVM Team <email address hidden>
Architecture: amd64
Uncompressed Size: 1,663 k
Depends: libc6 (>= 2.15), libdevmapper-
183), init-system-helpers (>= 1.18~), lsb-base, dmsetup (> 2:1.02.47),
dmeventd (> 2:1.02.90), initscripts (>= 2.88dsf-13.3)
Suggests: thin-provisioni
Conflicts: lvm2
Breaks: initramfs-tools (< 0.99), initramfs-tools (< 0.99),
Provides: lvm2
Provided by: lvm2
Description: Linux Logical Volume Manager
This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM supports
enterprise level volume management of disk and disk subsystems by grouping
arbitrary disks into volume groups. The total capacity of volume groups can be
allocated to logical volumes, which are accessed as regular block devices.
Homepage: http://
Tags: admin::filesystem, interface: :commandline, role::program, scope::utility, ::ncurses
uitoolkit
Hmmm... I wonder whether thin-provisioni ng-tools was missing on the Ubuntu Xenial install ISO. Here's that package:
aptitude show thin-provisioni ng-tools ng-tools ng-tools
Package: thin-provisioni
State: installed
Automatically installed: no
Version: 0.3.2-1
Priority: optional
Section: admin
Maintainer: Debian LVM Team <email address hidden>
Architecture: amd64
Uncompressed Size: 17.1 M
Depends: libc6 (>= 2.14), libexpat1 (>= 2.0.1), libgcc1 (>= 1:4.1.1), libstdc++6
(>= 4.6)
Conflicts: thin-provisioni
Description: Tools for handling thinly provisioned device-mapper meta-data
This package contains tools to handle meta-data from the device-mapper thin
target. This target allows the use of a single backing store for multple
thinly provisioned volumes. Numerous snapshots can be taken from such volumes.
The tools can check the meta-data for consistency, repair damaged information
and dump or restore the meta-data in textual form.
I vaguely recall having to manually install that when I set up these LVM cache's.