Article 56ARQ Struggling to remove bad HDD fromLVM array

Struggling to remove bad HDD fromLVM array

by
FrizzledOldButt
from LinuxQuestions.org on (#56ARQ)
I run a 12T LVM array on a Ubuntu 18.04 LTS server.

One 2T capacity HDD (/dev/sdg1) is about to fail and I'd like to replace it ASAP.

The array is at ~20% capacity, i.e. ~8T of space is available.

The array is also backed up.

The LVM array is unmounted (after reboot) and nothing should be accessing it.

I then

Code:# sudo pvmove /dev/sdg1which ran OK, followed by

Code:# sudo vgreduce vgpool /dev/sdg1It gives me

Quote:
Physical volume "/dev/sdg1" still in use
Can someone enlighten me as to where I'm screwing this up?

UPDATE - Given there was only about 2T data I removed the array and set it up again minus the bad HDD. However, I'd still like to know why vgreduce reported the "still in use" error.

Thankslatest?d=yIl2AUoC8zA latest?i=GQ1j9lChx0E:NTEy0E88Cx8:F7zBnMy latest?i=GQ1j9lChx0E:NTEy0E88Cx8:V_sGLiP latest?d=qj6IDK7rITs latest?i=GQ1j9lChx0E:NTEy0E88Cx8:gIN9vFwGQ1j9lChx0E
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments