Jan Gehring > Rex-0.44.6.1 > Rex::Commands::Partition

Download:
Rex-0.44.6.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Source   Latest Release: Rex-0.55.3

NAME ^

Rex::Commands::Partition - Partition module

DESCRIPTION ^

With this Module you can partition your harddrive.

SYNOPSIS ^

 use Rex::Commands::Partition;

EXPORTED FUNCTIONS ^

clearpart($drive)

Clear partitions on $drive.

 clearpart "sda";
   
 clearpart "sda",
   initialize => "gpt";
partition($mountpoint, %option)

Create a partition with mountpoint $mountpoint.

 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 "none",
    lvm    => 1,
    type   => "primary",
    size   => 15000,
    ondisk => "vda";
    
 partition "/",
    fstype => "ext3",
    size   => 10000,
    onvg   => "vg0";
syntax highlighting: