Seagate ST34572WC Spezifikationen Seite 1

Stöbern Sie online oder laden Sie Spezifikationen nach Software Seagate ST34572WC herunter. Seagate ST34572WC Specifications [en] Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 67
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
1
When Good Disks Go Bad: Dealing with Disk Failures
Under LVM
Abstract .............................................................................................................................................. 3
Background ........................................................................................................................................ 3
1. Preparing for Disk Recovery .............................................................................................................. 4
Defining a Recovery Strategy............................................................................................................. 4
Using Hot-Swappable Disks ............................................................................................................... 4
Using Alternate Links (PVLinks) ........................................................................................................... 4
LVM Online Disk Replacement (LVM OLR) ........................................................................................... 5
Mirroring Critical Information, Especially the Root Volume Group .......................................................... 5
Creating Recovery Media ................................................................................................................. 6
Other Recommendations for Optimal System Recovery ......................................................................... 6
2. Recognizing a Failing Disk ................................................................................................................ 9
I/O Errors in the System Log.............................................................................................................. 9
Disk Failure Notification Messages from Diagnostics .......................................................................... 10
LVM Command Errors ..................................................................................................................... 10
3. Confirming Disk Failure .................................................................................................................. 12
4. Gathering Information About a Failing Disk ...................................................................................... 15
5. Removing the Disk ......................................................................................................................... 18
Removing a Mirror Copy from a Disk ............................................................................................... 18
Moving the Physical Extents to Another Disk ...................................................................................... 19
Removing the Disk from the Volume Group........................................................................................ 20
Replacing a LVM Disk in an HP Serviceguard Cluster Volume Group .................................................... 25
Disk Replacement Scenarios ............................................................................................................ 25
Disk Replacement Process Flowchart ................................................................................................. 28
Replacing a Mirrored Nonboot Disk ................................................................................................. 31
Replacing an Unmirrored Nonboot Disk............................................................................................ 33
Replacing a Mirrored Boot Disk ....................................................................................................... 36
Disk Replacement Flowchart ............................................................................................................ 39
Conclusion ........................................................................................................................................ 42
Appendix A: Using Device File Types ................................................................................................... 43
Appendix B: Device Special File Naming Model ................................................................................... 44
Seitenansicht 0
1 2 3 4 5 6 ... 66 67

Inhaltsverzeichnis

Seite 1 - Under LVM

1 When Good Disks Go Bad: Dealing with Disk Failures Under LVM Abstract ...

Seite 2

10 Disk Failure Notification Messages from Diagnostics If you have Event Monitoring Service (EMS) hardware monitors installed on your system, and yo

Seite 3 - Background

11 # vgdisplay -v vg vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t3d0": The specified path does not correspond to

Seite 4 - Using Hot-Swappable Disks

12 3. Confirming Disk Failure Once you suspect a disk has failed or is failing, make certain that the suspect disk is indeed failing. Replacing or re

Seite 5

13 5. If both ioscan and diskinfo succeed, the disk might still be failing. As a final test, try to read from the disk using the dd command. Depen

Seite 6 - Creating Recovery Media

14 For a version 2.x VG, enter: xd -j 0x21a4 -t uI -N 4 /dev/dsk/c0t3d0 In this example, this is a version 1.0 VG. # xd -j 0x2048 -t uI -N 4 /dev/

Seite 7

15 4. Gathering Information About a Failing Disk Once you know which disk is failing, you can decide how to deal with it. You can choose to remove

Seite 8

16 /dev/vg00/lvol2 512 512 /dev/vg00/lvol3 50 50 /dev/vg00/lvol4 50 50 /dev/vg00/l

Seite 9 - I/O Errors in the System Log

17 There might be an instance where you see that only the failed physical volume holds the current copy of a given extent (and all other mirror copi

Seite 10 - LVM Command Errors

18 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 d

Seite 11

19 In these situations where the disk was not available at boot time, or the disk has failed before volume group activation (pvdisplay failed), the l

Seite 12 - 3. Confirming Disk Failure

2 New Options to Specify the DSF Naming Model ... 44 Behavioral Differenc

Seite 13

20 You can select a particular target disk or disks, if desired. For example, to move all the physical extents from c0t5d0 to the physical volume c0t

Seite 14

21 groups were configured with only persistent device special files, there is no need to arrange them again. On releases prior to HP-UX 11i v3, you m

Seite 15

22 7. 6. Replacing the Disk (Releases Prior to 11i v3 or When LVM Volume Group is Configured with Only Legacy DSFs on 11i v3 or Later) If you decid

Seite 16

23 # fuser –ku /dev/vgname/lvname 4. Then try to unmount the file system again as follows: # umount /dev/vgname/lvname o If the logical vol

Seite 17

24 If the disk is hot-swappable, you can replace it without powering down the system. Otherwise, power down the system before replacing the disk. For

Seite 18 - 5. Removing the Disk

25 The vgchange command attaches all paths for all disks in the volume group, and automatically resumes recovering any unattached failed disks in the

Seite 19

26 Swap: lvol2 on: /dev/dsk/c0t5d0 Dump: lvol2 on: /dev/dsk/c0t5d0, 0 # pvdisplay –v /dev/dsk/c2t15d0 | more … --- Distributi

Seite 20

27 # umount /dev/vg01/lvol1 umount: cannot unmount /dump : Device busy # fuser -u /dev/vg01/lvol1 /dev/vg01/lvol1: 27815c(root) 27184c(root)

Seite 21

28 # newfs [options] /dev/vg01/rlvol1 # mount /dev/vg01/lvol1 /app # <restore the file system from backup> Disk Replacement Process Flowcha

Seite 22

29 StartIs Disk ReplacedCheck Disk is Okay Is Disk Okay ?Check Data on Disk (use fstyp(1M))Data on Disk ?Get the VG name to which the PV belongs toIs

Seite 23

3 Abstract This white paper discusses how to deal with disk failures under the HP-UX Logical Volume Manager (LVM). It is intended for system administ

Seite 24

30 Check Root DiskRoot Disk?YesIs Primary root mirrored?YesBoot from MirrorBCH>boot altISL>hpux -lqIgnite/UX Recovery Recover from a Recovery t

Seite 25 - Disk Replacement Scenarios

31 8. 7. Replacing the Disk (11i v3 release Onwards when the LVM Volume Group is Configured with Persistent DSFs) After you isolate a failed disk,

Seite 26

32 # scsimgr replace_wwid –D /dev/rdisk/disk14 This command lets the storage subsystem replace the old disk’s LUN World-Wide-Identifier (WWID) with

Seite 27

33 # vgchange -a y /dev/vgnn Note: The vgchange command with the -a y option can be run on a volume group that is deactivated or already activated. I

Seite 28

34 b. If fuser reports process IDs using the logical volume, use the ps command to map the list of process IDs to processes, and determine whether y

Seite 29

35 In this example, LUN instance 28 was created for the new disk, with LUN hardware path 64000/0xfa00/0x1c, device special files /dev/disk/disk28 and

Seite 30

36 o For raw volumes, restore the full raw volume using the utility that was used to create your backup. Then restart the application. o For file s

Seite 31 - 0/1/1/1.0x3.0x0

37 Note: On an HP 9000 server, the boot disk is not partitioned so the physical volume refers to the entire disk, not the HP-UX partition. Enter the

Seite 32

38 In this example, LUN instance 28 was created for the new disk, with LUN hardware path 64000/0xfa00/0x1c, device special files /dev/disk/disk28 and

Seite 33 - 0/1/1/1.0x3.0x0

39 the volume group that were replaced. Therefore, run vgchange only after all work has been completed on all disks and paths in the volume group, an

Seite 34

4 1. Preparing for Disk Recovery Forewarned is forearmed. Knowing that hard disks will fail eventually, you can take some precautionary measures t

Seite 35

40 StartIs Disk ReplacedCheck Disk is Okay Is Disk Okay ?Check Data on Disk (use fstyp(1M))Data on Disk ?Get the VG name to which the PV belongs toIs

Seite 36

41 Check Root DiskRoot Disk?YesIs Primary root mirrored?YesBoot from MirrorBCH>boot altISL>hpux -lqIgnite/UX Recovery Recover from a Recovery t

Seite 37

42 Conclusion In your role as system manager, you will encounter disk failures. LVM can lessen the impact of those disk failures, enabling you to con

Seite 38

43 Appendix A: Using Device File Types Prior to the HP-UX 11i v3 release, there were only legacy device special files. Starting with the HP-UX 11i v3

Seite 39 - Disk Replacement Flowchart

44 Appendix B: Device Special File Naming Model HP-UX 11i v3 introduces a new representation of mass storage devices called the agile view. In this r

Seite 40

45 vgimport –N Configure the volume group using persistent DSFs. You can only use this option together with the scan option, –s. In the absence of th

Seite 41

46 Appendix C: Volume Group Versions and LVM Configuration Files Volume Group Version With the March 2008 release of HP-UX 11i v3, LVM supports a new

Seite 42 - Conclusion

47 lvmtab, lvmtab_p LVM has a well known configuration file /etc/lvmtab. With the introduction of Version 2.x volume groups, LVM uses a new configu

Seite 43

48 Appendix D: Procedures This section contains details on some of the procedures described in earlier sections of this document. Mirroring the Root

Seite 44

49 contains two physical volumes, and one of them is not accessible, the system rejects to boot unless you disable the quorum check using the –lq opt

Seite 45

5 Starting with the HP-UX 11i v3 release, HP no longer requires or recommends that you configure LVM with alternate links. However, it is possible t

Seite 46 - Configuration Files

50 Mirroring the Root Volume on Integrity Servers The procedure to mirror the root disk on Integrity servers is similar to the procedure for PA-RISC

Seite 47

51 You now have the following device files for this disk: /dev/disk/disk75 The entire disk (block access) /dev/rdisk/disk75 The entire disk (chara

Seite 48 - Appendix D: Procedures

52 # echo “boot vmunix” > ./AUTO b. Copy the file from the current directory into the new disk EFI partition. Be sure to use the device file w

Seite 49

53 10. Specify the mirror disk as the alternate boot path in nonvolatile memory: # setboot –a 0/1/1/0.1.0 11. To add a line to /stand/bootconf for

Seite 50

54 Appendix E: LVM Error Messages This appendix lists some of the warning and error messages reported by LVM. For each message, the cause is listed,

Seite 51

55 Max PV 16 Cur PV 1 Act PV 1 Max PE per PV 4350

Seite 52

56 pvchange "a": Illegal option. Cause: LVM OLR is not installed. Recommended Action: Install the patches enabling LVM OLR, or u

Seite 53

57 overwritten with a command like dd or pvcreate. If the disk is shared between two systems, it is likely that one of the systems was not aware that

Seite 54 - LVM Command Error Messages

58 /dev/dsk/c40t0d4 (02) !VGID:35c8cf58 3f8df316 PVID:065f303f 3e63f003 /dev/dsk/c40t1d0 … In this example, note that the volume group ids (VG

Seite 55

59 vgdisplay vgdisplay: Couldn't query volume group "/dev/vg00". Possible error in the Volume Group minor number; Please check

Seite 56

6 # swlist -l fileset | grep -i mirror LVM.LVM-MIRROR-RUN B.11.23 LVM Mirror The process of mirroring is usually straightforward, and can be easily

Seite 57

60 Recommended Action: The volume group extent size and number of physical extents per disk are not dynamic. The only way to use the entire disk is

Seite 58

61 Appendix F: Moving a Root Disk to a New Disk or Another Disk Follow these steps to move root disk /dev/dsk/c1t1d1 (source disk) to disk /dev/dsk/

Seite 59

62 Appendix G: Recreating Volume Group Information There might be situations when the volume group directory, for example vgtest under /dev, is accid

Seite 60 - Syslog Error Messages

63 Appendix H: Disk Relocation and Recovery Using vgexport and vgimport Follow these steps to move a volume group /disks from one system (for example

Seite 61

64 using vgimport command, followed by configuring the LVM with legacy device special files as well using vgextend command. If you choose to use the

Seite 62

65 Appendix I: Splitting Mirrors to Perform Backups Make sure the database is not active before you split it. The following example uses /dev/vg02/lv

Seite 63

66 Appendix J: Moving an Existing Root Disk to a New Hardware Path Before you shut down the system, note the /etc/lvmtab contents, and note which dis

Seite 64

67 For more information To learn more about some of the LVM features, see the following documents on the HP documentation website: http://docs.hp.co

Seite 65

7 disks in any volume group leads to a more complex LVM configuration, which will be more difficult to recreate after a catastrophic failure. Finally

Seite 66 - Hardware Path

8 While this list of preparatory actions does not keep a disk from failing, it makes it easier for you to deal with failures when they occur.

Seite 67 - Call to Action

9 2. Recognizing a Failing Disk The guidelines in the previous section will not prevent disk failures on your system. Assuming you follow all the rec

Kommentare zu diesen Handbüchern

Keine Kommentare