You are not logged in.

#1 2022-06-07 15:31:04

syto203
Member
Registered: 2022-06-07
Posts: 1

issue with a LVM restore

kernel: 5.15.44-1-lts

i created a snapshot of root before upgrading but i broke sth so i thought to restore the snapshot.

lvconvert --merge /dev/volgroup0/root-b4-upgrade-20220506

 
the thing is i also had other root snapshot that i didnt remove which had data at 100% so i thought to remove them and then i rebooted. turns out the upgrade upgraded my kernel and the restore deleted the modules and i lost all my drivers so i booted into liveusb and reinstalled the latest kernel and that fixed that.

the thing is now i wanted to create another snapshot of root but i get the error

"Snapshots of an origin that has a merging snapshot are not supported."

 
and now there is also another entry in `/dev/mapper` carrying the same name of my root with "-real" appended to it along with others with the same name as my aforementioned root snapshot.
 

[syto203@home-server ~]$ ls -ahl /dev/mapper/
    total 0
    drwxr-xr-x  2 root root     160 Jun  6 10:41 .
    drwxr-xr-x 19 root root    3.7K Jun  6 10:48 ..
    crw-------  1 root root 10, 236 Jun  6 10:42 control
    lrwxrwxrwx  1 root root       7 Jun  6 10:42 volgroup0-lv_home -> ../dm-4
    lrwxrwxrwx  1 root root       7 Jun  6 10:42 volgroup0-lv_root -> ../dm-2
    lrwxrwxrwx  1 root root       7 Jun  6 10:42 volgroup0-lv_root-real -> ../dm-0
    lrwxrwxrwx  1 root root       7 Jun  6 10:42 volgroup0-root--b4--upgrade--20220506 -> ../dm-3
    lrwxrwxrwx  1 root root       7 Jun  6 10:42 volgroup0-root--b4--upgrade--20220506-cow -> ../dm-1

are snapshots dependent on each other so by deleting a previous one before i restarted messed thing up? or was it because they reached 100%?
what happened and how can i fix it.

Edit:
it seems after a couple of restarts it completed the merge on its own. and i am able to create new snapshots now.
the question is now what happened that delayed the merge action (is it because of the slow PC) and do i clear the other remaining entities in `/dev/mapper` manually?
talking about:

volgroup0-root--b4--upgrade--20220506-cow
volgroup0-root--b4--upgrade--20220506
volgroup0-lv_root-real

since the active ones are

volgroup0-lv_home

and

volgroup0-lv_root

Last edited by syto203 (2022-06-07 20:49:02)

Offline

Board footer

Powered by FluxBB