Bug#749599: /sbin/lvm: lvconvert --type cache-pool ... complains: "WARNING: Unrecognised segment type cache-pool"
Wolfgang Weisselberg
g35fckt001 at sneakemail.com
Wed May 28 14:29:28 UTC 2014
Package: lvm2
Version: 2.02.106-1
Severity: normal
File: /sbin/lvm
Dear Maintainer,
* What led up to the situation?
testing out/playing with the new LVM cache features
* What exactly did you do (or not do) that was effective (or
ineffective)?
1. Created a new PV in /dev/sde1 on a "32GB" USB3 stick (/dev/sde)
using
# gparted /dev/sde
2. Create VG 'cache_vg':
# vgcreate cache_vg /dev/sde1
Volume group "cache_vg" successfully created
3. Create 2 LVs:
# lvcreate -n Cache_data -L 5G /dev/cache_vg
Logical volume "Cache_data" created
# lvcreate -n Cache_meta -L 8M /dev/cache_vg
Logical volume "Cache_meta" created
4. *trying* to convert the 2 LVs to a cache-pool. FAILS:
# lvconvert --type cache-pool --poolmetadata cache_vg/Cache_meta cache_vg/Cache_data
WARNING: Unrecognised segment type cache-pool
* What was the outcome of this action?
lvconvert tells me it doesn't know about "cache-pool".
* What outcome did you expect instead?
Given:
# lvconvert -h | grep -A 7 cache-pool
lvconvert --type cache-pool
[--cachemode CacheMode]
[--chunksize size]
[--poolmetadata CacheMetadataLogicalVolume[Path] |
[--poolmetadatasize size]
[--poolmetadataspare {y|n}]]
CacheDataLogicalVolume[Path]
I expected lvconvert to know 'cache-pool'.
Compiling from source, the test "shell/lvcreate-cache.sh" also
fails on this.
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lvm2 depends on:
ii dmsetup 2:1.02.85-1
ii init-system-helpers 1.18
ii initscripts 2.88dsf-53
ii libc6 2.18-7
ii libdevmapper-event1.02.1 2:1.02.85-1
ii libdevmapper1.02.1 2:1.02.85-1
ii libreadline5 5.2+dfsg-2
ii libudev1 204-8
ii lsb-base 4.1+Debian12
lvm2 recommends no packages.
Versions of packages lvm2 suggests:
pn thin-provisioning-tools <none>
-- Configuration Files:
/etc/lvm/lvm.conf changed: (lines starting with '\s*#' removed)
config {
checks = 1
abort_on_errors = 0
profile_dir = "/etc/lvm/profile"
}
devices {
dir = "/dev"
scan = [ "/dev" ]
obtain_device_list_from_udev = 1
preferred_names = [ ]
filter = [ "a/.*/" ]
cache_dir = "/run/lvm"
cache_file_prefix = ""
write_cache_state = 1
sysfs_scan = 1
multipath_component_detection = 1
md_component_detection = 1
md_chunk_alignment = 1
data_alignment_detection = 1
data_alignment = 0
data_alignment_offset_detection = 1
ignore_suspended_devices = 0
ignore_lvm_mirrors = 1
disable_after_error_count = 0
require_restorefile_with_uuid = 1
pv_min_size = 2048
issue_discards = 0
}
allocation {
maximise_cling = 1
use_blkid_wiping = 1
wipe_signatures_when_zeroing_new_lvs = 1
mirror_logs_require_separate_pvs = 0
cache_pool_metadata_require_separate_pvs = 0
thin_pool_metadata_require_separate_pvs = 0
}
log {
verbose = 0
silent = 0
syslog = 1
overwrite = 0
level = 0
indent = 1
command_names = 0
prefix = " "
debug_classes = [ "memory", "devices", "activation", "allocation",
"lvmetad", "metadata", "cache", "locking" ]
}
backup {
backup = 1
backup_dir = "/etc/lvm/backup"
archive = 1
archive_dir = "/etc/lvm/archive"
retain_min = 10
retain_days = 30
}
shell {
history_size = 1000
}
global {
umask = 077
test = 0
units = "h"
si_unit_consistency = 1
suffix = 1
activation = 1
proc = "/proc"
locking_type = 1
wait_for_locks = 1
fallback_to_clustered_locking = 1
fallback_to_local_locking = 1
locking_dir = "/run/lock/lvm"
prioritise_write_locks = 1
abort_on_internal_errors = 0
detect_internal_vg_cache_corruption = 0
metadata_read_only = 0
mirror_segtype_default = "raid1"
raid10_segtype_default = "raid10"
use_lvmetad = 0
}
activation {
checks = 0
udev_sync = 1
udev_rules = 1
verify_udev_operations = 0
retry_deactivation = 1
missing_stripe_filler = "error"
use_linear_target = 1
reserved_stack = 64
reserved_memory = 8192
process_priority = -18
raid_region_size = 512
readahead = "auto"
raid_fault_policy = "warn"
mirror_log_fault_policy = "allocate"
mirror_image_fault_policy = "remove"
snapshot_autoextend_threshold = 100
snapshot_autoextend_percent = 20
thin_pool_autoextend_threshold = 100
thin_pool_autoextend_percent = 20
use_mlockall = 0
monitoring = 1
polling_interval = 15
}
report {
}
metadata {
vgmetadatacopies = 200
}
dmeventd {
mirror_library = "libdevmapper-event-lvm2mirror.so"
snapshot_library = "libdevmapper-event-lvm2snapshot.so"
thin_library = "libdevmapper-event-lvm2thin.so"
}
-- no debconf information
More information about the pkg-lvm-maintainers
mailing list