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

lvextend -m 1, dev/vg00/lvol4

Page 113 highlights

Removal and Replacement For example: # vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t4d0 If the host fails, repeat the step to ensure all configuration data is written to the new disk. Note 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 can be updated with the vgcfbackup command. 5 Enter the following command to attach the replaced disk to the active volume group: # vgchange -a y For example: # vgchange -a y /dev/vg00 6 Enter the lvextend command to transfer the mirrors onto the replaced disk. It will take time to copy all of the original data to the mirrored extents. The logical volumes are accessible to users' applications for two-way mirroring during this command. # lvextend -m physical volume path For example, for two-way mirroring: # lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t4d0 For three-way mirroring: # lvextend -m 2 /dev/vg00/lvol5 /dev/dsk/c2t4d0 If the host fails during step 6, execute an lvdisplay command to determine if the lvextend command was successful. If the command did not successfully execute, reissue the command. Perform any other lvextend commands that were not executed before the system failed. At this point, the system should be fully functioning. Removal and Replacement 113

  • 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

Removal and Replacement
113
Removal and Replacement
For example:
# vgcfgrestore -n /dev/vg00
/dev/rdsk/c2t4d0
If the host fails, repeat the step to ensure all configuration data is written to
the new disk.
Note
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 can be updated with the
vgcfbackup command.
5
Enter the following command to attach the replaced disk to the active volume
group:
# vgchange -a y <volume group name>
For example:
# vgchange -a y
/dev/vg00
6
Enter the lvextend command to transfer the mirrors onto the replaced disk. It
will take time to copy all of the original data to the mirrored extents. The
logical volumes are accessible to users’ applications for two-way mirroring
during this command.
# lvextend -m <
mirror_copies
> <LV name> physical volume path
For example, for two-way mirroring:
# lvextend -m 1
/dev/vg00/lvol4
/dev/dsk/c2t4d0
For three-way mirroring:
# lvextend -m 2 /dev/vg00/lvol5
/dev/dsk/c2t4d0
If the host fails during step 6, execute an lvdisplay command to determine if
the lvextend command was successful. If the command did not successfully
execute, reissue the command. Perform any other lvextend commands that
were not executed before the system failed.
At this point, the system should be fully functioning.