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:
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.
Thanks


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 |
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.
Thanks