HP Disk System 2300 HP StorageWorks Disk System 2300 User's Guide(This manual - Page 112

To Replace Attached Physical Volumes, configuration backup file used by the vgcfgrestore command is

Page 112 highlights

To Replace Attached Physical Volumes Use the following commands to reduce any logical volumes that have mirror copies on the faulty disk and to recreate the mirror extents once the disk has been replaced. Commands to recover from a host failure are included with most steps. Note The way that mirrors span several disks may not be duplicated exactly. For cases where the original mirror layout must be preserved, consider deactivating the volume group with the vgchange command and using the procedure for replacing unattached physical volumes. 1 Enter the following command to reduce the mirror: # lvreduce -m -A n For example, to reduce a two-way mirror: # lvreduce -m 0 -A n /dev/vg00/lvol4 /dev/dsk/c2t4d0 or, for a three-way mirror: # lvreduce -m 1 -A n /dev/vg00/lvol5 /dev/dsk/c2t4d0 If the host fails during this step, execute an lvdisplay command to determine if the lvreduce command succeeded. If the command did not succeed, execute the command again. Perform any other lvreduce commands that were not executed before the system failed. Then proceed. Note An important effect of the lvreduce command is that the LVM configuration backup file used by the vgcfgrestore command is updated. If this replacement procedure is being performed now on another host system and there is no need to execute any lvreduce commands, then the configuration file is not updated. The LVM configuration is correct on the physical volumes, however, so the configuration file can be updated with the vgcfbackup command. 2 Physically replace the disk (see page 115). 3 Execute ioscan to verify that the new disk drive is accessible and a proper replacement. 4 Enter the following command to restore the LVM configuration/headers to the replaced disks from the backup of the LVM configuration: # vgcfgrestore -n 112 Removal and Replacement

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158

112
Removal and Replacement
To Replace Attached Physical Volumes
Use the following commands to reduce any logical volumes that have mirror
copies on the faulty disk and to recreate the mirror extents once the disk has been
replaced. Commands to recover from a host failure are included with most steps.
Note
The way that mirrors span several disks may not be duplicated
exactly. For cases where the original mirror layout must be
preserved, consider deactivating the volume group with the
vgchange command and using the procedure for replacing
unattached physical volumes.
1
Enter the following command to reduce the mirror:
# lvreduce -m <
mirror_copies
> -A n <LV name> <physical volume path>
For example, to reduce a two-way mirror:
# lvreduce -m 0 -A n /dev/vg00/lvol4
/dev/dsk/c2t4d0
or, for a three-way mirror:
# lvreduce -m 1 -A n /dev/vg00/lvol5
/dev/dsk/c2t4d0
If the host fails during this step, execute an lvdisplay command to determine
if the lvreduce command succeeded. If the command did not succeed, execute
the command again. Perform any other lvreduce commands that were not
executed before the system failed. Then proceed.
Note
An important effect of the lvreduce command is that the LVM
configuration backup file used by the vgcfgrestore command is
updated. If this replacement procedure is being performed now on
another host system and there is no need to execute any lvreduce
commands, then the configuration file is not updated. The LVM
configuration is correct on the physical volumes, however, so the
configuration file can be updated with the vgcfbackup command.
2
Physically replace the disk (see page 115).
3
Execute ioscan to verify that the new disk drive is accessible and a proper
replacement.
4
Enter the following command to restore the LVM configuration/headers to
the replaced disks from the backup of the LVM configuration:
# vgcfgrestore -n <volume group name> <physical volume path>