Rex::Commands::Partition(3pm) | User Contributed Perl Documentation | Rex::Commands::Partition(3pm) |
Rex::Commands::Partition - Partition module
With this Module you can partition your harddrive.
Version <= 1.0: All these functions will not be reported.
All these functions are not idempotent.
use Rex::Commands::Partition;
Clear partitions on drive `sda`:
clearpart "sda";
Create a new GPT disk label (partition table) on drive `sda`:
clearpart "sda", initialize => "gpt";
If GPT initialization is requested, the `bios_boot` option (default: TRUE) can also be set to TRUE or FALSE to control creation of a BIOS boot partition:
clearpart "sda", initialize => "gpt", bios_boot => FALSE;
Create a partition with the specified parameters:
Examples:
partition "/", fstype => "ext3", size => 15000, ondisk => "sda", type => "primary"; partition "none", type => "extended", ondisk => "sda", grow => 1, mount => TRUE, partition "swap", fstype => "swap", type => "logical", ondisk => "sda", size => 8000; partition "/", fstype => "ext3", size => 10000, ondisk => "sda", vg => "vg0";
2018-02-01 | perl v5.26.1 |