| | 14 | All AII options may be customized through variables. For the complete list, look at [source:templates/trunk/standard/aii/quattor/ks/config.tpl standard/aii/quattor/ks/config.tpl] and [source:templates/trunk/standard/aii/quattor/pxe/config.tpl standard/aii/quattor/pxe/config.tpl]. |
| | 15 | |
| | 16 | A typical AII configuration is : |
| | 17 | {{{ |
| | 18 | # AII specific parameters |
| | 19 | variable AII_OSINSTALL_SRV ?= "quattorsrv.lal.in2p3.fr"; |
| | 20 | # variable AII_ACKSRV ?= "quattorsrv.lal.in2p3.fr"; |
| | 21 | variable AII_OSINSTALL_ROOT = '/packages/os'; |
| | 22 | # Standard Kickstart configuration template for IPN machines |
| | 23 | variable AII_OSINSTALL_TEMPLATE ?= "lal_sl_ks.cfg"; |
| | 24 | }}} |
| 55 | | |
| | 66 | |
| | 67 | Block devices define logical and physical devices used by file systems. They can be logical devices, HW or SW raid devices, physical disks... A block device can be made of other block devices, for example a logical device is made of one or more physical devices. |
| | 68 | |
| | 69 | Unlike file systems which are described with an ordered list, block devices are defined as a nlist. At installation time, they are processed (partition creation, logical volume creation...) in the order of file systems who use them. |
| | 70 | |
| | 71 | Several functions are available to help in declaration of block devices, in particular : |
| | 72 | * `partition_add(PHYS_DISK,partition_nlist)` : allow to add entries efficiently in `/system/blockdevices/partitions` nlist. |
| | 73 | * `lvm_add(VOL_GROUP,logvol_nlist)` : allow to add entries efficiently in `/system/blockdevices/logical_volumes` nlist. |
| | 74 | |
| | 75 | An example of block device definition is : |
| | 76 | {{{ |
| | 77 | "/system/blockdevices/physical_devs" = npush ( |
| | 78 | DISK_BOOT_DEV, nlist ("label", "msdos") |
| | 79 | ); |
| | 80 | |
| | 81 | "/system/blockdevices/partitions" = partitions_add (DISK_BOOT_DEV, nlist (DISK_PART_BOOT, 64*MB, |
| | 82 | DISK_PART_SWAP, 4*GB, |
| | 83 | DISK_PART_ROOT, 1*GB, |
| | 84 | DISK_PART_LOGPARTS, -1 |
| | 85 | ) |
| | 86 | ); |
| | 87 | |
| | 88 | "/system/blockdevices/volume_groups" = npush ( |
| | 89 | "vg0", nlist ("device_list", list ("partitions/" + DISK_PART_LOGPARTS)) |
| | 90 | ); |
| | 91 | |
| | 92 | "/system/blockdevices/logical_volumes" = lvs_add ("vg0", nlist("usrvol", 5*GB, |
| | 93 | "homevol", 512*MB, |
| | 94 | "tmpvol", 1*GB, |
| | 95 | "varvol", -1, |
| | 96 | ) |
| | 97 | ); |
| | 98 | |
| | 99 | }}} |
| | 100 | |
| | 101 | Look at [source:templates/trunk/sites/example/filesystems/glite.tpl sites/example/filesystems/glite.tpl] for more details. |