HP 200 HP StorageWorks XP Disk Array Configuration Guide for Linux XP24000, XP - Page 21

Configuring disk array devices, Partitioning the devices, Creating the file systems

Page 21 highlights

Configuring disk array devices Disks in the disk array are configured using the same procedure for configuring any new disk on the host. This includes the following procedures: 1. Partitioning the devices 2. Creating the file systems 3. Creating the mount directories 4. Creating the mount table 5. Verifying file system operation Creating scripts to configure all devices at once may save you considerable time. Partitioning the devices After the device parameters have been set, the next step is to set the partitions. To partition the devices: 1. Enter fdisk/dev/device_name. Example # fdisk/dev/sda 2. Select p to display the present partitions. 3. Select n to make a new partition. You can make up to four primary partitions or you can make one extended partition. The extended partition can be divided into a maximum of 11 logical partitions, which can be assigned partition numbers from 5 to 15. 4. Select w to write the partition information to disk and complete the fdisk command. 5. Other commands that you might want to use include: d to remove partitions q to stop a change 6. Repeat the above steps for each device. Creating the file systems The supported file system for Linux is ext2. Creating file systems with ext2 1. Enter mkfs -t ext2 /dev/device_name. Example # mkfs -t ext2 /dev/sdd XP Disk Array Configuration Guide for Linux 21

  • 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

Configuring disk array devices
Disks in the disk array are configured using the same procedure for configuring any new disk on the
host. This includes the following procedures:
1.
Partitioning the devices
2.
Creating the file systems
3.
Creating the mount directories
4.
Creating the mount table
5.
Verifying file system operation
Creating scripts to configure all devices at once may save you considerable time.
Partitioning the devices
After the device parameters have been set, the next step is to set the partitions. To partition the devices:
1.
Enter
fdisk/dev/
device_name
.
Example
# fdisk/dev/sda
2.
Select
p
to display the present partitions.
3.
Select
n
to make a new partition. You can make up to four primary partitions or you can make
one extended partition. The extended partition can be divided into a maximum of 11 logical
partitions, which can be assigned partition numbers from 5 to 15.
4.
Select
w
to write the partition information to disk and complete the
fdisk
command.
5.
Other commands that you might want to use include:
d
to remove partitions
q
to stop a change
6.
Repeat the above steps for each device.
Creating the file systems
The supported file system for Linux is
ext2
.
Creating file systems with ext2
1.
Enter
mkfs –t ext2 /dev/
device_name
.
Example
# mkfs –t ext2 /dev/sdd
XP Disk Array Configuration Guide for Linux
21