Contents
7
no
vd
ocx
(e
n)
6 Ap
ril 20
07
6.3.1
Adding Mirrors to a RAID 1 Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.3.2
Adding Segments to a RAID 4 or 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
6.4
Adding or Removing a Spare Disk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
6.4.1
Do You Need a Spare Disk? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
6.4.2
Adding a Spare Disk When You Create the RAID . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.4.3
Adding a Spare Disk to an Existing RAID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.4.4
Removing a Spare Disk from a RAID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.5
Managing Disk Failure and RAID Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.5.1
Understanding the Disk Failure and RAID Recovery . . . . . . . . . . . . . . . . . . . . . . . . 71
6.5.2
Identifying the Failed Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
6.5.3
Replacing a Failed Device with a Spare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
6.5.4
Removing the Failed Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
6.6
Monitoring Status for a RAID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
6.6.1
Monitoring Status with EVMSGUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
6.6.2
Monitoring Status with /proc/mdstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
6.6.3
Monitoring Status with mdadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
6.6.4
Monitoring a Remirror or Reconstruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
6.6.5
Configuring mdadm to Send an E-Mail Alert for RAID Events . . . . . . . . . . . . . . . . . 77
6.7
Deleting a Software RAID and Its Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7 Managing Software RAIDs 6 and 10 with mdadm
81
7.1
Creating a RAID 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.1.1
Understanding RAID 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.1.2
Creating a RAID 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.2
Creating Nested RAID 10 Devices with mdadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.2.1
Understanding Nested RAID Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.2.2
Creating Nested RAID 10 (1+0) with mdadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.2.3
Creating Nested RAID 10 (0+1) with mdadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
7.3
Creating a Complex RAID 10 with mdadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
7.3.1
Understanding the mdadm RAID10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
7.3.2
Creating a RAID10 with mdadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
7.4
Creating a Degraded RAID Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
8 Resizing Software RAID Arrays with mdadm
91
8.1
Understanding the Resizing Process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
8.1.1
Guidelines for Resizing a Software RAID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
8.1.2
Overview of Tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
8.2
Increasing the Size of a Software RAID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
8.2.1
Increasing the Size of Component Partitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
8.2.2
Increasing the Size of the RAID Array. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
8.2.3
Increasing the Size of the File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
8.3
Decreasing the Size of a Software RAID. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.3.1
Decreasing the Size of the File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.3.2
Decreasing the Size of Component Partitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
8.3.3
Decreasing the Size of the RAID Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
9 Installing and Managing DRBD Services
101
9.1
Understanding DRBD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
9.2
Installing DRBD Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
9.3
Configuring the DRBD Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.4
Testing the DRBD Service. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
9.5
Troubleshooting DRBD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
9.5.1
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Summary of Contents for LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE 7-2007
Page 4: ...novdocx en 6 April 2007...
Page 30: ...30 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 42: ...42 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 58: ...58 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 90: ...90 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 100: ...100 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 106: ...106 SLES 10 Storage Administration Guide novdocx en 6 April 2007...