Weiß jemand, wie eine tiered Volumegroup auf eine Standard Volumegroup reduziert werden kann?
Anbei die Metadaten der besagten VG, möchte gerne via cmdline das tiering Device pv0 entfernen, da die QNAP diese Volumegroup nicht mehr im GUI erkennt.
Code
# Generated by LVM2 version 2.02.138(2)-git (2015-12-14): Tue Jul 7 16:53:40 2020
contents = "Text Format Volume Group"
version = 1
description = "vgcfgbackup vg1 -f vg1.txt"
creation_host = "QNAP1282T" # Linux QNAP1282T 4.14.24-qnap #1 SMP Tue May 19 14:57:14 CST 2020 x86_64
creation_time = 1594133620 # Tue Jul 7 16:53:40 2020
vg1 {
id = "XsINvL-nrjn-lkxJ-kYsc-BOeX-wm5C-p5Ybpc"
seqno = 569
format = "lvm2" # informational
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
tags = ["PV:DRBD", "snap_reserved:0", "snap_reserved_bytes:0", "snap_reserved_enable:0", "cacheVersion:2"]
extent_size = 8192 # 4 Megabytes
max_lv = 0
max_pv = 0
metadata_copies = 0
physical_volumes {
pv0 {
id = "nefdcd-PGQp-Mp2B-B348-XLiF-bbsW-PDNp2c"
device = "/dev/drbd1" # Hint only
status = ["ALLOCATABLE"]
flags = []
tags = ["over_provisioning:5"]
dev_size = 1881466808 # 897.153 Gigabytes
pe_start = 2048
pe_count = 229670 # 897.148 Gigabytes
}
pv1 {
id = "ivXekV-tPz7-VvQz-d2Uk-10Mn-qtu1-KaHsiv"
device = "/dev/drbd3" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 58538881976 # 27.2593 Terabytes
pe_start = 2048
pe_count = 7145859 # 27.2593 Terabytes
}
pv2 {
id = "Z06jFM-Pak5-derV-iapE-k0zf-Xc1n-mkeQ5A"
device = "/dev/drbd4" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 15588249528 # 7.25884 Terabytes
pe_start = 2048
pe_count = 1902862 # 7.25884 Terabytes
}
}
logical_volumes {
tp1 {
id = "El1ruj-jsbx-FY0J-LESS-K13c-9FdE-YQvkrn"
status = ["READ", "WRITE", "VISIBLE"]
flags = ["ERROR_WHEN_FULL"]
tags = ["tiering_enable=yes"]
creation_host = "NAS0A9734"
creation_time = 1575407966 # 2019-12-03 22:19:26 +0100
segment_count = 1
segment1 {
start_extent = 0
extent_count = 9223416 # 35.1845 Terabytes
type = "tier-thin-pool"
metadata = "tp1_tmeta"
tier_count = 3
tiers = [
"tp1_tierdata_0", 0,
"tp1_tierdata_1", 0,
"tp1_tierdata_2", 0
]
allocation_index = 0
bypass_off = 1
transaction_id = 0
chunk_size = 1024 # 512 Kilobytes
discards = "passdown"
}
}
tp1_meta0 {
id = "Ov5nRS-FzPQ-DnXe-hE27-MCdY-zGAr-cVj6oY"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "QNAP1282T"
creation_time = 1590421572 # 2020-05-25 17:46:12 +0200
segment_count = 1
segment1 {
start_extent = 0
extent_count = 16384 # 64 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
tp1_tierdata_0 {
id = "YYkDQV-sOZS-3l39-K9Wo-Y2MZ-2UEQ-RxRXRr"
status = ["READ", "WRITE"]
flags = []
creation_host = "NAS0A9734"
creation_time = 1575407966 # 2019-12-03 22:19:26 +0100
segment_count = 1
segment1 {
start_extent = 0
extent_count = 210990 # 824.18 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 18680
]
}
}
tp1_tierdata_1 {
id = "aPzc14-zZjD-9NCY-cme2-hfIM-3CW4-FICGu3"
status = ["READ", "WRITE"]
flags = []
creation_host = "NAS0A9734"
creation_time = 1575407966 # 2019-12-03 22:19:26 +0100
segment_count = 1
segment1 {
start_extent = 0
extent_count = 1 # 4 Megabytes
type = "zero"
}
}
tp1_tierdata_2 {
id = "7HjpNY-Cdtf-Tp87-PxZe-uN7L-cv9T-clHhOM"
status = ["READ", "WRITE"]
flags = []
creation_host = "NAS0A9734"
creation_time = 1575407966 # 2019-12-03 22:19:26 +0100
segment_count = 1
segment1 {
start_extent = 0
extent_count = 9013226 # 34.3827 Terabytes
type = "flashcache"
origin = "tp1_tierdata_2_fcorig"
cachegroup = "CG0"
load_dirty = 1
alloc_mappings = 0
on_demand = 1
enabled = 1
}
}
tp1_tierdata_2_fcorig {
id = "KUseyd-9AkD-iAqs-CzRn-BNil-tSDt-mxye1u"
status = ["READ", "WRITE"]
flags = []
creation_host = "NAS0A9734"
creation_time = 1575408044 # 2019-12-03 22:20:44 +0100
segment_count = 3
segment1 {
start_extent = 0
extent_count = 4728839 # 18.0391 Terabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv1", 35067
]
}
segment2 {
start_extent = 4728839
extent_count = 2381715 # 9.08552 Terabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv1", 4764144
]
}
segment3 {
start_extent = 7110554
extent_count = 1902672 # 7.25812 Terabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv2", 190
]
}
}
tp1_tmeta {
id = "NI328j-VhOJ-umGg-re2S-2SE3-KMXX-l8pul2"
status = ["READ", "WRITE"]
flags = []
creation_host = "QNAP1282T"
creation_time = 1591505947 # 2020-06-07 06:59:07 +0200
segment_count = 1
segment1 {
start_extent = 0
extent_count = 16384 # 64 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv1", 0
]
}
}
}
}
Alles anzeigen