Dynamically adding disks to a Linux partition
Virtual devices simplify hardware configuration on the iSeries™ server because they do not require you to add additional physical devices to the server in order to run Linux.
You can allocate up to 64 virtual disks to a Linux partition, with a maximum of twenty disks visible to Linux, depending on which distribution you use. Each disk supports up to 1000 GB of storage. Each virtual disk appears to Linux as a single physical unit. However, the associated space in the i5/OS® integrated file system is spread across all of the disk arms available on the iSeries server. This provides the benefits of RAID without the overhead of RAID support in the Linux kernel.
i5/OS provides the ability to dynamically add virtual disks to a Linux partition. You can allocate disk space in the integrated files system and make it available to Linux without restarting i5/OS or Linux. The Linux server administrator can also configure the newly allocated disk space and make it available, again without interrupting the server. To dynamically add virtual disks to a Linux partition, do the following:
- Create a disk drive using iSeries Navigator.
- Click Integrated Server Administration.
- Right-click the All Virtual Disks folder and click New Disk.
- In the Disk drive name field, specify a disk drive name.
- In the Description field, specify a description of this disk.
- If you want to copy data from another disk, select Initialize disk with data from another disk. Then specify the source disk to copy data from.
- In the Capacity field, specify the disk capacity.
- Click OK.
- Link a disk drive using iSeries Navigator.
- Click Integrated Server Administration > All Virtual Disks.
- Right-click an available disk drive and select Add Link.
- Select the server that you want to link the disk to.
- Select one of the available link types and the link sequence position.
- Select one of the available data access types.
- Click OK.
- Determine the device name of the new disk. As far as i5/OS is concerned, the space is available to the Linux partition. Now you need to run through a couple of steps within Linux to partition, format, and access the disk. The name depends on two factors:
- The distribution of Linux
- The number of disks currently allocated
For example, with the SUSE distribution with a single disk allocated, the first disk device is known as /dev/hda. The second disk (the newly allocated virtual disk) is known as /dev/hdb.
- Create partitions on the new disk with the fdisk command in Linux. The fdisk command is a standard Linux command and is the same for all distributions. You must have superuser (also known as root) privileges to execute this command.
The command responds with the following prompt: Command (m for help):
- From the command line, type fdisk /dev/hdb and press Enter.
- Type p (for print) at the prompt to display the current partition table for the disk. By default, a new virtual disk shows a single partition formatted as FAT16. For example,
Disk /dev/hdb: 64 heads, 32 sectors, 200 cylinders Units = cylinders of 2048 * 512 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 199 203760 6 FAT16- Delete the partition. The FAT16 partition is not required. You need to delete the current partition and then create a new one.
The fdisk command responds with the following prompt: Partition number (1-4):
- To delete the partition, Type d at the command prompt.
- Enter the partition number (in this case, 1), and press Enter. The fdisk prompt returns a message indicating that the deletion was successful.
- Create a new partition.