Tag Archives: linux lvm

Seagate ST32000542AS 2TB Setup

A lot of ST32000542AS drives come with the CC34 firmware. Apparently it has various known problems, one of which is an annoying click (click of death). The first thing you’ll want to do is upgrade the firmware to CC35. A Link to the instructions is in the references section below.

Once that is done, the next step, if it exists, is removing HPA from the drive.
You’ll know it has HPA enabled by running hparm. HPA results in less capacity and so it’s not a good thing in an array.

We’ll be using Debian 6.0 (squeeze).

hparm -N /dev/sdb

Reduce / LV (ex. /dev/VolGroup00/LogVol00)

1. Boot to systemrescue cd
2. vgscan
3. vgdisplay
4. vgchange -ay VolGroup00
5. e2fsck -f /dev/VolGroup00/LogVol00
6. resize2fs /dev/VolGroup00/LogVol00 xxG
Note: “xxG” is the size in Gigabyte the FS is being reduced to.

7. Repeat step #5
8. lvreduce -LxxG /dev/VolGroup00/LogVol00
Note: “-LxxG” is the same value as xxG in step #6 in this case.

9. Repeat step #5
10. Remove CD and reboot
11. vgdisplay -v | less
12. vgs
13. lvs
14. Create new LV’s to re-use space