LVM thin pool is not activated
up vote
1
down vote
favorite
There was a thunderstorm, the server under Ubuntu 16.04 turned off despite UPS. On the server, the exchange folder (/srv/data
) is under samba. The /srv/data
mounts a thin volume vg /thinpool/data
from LVM.
After a thunderstorm, the volume group (vg) and the volume (data) in particular ceased to be activated. I tried lvconvert --repair vg /thinpool
did not help, tried using vgcfrestore
to restore the meta, the effect is the same. I need the data very much, there are no backups. I call the LVM guru!
lvchange -aey vg
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data vg Vwi---tz-- 950.00g thinpool
[lvol0_pmspare] vg ewi------- 16.00g
thinpool vg twi---tz-- 1.79t
[thinpool_tdata] vg Twi-a----- 1.79t
[thinpool_tmeta] vg ewi-ao---- 16.00g
lvchange -ay -v vg/data
Using logical volume(s) on command line.
Activating logical volume "data" exclusively.
activation/volume_list configuration setting defined: Checking the list to match vg/data
Loading vg-thinpool_tmeta table (252:0)
Suppressed vg-thinpool_tmeta (252:0) identical table reload.
Loading vg-thinpool_tdata table (252:1)
Suppressed vg-thinpool_tdata (252:1) identical table reload.
Executing: /usr/sbin/thin_check -q /dev/mapper/vg-thinpool_tmeta
Creating vg-thinpool-tpool
Loading vg-thinpool-tpool table (252:3)
Resuming vg-thinpool-tpool (252:3)
device-mapper: resume ioctl on (252:3) failed: Недопустимый аргумент
Unable to resume vg-thinpool-tpool (252:3)
Removing vg-thinpool-tpool (252:3)
lvconvert --repair vg/thinpool -v
activation/volume_list configuration setting defined: Checking the list to match vg/lvol1_pmspare
Creating vg-lvol1_pmspare
Loading vg-lvol1_pmspare table (252:2)
Resuming vg-lvol1_pmspare (252:2)
activation/volume_list configuration setting defined: Checking the list to match vg/thinpool_tmeta
Executing: /usr/sbin/thin_repair -i /dev/mapper/vg-thinpool_tmeta -o /dev/mapper/vg-lvol1_pmspare
truncating metadata device to 4161600 4k blocks
Piping: /usr/sbin/thin_dump /dev/mapper/vg-lvol1_pmspare
Transaction id 6466 from pool "vg/thinpool" does not match repaired transaction id 6468 from /dev/mapper/vg-lvol1_pmspare.
Removing vg-thinpool_tmeta (252:0)
Removing vg-lvol1_pmspare (252:2)
Preparing pool metadata spare volume for Volume group vg.
Archiving volume group "vg" metadata (seqno 13499).
Creating logical volume lvol2
Creating volume group backup "/etc/lvm/backup/vg" (seqno 13500).
Activating logical volume "lvol2" locally.
activation/volume_list configuration setting defined: Checking the list to match vg/lvol2
Creating vg-lvol2
Loading vg-lvol2 table (252:0)
Resuming vg-lvol2 (252:0)
Initializing 4,00 KiB of logical volume "vg/lvol2" with value 0.
Temporary logical volume "lvol2" created.
Removing vg-lvol2 (252:0)
Renaming lvol2 as pool metadata spare volume lvol2_pmspare.
WARNING: If everything works, remove "vg/thinpool_meta0".
WARNING: Use pvmove command to move "vg/thinpool_tmeta" on the best fitting PV.
16.04 server lvm
add a comment |
up vote
1
down vote
favorite
There was a thunderstorm, the server under Ubuntu 16.04 turned off despite UPS. On the server, the exchange folder (/srv/data
) is under samba. The /srv/data
mounts a thin volume vg /thinpool/data
from LVM.
After a thunderstorm, the volume group (vg) and the volume (data) in particular ceased to be activated. I tried lvconvert --repair vg /thinpool
did not help, tried using vgcfrestore
to restore the meta, the effect is the same. I need the data very much, there are no backups. I call the LVM guru!
lvchange -aey vg
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data vg Vwi---tz-- 950.00g thinpool
[lvol0_pmspare] vg ewi------- 16.00g
thinpool vg twi---tz-- 1.79t
[thinpool_tdata] vg Twi-a----- 1.79t
[thinpool_tmeta] vg ewi-ao---- 16.00g
lvchange -ay -v vg/data
Using logical volume(s) on command line.
Activating logical volume "data" exclusively.
activation/volume_list configuration setting defined: Checking the list to match vg/data
Loading vg-thinpool_tmeta table (252:0)
Suppressed vg-thinpool_tmeta (252:0) identical table reload.
Loading vg-thinpool_tdata table (252:1)
Suppressed vg-thinpool_tdata (252:1) identical table reload.
Executing: /usr/sbin/thin_check -q /dev/mapper/vg-thinpool_tmeta
Creating vg-thinpool-tpool
Loading vg-thinpool-tpool table (252:3)
Resuming vg-thinpool-tpool (252:3)
device-mapper: resume ioctl on (252:3) failed: Недопустимый аргумент
Unable to resume vg-thinpool-tpool (252:3)
Removing vg-thinpool-tpool (252:3)
lvconvert --repair vg/thinpool -v
activation/volume_list configuration setting defined: Checking the list to match vg/lvol1_pmspare
Creating vg-lvol1_pmspare
Loading vg-lvol1_pmspare table (252:2)
Resuming vg-lvol1_pmspare (252:2)
activation/volume_list configuration setting defined: Checking the list to match vg/thinpool_tmeta
Executing: /usr/sbin/thin_repair -i /dev/mapper/vg-thinpool_tmeta -o /dev/mapper/vg-lvol1_pmspare
truncating metadata device to 4161600 4k blocks
Piping: /usr/sbin/thin_dump /dev/mapper/vg-lvol1_pmspare
Transaction id 6466 from pool "vg/thinpool" does not match repaired transaction id 6468 from /dev/mapper/vg-lvol1_pmspare.
Removing vg-thinpool_tmeta (252:0)
Removing vg-lvol1_pmspare (252:2)
Preparing pool metadata spare volume for Volume group vg.
Archiving volume group "vg" metadata (seqno 13499).
Creating logical volume lvol2
Creating volume group backup "/etc/lvm/backup/vg" (seqno 13500).
Activating logical volume "lvol2" locally.
activation/volume_list configuration setting defined: Checking the list to match vg/lvol2
Creating vg-lvol2
Loading vg-lvol2 table (252:0)
Resuming vg-lvol2 (252:0)
Initializing 4,00 KiB of logical volume "vg/lvol2" with value 0.
Temporary logical volume "lvol2" created.
Removing vg-lvol2 (252:0)
Renaming lvol2 as pool metadata spare volume lvol2_pmspare.
WARNING: If everything works, remove "vg/thinpool_meta0".
WARNING: Use pvmove command to move "vg/thinpool_tmeta" on the best fitting PV.
16.04 server lvm
additional information: linux.org.ru/forum/admin/14364232 forum.ubuntu.ru/index.php?topic=300102.0
– Anton Sobolev
Aug 7 at 11:38
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
There was a thunderstorm, the server under Ubuntu 16.04 turned off despite UPS. On the server, the exchange folder (/srv/data
) is under samba. The /srv/data
mounts a thin volume vg /thinpool/data
from LVM.
After a thunderstorm, the volume group (vg) and the volume (data) in particular ceased to be activated. I tried lvconvert --repair vg /thinpool
did not help, tried using vgcfrestore
to restore the meta, the effect is the same. I need the data very much, there are no backups. I call the LVM guru!
lvchange -aey vg
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data vg Vwi---tz-- 950.00g thinpool
[lvol0_pmspare] vg ewi------- 16.00g
thinpool vg twi---tz-- 1.79t
[thinpool_tdata] vg Twi-a----- 1.79t
[thinpool_tmeta] vg ewi-ao---- 16.00g
lvchange -ay -v vg/data
Using logical volume(s) on command line.
Activating logical volume "data" exclusively.
activation/volume_list configuration setting defined: Checking the list to match vg/data
Loading vg-thinpool_tmeta table (252:0)
Suppressed vg-thinpool_tmeta (252:0) identical table reload.
Loading vg-thinpool_tdata table (252:1)
Suppressed vg-thinpool_tdata (252:1) identical table reload.
Executing: /usr/sbin/thin_check -q /dev/mapper/vg-thinpool_tmeta
Creating vg-thinpool-tpool
Loading vg-thinpool-tpool table (252:3)
Resuming vg-thinpool-tpool (252:3)
device-mapper: resume ioctl on (252:3) failed: Недопустимый аргумент
Unable to resume vg-thinpool-tpool (252:3)
Removing vg-thinpool-tpool (252:3)
lvconvert --repair vg/thinpool -v
activation/volume_list configuration setting defined: Checking the list to match vg/lvol1_pmspare
Creating vg-lvol1_pmspare
Loading vg-lvol1_pmspare table (252:2)
Resuming vg-lvol1_pmspare (252:2)
activation/volume_list configuration setting defined: Checking the list to match vg/thinpool_tmeta
Executing: /usr/sbin/thin_repair -i /dev/mapper/vg-thinpool_tmeta -o /dev/mapper/vg-lvol1_pmspare
truncating metadata device to 4161600 4k blocks
Piping: /usr/sbin/thin_dump /dev/mapper/vg-lvol1_pmspare
Transaction id 6466 from pool "vg/thinpool" does not match repaired transaction id 6468 from /dev/mapper/vg-lvol1_pmspare.
Removing vg-thinpool_tmeta (252:0)
Removing vg-lvol1_pmspare (252:2)
Preparing pool metadata spare volume for Volume group vg.
Archiving volume group "vg" metadata (seqno 13499).
Creating logical volume lvol2
Creating volume group backup "/etc/lvm/backup/vg" (seqno 13500).
Activating logical volume "lvol2" locally.
activation/volume_list configuration setting defined: Checking the list to match vg/lvol2
Creating vg-lvol2
Loading vg-lvol2 table (252:0)
Resuming vg-lvol2 (252:0)
Initializing 4,00 KiB of logical volume "vg/lvol2" with value 0.
Temporary logical volume "lvol2" created.
Removing vg-lvol2 (252:0)
Renaming lvol2 as pool metadata spare volume lvol2_pmspare.
WARNING: If everything works, remove "vg/thinpool_meta0".
WARNING: Use pvmove command to move "vg/thinpool_tmeta" on the best fitting PV.
16.04 server lvm
There was a thunderstorm, the server under Ubuntu 16.04 turned off despite UPS. On the server, the exchange folder (/srv/data
) is under samba. The /srv/data
mounts a thin volume vg /thinpool/data
from LVM.
After a thunderstorm, the volume group (vg) and the volume (data) in particular ceased to be activated. I tried lvconvert --repair vg /thinpool
did not help, tried using vgcfrestore
to restore the meta, the effect is the same. I need the data very much, there are no backups. I call the LVM guru!
lvchange -aey vg
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data vg Vwi---tz-- 950.00g thinpool
[lvol0_pmspare] vg ewi------- 16.00g
thinpool vg twi---tz-- 1.79t
[thinpool_tdata] vg Twi-a----- 1.79t
[thinpool_tmeta] vg ewi-ao---- 16.00g
lvchange -ay -v vg/data
Using logical volume(s) on command line.
Activating logical volume "data" exclusively.
activation/volume_list configuration setting defined: Checking the list to match vg/data
Loading vg-thinpool_tmeta table (252:0)
Suppressed vg-thinpool_tmeta (252:0) identical table reload.
Loading vg-thinpool_tdata table (252:1)
Suppressed vg-thinpool_tdata (252:1) identical table reload.
Executing: /usr/sbin/thin_check -q /dev/mapper/vg-thinpool_tmeta
Creating vg-thinpool-tpool
Loading vg-thinpool-tpool table (252:3)
Resuming vg-thinpool-tpool (252:3)
device-mapper: resume ioctl on (252:3) failed: Недопустимый аргумент
Unable to resume vg-thinpool-tpool (252:3)
Removing vg-thinpool-tpool (252:3)
lvconvert --repair vg/thinpool -v
activation/volume_list configuration setting defined: Checking the list to match vg/lvol1_pmspare
Creating vg-lvol1_pmspare
Loading vg-lvol1_pmspare table (252:2)
Resuming vg-lvol1_pmspare (252:2)
activation/volume_list configuration setting defined: Checking the list to match vg/thinpool_tmeta
Executing: /usr/sbin/thin_repair -i /dev/mapper/vg-thinpool_tmeta -o /dev/mapper/vg-lvol1_pmspare
truncating metadata device to 4161600 4k blocks
Piping: /usr/sbin/thin_dump /dev/mapper/vg-lvol1_pmspare
Transaction id 6466 from pool "vg/thinpool" does not match repaired transaction id 6468 from /dev/mapper/vg-lvol1_pmspare.
Removing vg-thinpool_tmeta (252:0)
Removing vg-lvol1_pmspare (252:2)
Preparing pool metadata spare volume for Volume group vg.
Archiving volume group "vg" metadata (seqno 13499).
Creating logical volume lvol2
Creating volume group backup "/etc/lvm/backup/vg" (seqno 13500).
Activating logical volume "lvol2" locally.
activation/volume_list configuration setting defined: Checking the list to match vg/lvol2
Creating vg-lvol2
Loading vg-lvol2 table (252:0)
Resuming vg-lvol2 (252:0)
Initializing 4,00 KiB of logical volume "vg/lvol2" with value 0.
Temporary logical volume "lvol2" created.
Removing vg-lvol2 (252:0)
Renaming lvol2 as pool metadata spare volume lvol2_pmspare.
WARNING: If everything works, remove "vg/thinpool_meta0".
WARNING: Use pvmove command to move "vg/thinpool_tmeta" on the best fitting PV.
16.04 server lvm
16.04 server lvm
edited Jul 26 at 9:05
damadam
1,009218
1,009218
asked Jul 26 at 4:43
Anton Sobolev
62
62
additional information: linux.org.ru/forum/admin/14364232 forum.ubuntu.ru/index.php?topic=300102.0
– Anton Sobolev
Aug 7 at 11:38
add a comment |
additional information: linux.org.ru/forum/admin/14364232 forum.ubuntu.ru/index.php?topic=300102.0
– Anton Sobolev
Aug 7 at 11:38
additional information: linux.org.ru/forum/admin/14364232 forum.ubuntu.ru/index.php?topic=300102.0
– Anton Sobolev
Aug 7 at 11:38
additional information: linux.org.ru/forum/admin/14364232 forum.ubuntu.ru/index.php?topic=300102.0
– Anton Sobolev
Aug 7 at 11:38
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Workaround for this is to shirk pool meta ( only when it is possible: You have free space in VG, and when meta will fit), e.g.:
thin_dump /dev/mapper/vg02-pool0_tmeta > lvm_meta_dum
lvcreate -n pool0meta2 -L 12G vg02
thin_restore -i lvm_meta_dump -o /dev/mapper/vg02-pool0meta2
lvconvert --thinpool vg02/pool0 --poolmetadata vg02/pool0meta2
See: Fix meta size.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1059559%2flvm-thin-pool-is-not-activated%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Workaround for this is to shirk pool meta ( only when it is possible: You have free space in VG, and when meta will fit), e.g.:
thin_dump /dev/mapper/vg02-pool0_tmeta > lvm_meta_dum
lvcreate -n pool0meta2 -L 12G vg02
thin_restore -i lvm_meta_dump -o /dev/mapper/vg02-pool0meta2
lvconvert --thinpool vg02/pool0 --poolmetadata vg02/pool0meta2
See: Fix meta size.
add a comment |
up vote
0
down vote
accepted
Workaround for this is to shirk pool meta ( only when it is possible: You have free space in VG, and when meta will fit), e.g.:
thin_dump /dev/mapper/vg02-pool0_tmeta > lvm_meta_dum
lvcreate -n pool0meta2 -L 12G vg02
thin_restore -i lvm_meta_dump -o /dev/mapper/vg02-pool0meta2
lvconvert --thinpool vg02/pool0 --poolmetadata vg02/pool0meta2
See: Fix meta size.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Workaround for this is to shirk pool meta ( only when it is possible: You have free space in VG, and when meta will fit), e.g.:
thin_dump /dev/mapper/vg02-pool0_tmeta > lvm_meta_dum
lvcreate -n pool0meta2 -L 12G vg02
thin_restore -i lvm_meta_dump -o /dev/mapper/vg02-pool0meta2
lvconvert --thinpool vg02/pool0 --poolmetadata vg02/pool0meta2
See: Fix meta size.
Workaround for this is to shirk pool meta ( only when it is possible: You have free space in VG, and when meta will fit), e.g.:
thin_dump /dev/mapper/vg02-pool0_tmeta > lvm_meta_dum
lvcreate -n pool0meta2 -L 12G vg02
thin_restore -i lvm_meta_dump -o /dev/mapper/vg02-pool0meta2
lvconvert --thinpool vg02/pool0 --poolmetadata vg02/pool0meta2
See: Fix meta size.
edited Dec 8 at 21:03
kenorb
4,27913749
4,27913749
answered Aug 8 at 10:43
Anton Sobolev
62
62
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1059559%2flvm-thin-pool-is-not-activated%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
additional information: linux.org.ru/forum/admin/14364232 forum.ubuntu.ru/index.php?topic=300102.0
– Anton Sobolev
Aug 7 at 11:38