3.1/Automatic filesystem image creation
From Wiki
The automatic-image-creation is used to automatically create NFS and iSCSI (software initiated) filesystem images. Template:Note
The automatic image creation happens during assignment of a Virtual Environment. The booting node will mount the "source" and "target" as configured by the parameters in the filesystem image configuration in the qrm-server.
- source
- where to get the image-content from (from nfs-export). This is called the INSTALL_FROM_TARGET in the parameters below.
- target
- where to install the image-content to (to nfs-export or to iscsi-lun)
Then it will copy "source" to "target". After the copying phase finished it will umount "source" and "target" and continue with the regular startup of "target" (the new created image).
Contents |
[edit] Install from NFS to NFS
- Create an empty mount point for the image on an nfs storage-server.
- Create an filesystem-image definition in the qrm-server gui for the empty image. This definition specifies where to put the contents of the image (Storage Server and path)
- Add the following filesystem-image parameters:
INSTALL_IMAGE=true; INSTALL_FROM_TARGET_IP_ADDRESS=[your-storage-server-ip]; INSTALL_FROM_TARGET_PATH=[full-path-to-the-empty-image-dir-on-the-storage-server];
- Create and assign/start a virtual-environment using thie above create filesystem-image. The node will boot, mount source and target, copy source to target, umount and start the new created image.
- Remove the INSTALL_IMAGE=true; parameter from the filesystem-image configuration
[edit] Install from NFS to ISCSI
- Create an "empty" iscsi-lun/iscsi-block-device on the iscsi-target.
- Create an filesystem-image in the qrm-server gui for the empty image.
- Add the following filesystem-image parameters:
ISCSI_TARGET_NAME=[target-name]; ISCSI_ROOT_PARTITION=1; ISCSI_LUN=0; ISCSI_ROOT_FS_TYPE=ext3; ISCSI_PORT=3260; ISCSI_HBA=0; INSTALL_IMAGE=true; INSTALL_FROM_TARGET_IP_ADDRESS=[your-storage-server-ip]; INSTALL_FROM_TARGET_PATH=[full-path-to-the-empty-image-dir-on-the-storage-server];
- Create and assign/start a virtual-environment using thie above create filesystem-image. The node will boot, mount source and target, copy source to target, umount and start the new created image.
- Remove the INSTALL_IMAGE=true; parameter from the filesystem-image configuration.
[edit] Validating/fixing ISCSI filesystem-images
To validate and/or fix ISCSI filesystem-images the following parameters can be used in the filesystem-image configuration page :
ISCSI_TARGET_NAME=node4 ISCSI_ROOT_PARTITION=1 ISCSI_LUN=0 ISCSI_ROOT_FS_TYPE=ext3 ISCSI_PORT=3260 ISCSI_HBA=0 ISCSI_INITIATOR=iqn.1987-05.com.cisco:01.fca433984997 VALIDATE_IMAGE=true VALIDATE_AND_FIX_IMAGE=true
Additional to the regular ISCSI-parameter needed to connect the filesystem-image
VALIDATE_IMAGE and VALIDATE_AND_FIX_IMAGE can be set to validate/fix it during start-up.
VALIDATE_IMAGE and VALIDATE_AND_FIX_IMAGE should be set to false or being removed from the filesystem-image configuration after the validation.
[edit] Advanced
Instead of INSTALL_FROM_TARGET_IP and INSTALL_FROM_TARGET_PATH, one can use INSTALL_FROM_TARGET_DEVICE, to grab the booting node's device. This means making sure the node on which the filesystem is installed is assigned to the virtual environment
[edit] Knowledge Base / Known Issues
After image-creation (at least) the parameter INSTALL_IMAGE=true; should be disabled/removed from the filesystem-image environment in the QRM-server gui
