Seagate ST34572WC Spezifikationen Seite 13

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 36
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 12
5. Removing the Disk
If you have a copy of the data on the failing disk, or you can move the data to another disk, you can choose to
remove the disk from the system instead of replacing it.
Removing a Mirror Copy from a Disk
If you have a mirror copy of the data already, you can stop LVM from using the copy on the failing disk by
reducing the number of mirrors. To remove the mirror copy from a specific disk, use lvreduce, and specify the
disk from which to remove the mirror copy. For example:
# lvreduce -m 0 -A n /dev/vgname/lvname pvname (if you have a single mirror copy)
or
# lvreduce -m 1 -A n /dev/vgname/lvname pvname (if you have two mirror copies)
The –A n option is used to prevent the lvreduce command from performing an automatic vgcfgbackup
operation, which could hang while accessing a defective disk.
If you have only a single mirror copy and want to maintain redundancy, create a second mirror of the data on a
different, functional disk, subject to the mirroring guidelines mentioned in
Preparing for Disk Recovery, before you
run lvreduce.
If the disk was not available at boot time (pvdisplay failed) then the lvreduce command fails with an error
that it could not query the physical volume. You can still remove the mirror copy, but you must specify the physical
volume
key
rather than the name. You can get the key using lvdisplay with the –k option as follows:
# lvdisplay -v –k /dev/vg00/lvol1
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 0 00000 stale 1 00000 current
00001 0 00001 stale 1 00001 current
00002 0 00002 stale 1 00002 current
00003 0 00003 stale 1 00003 current
00004 0 00004 stale 1 00004 current
00005 0 00005 stale 1 00005 current
Compare this output with the output of lvdisplay without –k, which you did to check the mirror status. The
column that contained the failing disk (or ’???’) now holds the key. For this example, the key is 0. Use this key
with lvreduce as follows:
# lvreduce -m 0 -A n –k /dev/vgname/lvname key (if you have a single mirror copy)
or
# lvreduce -m 1 -A n –k /dev/vgname/lvname key (if you have two mirror copies)
Moving the Physical Extents to Another Disk
If the disk is marginal and you can still read from it, you can move the data onto another disk by moving the
physical extents onto another disk.
The pvmove command moves logical volumes or certain extents of a logical volume from one physical volume to
another. It is typically used to free up a disk—that is, to move all data from that physical volume so it can be
removed from the volume group. In its simplest invocation, you specify the disk to free up, and LVM moves all the
13
Seitenansicht 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 35 36

Kommentare zu diesen Handbüchern

Keine Kommentare