HP Hitachi Dynamic Link Manager Software User Manual
Page 265
3. Creating an HDLM Environment
241
The following example shows how to execute the
fdisk
command to change the
disk partition type to
83
:
# fdisk /dev/sddlmaa
Command (m for help): p
Disk /dev/sddlmaa: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes
Device Boot Start End Blocks Id System
/dev/sddlmaa1 1 1018 5238597 fd Linux raid
autodetect
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83
Changed system type of partition 1 to 83 (Linux)
Command (m for help): p
Disk /dev/sddlmaa: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes
Device Boot Start End Blocks Id System
/dev/sddlmaa1 1 1018 5238597 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Also perform the above operation for
/dev/sddlmab
.
16. Execute the following command to activate the md device:
# mdadm -As /dev/md0
mdadm: /dev/md0 has been started with 2 drives.
17. Make sure that the md device has been activated.
In the following example, RAID1 (mirroring) is used for the md device:
# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sddlmaa1[0] sddlmab1[1]