DIY-Viking

If you want something done right…

Proxmox – Error activating LV

On restart after a power failure on my Proxmox Production Server, my 18TB HDD stayed offline. Log shows following error message:

pve pvestatd[1477]: activating LV 'sg18tb/sg18tb' failed:   Activation of logical volume sg18tb/sg18tb is prohibited while logical volume sg18tb/sg18tb_tmeta is active.

After a search on Google, I found an article on how to remedy this.

In the shell:

lsblk

Note the name of the logical volumes on the disk that refuses to come online.

In my case:

sg18tb-sg18tb_tmeta
sg18tb-sg18tb_tdata

Replace dash (-) in the name with a slash (/):

sg18tb-sg18tb_tmeta -> sg18tb/sg18tb_tmeta
sg18tb-sg18tb_tdata -> sg18tb/sg18tb_tdata

In the shell:

lvchange -an sg18tb/sg18tb_tmeta
lvchange -an sg18tb/sg18tb_tdata

Wait a couple of minutes, then enter:

vgchange -ay

The storage should now come online.
Reboot the VMs and LXCs that use the disk that was offline.

For a permanent fix one alternative is:

cd /etc/lvm/
cp lvm.conf lvm.conf.xtracopy
nano lvm.conf

Press CTRL-w and search (2 times) for thin_check_options. Uncomment the line, and change it to thin_check_options = [ “-q”, “–skip-mappings” ]

Save the file and exit. Type:

update-initramfs -u

Please leave a comment below to share your experience.

Hägar

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top
WordPress Appliance - Powered by TurnKey Linux