root@datavault:/tmp# parted
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) select /dev/md4
Using /dev/md4
(parted) ls
align-check TYPE N check partition N for TYPE(min|opt) alignment
check NUMBER do a simple check on the file system
cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER copy file system to another partition
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkfs NUMBER FS-TYPE make a FS-TYPE file system on partition NUMBER
mkpart PART-TYPE [FS-TYPE] START END make a partition
mkpartfs PART-TYPE FS-TYPE START END make a partition with a file system
move NUMBER START END move partition NUMBER
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resize NUMBER START END resize partition NUMBER and its file system
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
(parted) print
Model: Linux Software RAID Array (md)
Disk /dev/md4: 12.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 2097kB 12.0TB 12.0TB ReplayStorage
(parted) rm 1
(parted) unit mib
(parted) mkpart
Partition name? []? ReplayStorage
File system type? [ext2]?
Start? 2mib
End? 9000mib
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? ignore
(parted) print
Model: Linux Software RAID Array (md)
Disk /dev/md4: 11446374MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 2.00MiB 9000MiB 8998MiB ReplayStorage
(parted) rm 1
(parted) mkpart
Partition name? []? ReplayStore
File system type? [ext2]?
Start? 2mib
End? 9500mib
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? ignore
(parted) mkpart
Partition name? []? VDR-Storage
File system type? [ext2]?
Start? 9500mib
End? -1
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? ignore
(parted) prin
Model: Linux Software RAID Array (md)
Disk /dev/md4: 11446374MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 2.00MiB 9500MiB 9498MiB ReplayStore
2 9500MiB 11446374MiB 11436874MiB VDR-Storage