Instructions for Disk Partitioning with Software RAID (RAID1) devices on ppc64el: 1) Initialize the partition table of the component devices 2) Create a PReP partition in one of the component devices 3) Configure the Software RAID device (RAID1) 4) Partition the Software RAID device (with either Manual or Guided partitioning) 5) (Guided partitioning only) Select the PReP partition in the component device, and select 'Done setting up the partition'. Example: Software RAID1 with 2 component devices and Guided partitioning with LVM --------------------------------------------------------------------------------- In the 'Partition disks' dialog: 1) Initialize the partition table in the component devices. Select each (unpartitioned) component device (press Enter), and confirm the dialog. 1a) Select 'sda': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ Guided partitioning │ │ Configure iSCSI volumes │ │ │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK │ │ SCSI1 (0,1,0) (sdb) - 34.4 GB QEMU QEMU HARDDISK │ │ │ │ Undo changes to partitions │ │ Finish partitioning and write changes to disk │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 1b) Select 'Yes': ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐ │ │ │ You have selected an entire device to partition. If you proceed with │ │ creating a new partition table on the device, then all current │ │ partitions will be removed. │ │ │ │ Note that you will be able to undo this operation later if you wish. │ │ │ │ Create new empty partition table on this device? │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────┘ 1c) Select 'sdb': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ Guided partitioning │ │ Configure iSCSI volumes │ │ │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK │ │ SCSI1 (0,1,0) (sdb) - 34.4 GB QEMU QEMU HARDDISK │ │ │ │ Undo changes to partitions │ │ Finish partitioning and write changes to disk │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 1d) Select 'Yes': ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐ │ │ │ You have selected an entire device to partition. If you proceed with │ │ creating a new partition table on the device, then all current │ │ partitions will be removed. │ │ │ │ Note that you will be able to undo this operation later if you wish. │ │ │ │ Create new empty partition table on this device? │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────┘ 2) Create a PReP partition in one of the component devices 2a) Select 'FREE SPACE' under either one of 'sda' or 'sdb': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ Guided partitioning │ │ Configure software RAID ▒ │ │ Configure the Logical Volume Manager ▒ │ │ Configure encrypted volumes ▒ │ │ Configure iSCSI volumes ▒ │ │ │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK ▒ │ │ > 34.4 GB FREE SPACE ▒ │ │ SCSI1 (0,1,0) (sdb) - 34.4 GB QEMU QEMU HARDDISK ▒ │ │ > 34.4 GB FREE SPACE │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 2b) Select 'Create a new partition': ┌───────────┤ [!!] Partition disks ├───────────┐ │ │ │ How to use this free space: │ │ │ │ Create a new partition │ │ Automatically partition the free space │ │ Show Cylinder/Head/Sector information │ │ │ │ │ │ │ └──────────────────────────────────────────────┘ 2c) Enter '8 MB' for partition size: ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐ │ │ │ The maximum size for this partition is 34.4 GB. │ │ │ │ Hint: "max" can be used as a shortcut to specify the maximum size, or │ │ enter a percentage (e.g. "20%") to use that percentage of the maximum │ │ size. │ │ │ │ New partition size: │ │ │ │ 8 MB_________________________________________________________________ │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────┘ 2d) Select 'Beginning': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ Please choose whether you want the new partition to be created at the │ │ beginning or at the end of the available space. │ │ │ │ Location for the new partition: │ │ │ │ Beginning │ │ End │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 2e) Select 'Use as': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ You are editing partition #1 of SCSI1 (0,0,0) (sda). No existing file │ │ system was detected in this partition. │ │ │ │ Partition settings: │ │ │ │ Name: │ │ Use as: Ext4 journaling file system │ │ ▒ │ │ Mount point: / ▒ │ │ Mount options: defaults ▒ │ │ Label: none ▒ │ │ Reserved blocks: 5% ▒ │ │ Typical usage: standard ▒ │ │ Bootable flag: off ▒ │ │ │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 2f) Select 'Use the partition as a PowerPC PReP boot partition': ┌─────────────────┤ [!!] Partition disks ├─────────────────┐ │ │ │ How to use this partition: │ │ │ │ Use the partition as a PowerPC PReP boot partition │ │ Ext4 journaling file system │ │ Ext3 journaling file system ▒ │ │ Ext2 file system ▒ │ │ btrfs journaling file system ▒ │ │ JFS journaling file system ▒ │ │ XFS journaling file system ▒ │ │ FAT16 file system ▒ │ │ FAT32 file system ▒ │ │ swap area ▒ │ │ Reserved BIOS boot area ▒ │ │ physical volume for encryption ▒ │ │ physical volume for RAID │ │ │ │ │ │ │ └──────────────────────────────────────────────────────────┘ 2g) Select 'Done setting up the partition': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ You are editing partition #1 of SCSI1 (0,0,0) (sda). No existing file │ │ system was detected in this partition. │ │ │ │ Partition settings: │ │ │ │ Name: │ │ Use as: PowerPC PReP boot partition │ │ │ │ Bootable flag: off │ │ │ │ Copy data from another partition │ │ Delete the partition │ │ Done setting up the partition │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 3) Configure the Software RAID device (RAID1). Use the 'Configure software RAID' option, and create a MD device in the (remaining) free space in each component device. 3a) Select 'Configure software RAID': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ Guided partitioning │ │ Configure software RAID ▒ │ │ Configure the Logical Volume Manager ▒ │ │ Configure encrypted volumes ▒ │ │ Configure iSCSI volumes ▒ │ │ │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK ▒ │ │ > 1.0 MB FREE SPACE ▒ │ │ > #1 7.3 MB K ▒ │ │ > 34.4 GB FREE SPACE │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 3b) Select 'Yes': ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐ │ │ │ Before RAID can be configured, the changes have to be written to the │ │ storage devices. These changes cannot be undone. │ │ │ │ When RAID is configured, no additional changes to the partitions in │ │ the disks containing physical volumes are allowed. Please convince │ │ yourself that you are satisfied with the current partitioning scheme │ │ in these disks. │ │ │ │ The partition tables of the following devices are changed: │ │ SCSI1 (0,0,0) (sda) │ │ SCSI1 (0,1,0) (sdb) │ │ │ │ Write the changes to the storage devices and configure RAID? │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────┘ 3c) Select 'Create MD device': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is the software RAID (or MD, "multiple device") configuration │ │ menu. │ │ │ │ Please select one of the proposed actions to configure software RAID. │ │ │ │ Software RAID configuration actions │ │ │ │ Create MD device │ │ Delete MD device │ │ Finish │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 3d) Select 'RAID1': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ Please choose the type of the software RAID device to be created. │ │ │ │ Software RAID device type: │ │ │ │ RAID0 │ │ RAID1 │ │ RAID5 │ │ RAID6 │ │ RAID10 │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 3e) Enter the number of active devices for the array (default value: 2, in this example). Select 'Continue'. ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐ │ │ │ The RAID1 array will consist of both active and spare devices. The │ │ active devices are those used, while the spare devices will only be │ │ used if one or more of the active devices fail. A minimum of 2 active │ │ devices is required. │ │ │ │ NOTE: this setting cannot be changed later. │ │ │ │ Number of active devices for the RAID1 array: │ │ │ │ 2____________________________________________________________________ │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────┘ 3f) Enter the number of spare devices for the array (default value: 0, in this example). Select 'Continue'. ┌───────────┤ [!!] Partition disks ├───────────┐ │ │ │ Number of spare devices for the RAID1 array: │ │ │ │ 0___________________________________________ │ │ │ │ │ │ │ └──────────────────────────────────────────────┘ 3g) Select the (remaining) FREE SPACE in each component device (in this example, '/dev/sda free #2' and '/dev/sdb free #1'), and select 'Continue': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ You have chosen to create a RAID1 array with 2 active devices. │ │ │ │ Please choose which partitions are active devices. You must select │ │ exactly 2 partitions. │ │ │ │ Active devices for the RAID1 array: │ │ │ │ [ ] /dev/sda free #1 (1MB; FREE SPACE) │ │ [ ] /dev/sda1 (7MB) │ │ [*] /dev/sda free #2 (34351MB; FREE SPACE) │ │ [*] /dev/sdb free #1 (34359MB; FREE SPACE) │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 3h) Select 'Yes': ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐ │ │ │ Before RAID can be configured, the changes have to be written to the │ │ storage devices. These changes cannot be undone. │ │ │ │ When RAID is configured, no additional changes to the partitions in │ │ the disks containing physical volumes are allowed. Please convince │ │ yourself that you are satisfied with the current partitioning scheme │ │ in these disks. │ │ │ │ The partition tables of the following devices are changed: │ │ SCSI1 (0,0,0) (sda) │ │ SCSI1 (0,1,0) (sdb) │ │ │ │ Write the changes to the storage devices and configure RAID? │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────┘ 3i) Select 'Finish': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is the software RAID (or MD, "multiple device") configuration │ │ menu. │ │ │ │ Please select one of the proposed actions to configure software RAID. │ │ │ │ Software RAID configuration actions │ │ │ │ Create MD device │ │ Delete MD device │ │ Finish │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 3j) The Software RAID device should now be listed in the Partition disks dialog (RAID1 device #0): ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ Guided partitioning │ │ Configure software RAID │ │ Configure the Logical Volume Manager ▒ │ │ Configure encrypted volumes ▒ │ │ Configure iSCSI volumes ▒ │ │ ▒ │ │ RAID1 device #0 - 34.3 GB Software RAID device ▒ │ │ > #1 34.3 GB ▒ │ │ > 512.0 B unusable ▒ │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 4) Partition the Software RAID device (with either Manual or Guided partitioning) Partition the device normally, either in Manual or Guided partitioning mode. 4a) Select 'Guided partitioning': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ Guided partitioning │ │ Configure software RAID │ │ Configure the Logical Volume Manager ▒ │ │ Configure encrypted volumes ▒ │ │ Configure iSCSI volumes ▒ │ │ ▒ │ │ RAID1 device #0 - 34.3 GB Software RAID device ▒ │ │ > #1 34.3 GB ▒ │ │ > 512.0 B unusable ▒ │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 4b) Select 'Guided - use entire disk and set up LVM': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ If you choose guided partitioning for an entire disk, you will next │ │ be asked which disk should be used. │ │ │ │ Partitioning method: │ │ │ │ Guided - use entire disk │ │ Guided - use the largest continuous free space │ │ Guided - use entire disk and set up LVM │ │ Guided - use entire disk and set up encrypted LVM │ │ Manual │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 4c) Select 'RAID1 device #0': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ Note that all data on the disk you select will be erased, but not │ │ before you have confirmed that you really want to make the changes. │ │ │ │ Select disk to partition: │ │ │ │ RAID1 device #0 - 34.3 GB Software RAID device │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK │ │ SCSI1 (0,1,0) (sdb) - 34.4 GB QEMU QEMU HARDDISK │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 4d) Select 'Yes': ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐ │ │ │ Before the Logical Volume Manager can be configured, the current │ │ partitioning scheme has to be written to disk. These changes cannot │ │ be undone. │ │ │ │ After the Logical Volume Manager is configured, no additional changes │ │ to the partitioning scheme of disks containing physical volumes are │ │ allowed during the installation. Please decide if you are satisfied │ │ with the current partitioning scheme before continuing. │ │ │ │ The partition tables of the following devices are changed: │ │ RAID1 device #0 │ │ │ │ Write the changes to disks and configure LVM? │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────┘ 4e) The LVM logical volumes should now be listed in the Partition disks dialog, along with the new partitions in the Software RAID device: ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ │ │ LVM VG ubuntu-vg, LV root - 32.6 GB Linux device-mapper (linear) ▒ │ │ > #1 32.6 GB f ext4 / ▒ │ │ LVM VG ubuntu-vg, LV swap_1 - 1.5 GB Linux device-mapper (linear) ▒ │ │ > #1 1.5 GB f swap swap ▒ │ │ RAID1 device #0 - 34.3 GB Linux Software RAID Array │ │ > #1 8.0 MB B K ▒ │ │ > #2 256.0 MB f ext2 /boot ▒ │ │ > #3 34.1 GB K lvm ▒ │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 5) (Guided partitioning only) Select the PReP partition in the component device, and select 'Done setting up the partition'. This is required (as of this writing) with the Guided partitioning in order to make sure the PReP partition in the component device is actually used. 5a) Select the PReP partition in the component device (partition #1 in sda, in this example): ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ > #1 32.6 GB f ext4 / │ │ LVM VG ubuntu-vg, LV swap_1 - 1.5 GB Linux device-mapper (linear) ▒ │ │ > #1 1.5 GB f swap swap ▒ │ │ RAID1 device #0 - 34.3 GB Linux Software RAID Array ▒ │ │ > #1 8.0 MB B K ▒ │ │ > #2 256.0 MB f ext2 /boot │ │ > #3 34.1 GB K lvm ▒ │ │ SCSI1 (0,0,0) (sda) - 34.4 GB QEMU QEMU HARDDISK ▒ │ │ > 1.0 MB FREE SPACE ▒ │ │ > #1 7.3 MB K │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 5b) Select 'Done setting up the partition': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ You are editing partition #1 of SCSI1 (0,0,0) (sda). No existing file │ │ system was detected in this partition. │ │ │ │ Partition settings: │ │ │ │ Name: │ │ Use as: PowerPC PReP boot partition │ │ │ │ Bootable flag: off │ │ │ │ Copy data from another partition │ │ Erase data on this partition │ │ Delete the partition │ │ Done setting up the partition │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 6) The disk partitioning is complete. 6a) Select 'Finish partitioning and write changes to disk': ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐ │ │ │ This is an overview of your currently configured partitions and mount │ │ points. Select a partition to modify its settings (file system, mount │ │ point, etc.), a free space to create partitions, or a device to │ │ initialize its partition table. │ │ │ │ > #1 7.3 MB K │ │ > #2 34.4 GB K raid ▒ │ │ > 1.0 MB FREE SPACE ▒ │ │ SCSI1 (0,1,0) (sdb) - 34.4 GB QEMU QEMU HARDDISK ▒ │ │ > 1.0 MB FREE SPACE ▒ │ │ > #1 34.4 GB K raid ▒ │ │ > 1.0 MB FREE SPACE ▒ │ │ ▒ │ │ Undo changes to partitions │ │ Finish partitioning and write changes to disk │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ 6b) Select 'Yes': ┌───────────────────────┤ [!!] Partition disks ├───────────────────────┐ │ │ │ If you continue, the changes listed below will be written to the │ │ disks. Otherwise, you will be able to make further changes manually. │ │ │ │ The partition tables of the following devices are changed: │ │ LVM VG ubuntu-vg, LV root │ │ LVM VG ubuntu-vg, LV swap_1 │ │ RAID1 device #0 │ │ │ │ The following partitions are going to be formatted: │ │ LVM VG ubuntu-vg, LV root as ext4 │ │ LVM VG ubuntu-vg, LV swap_1 as swap │ │ partition #2 of RAID1 device #0 as ext2 │ │ │ │ Write the changes to disks? │ │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────┘ 6c) Continue the installation normally.