From Fedora Project Wiki

Line 211: Line 211:
</pre>
</pre>


== LVM on top of RAID ==  
== LVM on top of sw RAID ==  
=== Setup ===
=== Setup ===
{{admon/important|Multiple hard drives required|You need a machine with more than 1 disks}}
# Run the installation on machine including more than 1 hard drives
#* For testing in virtual machine run:
<pre>
# virt-install --accelerate -n test-machine101 -r 1024 --disk /var/lib/libvirt/images/test-machine101.img,device=disk,bus=virtio,size=21 --disk /var/lib/libvirt/images/additional-disk101,device=disk,bus=virtio,size=21 -c /var/lib/libvirt/images/Fedora.iso
</pre>
=== Action ===
=== Action ===
# In INSTALLATION DESTINATION choose review/modify choice for partitioning,
# create / which is placed on LVM logical volume,
# physical volume of the volume group including / has to be software RAID /dev/md{N} device with level of your own choice with accordance to available hard drives,
# create other mountpoints/partitions if necessary (/boot, /usr, ...)
# complete the installation and start up the system.
=== Expected Results ===
=== Expected Results ===
# Requested filesystem layout is created,
# installation is finished,
# systems starts up properly,
# filesystem layout of the system is in accordance with setup in installer.
=== Cleanup ===
=== Cleanup ===
# To destroy virtual machine run:
<pre>
# virsh destroy test-machine101
# virsh undefine --remove-all-storage test-machine101
</pre>
== Reuse encrypted partitions ==
== Reuse encrypted partitions ==
=== Setup ===
=== Setup ===

Revision as of 08:28, 17 May 2013

Initial setup

  • Prepare installation media available at {URL} according to instructions from Installation Guide
  • Optionally install virtualization support in Fedora:
# yum -y install @virtualization
# service libvirtd start
# cp $FEDORA_ISO /var/lib/libvirt/images/Fedora.iso
  • To start virtual machine you can use this command:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
  • You can destroy virtual machine right after execution of a test case with these commands:
# virsh destroy test-machine101
# virsh undefine --remove-all-storage test-machine101

Installation on bios/firmware RAID

Setup

Bare metal required
This can not be run in virtual machine
  1. You need a machine with bios/firmware RAID supported by dmraid or MD. Linux MD driver supports Intel Matrix RAID technology, dmraid supports following products:
    • asr  : Adaptec HostRAID ASR (0,1,10)
    • ddf1  : SNIA DDF1 (0,1,4,5,linear)
    • hpt37x  : Highpoint HPT37X (S,0,1,10,01)
    • hpt45x  : Highpoint HPT45X (S,0,1,10)
    • isw  : Intel Software RAID (0,1,5,01)
    • jmicron : JMicron ATARAID (S,0,1)
    • lsi  : LSI Logic MegaRAID (0,1,10)
    • nvidia  : NVidia RAID (S,0,1,10,5)
    • pdc  : Promise FastTrack (S,0,1,10)
    • sil  : Silicon Image(tm) Medley(tm) (0,1,10)
    • via  : VIA Software RAID (S,0,1,10)
    • dos  : DOS partitions on SW RAIDs
  2. you need multiple hard drives connected to controller supporting RAID setup,
  3. setup arbitary RAID level in your firmware.

Action

  1. Boot the installation media on prepared machine,
  2. finish the installation by choosing default options.

Expected Results

  1. Installation starts up properly,
  2. RAID device is recognized and used,
  3. system is installed without issue, it boots up,
  4. system is installed on RAID and not underlying devices.

Cleanup

N/A

Installation on iSCSI

  1. Run any test case from QA:ISCSI_Installation_Test_plan

Default LVM with encryption

Setup

  1. Run the installation on bare metal or virtual machine.
    • To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso

Action

  1. In INSTALLATION DESTINATION choose automatic layout with LVM,
  2. select encryption and put passphrase,
  3. complete the installation.

Expected Results

  1. Default partitioning layout is created,
  2. partitions are encrypted,
  3. installer asks for passphrase,
  4. system requests passphrase during boot,
  5. systems starts without issue with passphrase.

Cleanup

  1. To destroy virtual machine run:
# virsh destroy test-machine101
# virsh undefine --remove-all-storage test-machine101

Reuse /home on LVM

Setup

Preliminary installation required
  • Do an installation with separate /home partition placed on LVM logical volume.
    • To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
  • start up installed system, store some data in /home
  • change the boot order to boot up again from installation media,
  • start the installation again.

Action

  1. Select review/modify choice partitioning in INSTALLATION DESTINATION,
  2. assign existing home logical volume to /home mount point, do not format partition,
  3. create & assign other required mount points (/, /boot, ...), complete the partitioning,
  4. complete the installation and start up installed system.

Expected Results

  1. Existing home logical volume is visible in installer,
  2. it is possible to assign mount point to this volume,
  3. it is possible to disable formatting,
  4. installation is completed,
  5. systems starts up,
  6. data in /home partition still exist.

Cleanup

  1. To destroy virtual machine run:
# virsh destroy test-machine101
# virsh undefine --remove-all-storage test-machine101

More disks

Setup

Multiple hard drives required
You need a machine with more than 1 disks
  1. Run the installation on machine including more than 1 hard drives
    • For testing in virtual machine run:
# virt-install --accelerate -n test-machine101 -r 1024 --disk /var/lib/libvirt/images/test-machine101.img,device=disk,bus=virtio,size=21 --disk /var/lib/libvirt/images/additional-disk101,device=disk,bus=virtio,size=10 -c /var/lib/libvirt/images/Fedora.iso

Action

  1. In INSTALLATION DESTINATION select all available disks,
  2. complete the installation in setup of own choice.

Expected Results

  1. All disks are visible in installer,
  2. all disks can be selected,
  3. all disks are used for installation,
  4. installation is finished without issue,
  5. system starts up properly,
  6. all filesystems are present with accordance to setup in installer.

Cleanup

  1. To destroy virtual machine run:
# virsh destroy test-machine101
# virsh undefine --remove-all-storage test-machine101

Separate mountpoints

Setup

  1. Run the installation on bare metal or virtual machine.
    • To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso

Action

  1. In INSTALLATION DESTINATION choose review/modify choice for partitioning
  2. Create following layout:
    • create /boot,
    • create /, use encryption for it,
    • create /usr,
    • create /home, use encryption for it,
    • create /var,
    • create swap, use encryption for it,
  3. complete the installation and start the system.

Expected Results

  1. Defined disk layout is created,
  2. installer asks for a passphrase,
  3. installation is completed,
  4. installed systems starts and asks for a passphrase to unlock encrypted disks,
  5. login is possible,
  6. disk layout on installed system is in accordance with installation setup, all filesystems are mounted, swap is enabled.

Cleanup

  1. To destroy virtual machine run:
# virsh destroy test-machine101
# virsh undefine --remove-all-storage test-machine101

Reuse existing VG

Preliminary installation required

Setup

  • Do an installation with custom partitioning layout:
    • create / placed on LVM logical volume,
    • create /boot on raw partition,
    • keep some free space on underlaying hard drive(s),
    • keep some free space in LVM volume group,
    • To start virtual machine, run:
# virt-install --accelerate -n test-machine101 -r 1024 -f /var/lib/libvirt/images/test-machine101.img -s 21 -c /var/lib/libvirt/images/Fedora.iso
  • complete the installation,
  • change the boot order to boot up again from installation media,
  • start the installation again.

Action

  1. In INSTALLATION DESTINATION select review/modify choice,
  2. do not format or delete existing LVM logical volumes,
  3. create / as LVM logical volume placed in already existing volume group,
  4. create additional partitions/mount points if necessary (e.g. /boot, /usr),
  5. optionally assign mount point to existing LVM logical volumes,

Expected Results

  1. It is possible to reuse free space in already existing LVM volume group,
  2. installation is finished,
  3. system starts up properly,
  4. filesystem layout is in accordance with setup in installer,
  5. unmodified LVM logical volumes are preserved including the content.

Cleanup

  1. To destroy virtual machine run:
# virsh destroy test-machine101
# virsh undefine --remove-all-storage test-machine101

LVM on top of sw RAID

Setup

Multiple hard drives required
You need a machine with more than 1 disks
  1. Run the installation on machine including more than 1 hard drives
    • For testing in virtual machine run:
# virt-install --accelerate -n test-machine101 -r 1024 --disk /var/lib/libvirt/images/test-machine101.img,device=disk,bus=virtio,size=21 --disk /var/lib/libvirt/images/additional-disk101,device=disk,bus=virtio,size=21 -c /var/lib/libvirt/images/Fedora.iso


Action

  1. In INSTALLATION DESTINATION choose review/modify choice for partitioning,
  2. create / which is placed on LVM logical volume,
  3. physical volume of the volume group including / has to be software RAID /dev/md{N} device with level of your own choice with accordance to available hard drives,
  4. create other mountpoints/partitions if necessary (/boot, /usr, ...)
  5. complete the installation and start up the system.

Expected Results

  1. Requested filesystem layout is created,
  2. installation is finished,
  3. systems starts up properly,
  4. filesystem layout of the system is in accordance with setup in installer.

Cleanup

  1. To destroy virtual machine run:
# virsh destroy test-machine101
# virsh undefine --remove-all-storage test-machine101

Reuse encrypted partitions

Setup

Action

Expected Results

Cleanup

Search for specific device

Setup

Action

Expected Results

Cleanup

Select all disks

Setup

Action

Expected Results

Cleanup

Create multiple VGs

Setup

Action

Expected Results

Cleanup