Difference between revisions of "Parted"
(Created page with "Use this tool to create or edit partitions on the Tranzman Appliance. __NOTOC__") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Use this tool to create or edit partitions on the Tranzman Appliance. | Use this tool to create or edit partitions on the Tranzman Appliance. | ||
__NOTOC__ | __NOTOC__ | ||
+ | ===Step 1=== | ||
+ | Navigate through the '''SRL Support Menu''' to launch parted. | ||
+ | |||
+ | {| class="wikitable" style="padding-left: auto; color:#FFFFFF; background-color: black; width: 600px; FONT-FAMILY:monospace,monospace; LINE-HEIGHT:15px; white-space: pre-wrap; | ||
+ | | | ||
+ | > srl_support | ||
+ | > parted /dev/sdb | ||
+ | Please enter One time passcode: XXXXX | ||
+ | GNU Parted 2.1 | ||
+ | Using /dev/sdb | ||
+ | Welcome to GNU Parted! Type 'help' to view a list of commands. | ||
+ | |} | ||
+ | |||
+ | ===Step 2=== | ||
+ | Set the label to GPT for disks bigger than 2TB. | ||
+ | |||
+ | {| class="wikitable" style="padding-left: auto; color:#FFFFFF; background-color: black; width: 600px; FONT-FAMILY:monospace,monospace; LINE-HEIGHT:15px; white-space: pre-wrap; | ||
+ | | | ||
+ | > parted /dev/sdb mklabel gpt | ||
+ | |} | ||
+ | |||
+ | {|style="padding: 5px; width: 85%;" | ||
+ | | style="width: 1%;"|[[File:Note.png|30px]]|| style="padding: 10px; width: 85%;"|'''Note:''' Make sure to align partitions correctly or performance will be very poor. If a partition needs to be modified, the system will produce a warning message similar to the one below. | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | {| class="wikitable" style="padding-left: auto; color:#FFFFFF; background-color: black; width: 700px; FONT-FAMILY:monospace,monospace; LINE-HEIGHT:15px; white-space: pre-wrap; | ||
+ | | | ||
+ | Warning: The resulting partition is not properly aligned for best performance. | ||
+ | Ignore/Cancel? | ||
+ | |} | ||
+ | |||
+ | ===Step 3=== | ||
+ | Create the first partition starting from 2048KB, this will be the logs (10% of database) area. | ||
+ | |||
+ | {| class="wikitable" style="padding-left: auto; color:#FFFFFF; background-color: black; width: 700px; FONT-FAMILY:monospace,monospace; LINE-HEIGHT:15px; white-space: pre-wrap; | ||
+ | | | ||
+ | > parted mkpart primary 2048KiB 10GiB | ||
+ | |} | ||
+ | |||
+ | ===Step 4=== | ||
+ | Create the next partitions using the last number from the previous partition as the starting point. This will be the swap partition. i.e. 2 x Memory on the machine. | ||
+ | |||
+ | {| class="wikitable" style="padding-left: auto; color:#FFFFFF; background-color: black; width: 700px; FONT-FAMILY:monospace,monospace; LINE-HEIGHT:15px; white-space: pre-wrap; | ||
+ | | | ||
+ | > parted mkpart primary 10GiB 26GiB | ||
+ | |} | ||
+ | |||
+ | ===Step 5=== | ||
+ | Create a database area which includes 2 x combined number of records for all environments (images, media workloads, etc * 512k). | ||
+ | |||
+ | {| class="wikitable" style="padding-left: auto; color:#FFFFFF; background-color: black; width: 700px; FONT-FAMILY:monospace,monospace; LINE-HEIGHT:15px; white-space: pre-wrap; | ||
+ | | | ||
+ | > parted mkpart primary 26GiB 126GiB | ||
+ | |} | ||
+ | |||
+ | ===Step 6=== | ||
+ | Now create the data area (2.5 x the combined size of the origin catalogs). | ||
+ | |||
+ | {| class="wikitable" style="padding-left: auto; color:#FFFFFF; background-color: black; width: 700px; FONT-FAMILY:monospace,monospace; LINE-HEIGHT:15px; white-space: pre-wrap; | ||
+ | | | ||
+ | > parted mkpart primary 126GiB 512GiB | ||
+ | |} | ||
+ | |||
+ | ===Step 7=== | ||
+ | Lastly create the datastore area (2GB for same vendor migrations). For cross vendor, this will need to be the largest of either; | ||
+ | |||
+ | * 5 x size of the largest image in the catalog | ||
+ | * 2.5 x size of uncompressed media x number of drives to be used | ||
+ | |||
+ | {| class="wikitable" style="padding-left: auto; color:#FFFFFF; background-color: black; width: 700px; FONT-FAMILY:monospace,monospace; LINE-HEIGHT:15px; white-space: pre-wrap; | ||
+ | | | ||
+ | > parted mkpart primary 512GiB 22560GiB | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | Use this link to go back to the [[SRL Support]] Page. |
Latest revision as of 16:12, 6 November 2018
Use this tool to create or edit partitions on the Tranzman Appliance.
Step 1
Navigate through the SRL Support Menu to launch parted.
> srl_support > parted /dev/sdb Please enter One time passcode: XXXXX GNU Parted 2.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. |
Step 2
Set the label to GPT for disks bigger than 2TB.
> parted /dev/sdb mklabel gpt |
Note: Make sure to align partitions correctly or performance will be very poor. If a partition needs to be modified, the system will produce a warning message similar to the one below. |
Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? |
Step 3
Create the first partition starting from 2048KB, this will be the logs (10% of database) area.
> parted mkpart primary 2048KiB 10GiB |
Step 4
Create the next partitions using the last number from the previous partition as the starting point. This will be the swap partition. i.e. 2 x Memory on the machine.
> parted mkpart primary 10GiB 26GiB |
Step 5
Create a database area which includes 2 x combined number of records for all environments (images, media workloads, etc * 512k).
> parted mkpart primary 26GiB 126GiB |
Step 6
Now create the data area (2.5 x the combined size of the origin catalogs).
> parted mkpart primary 126GiB 512GiB |
Step 7
Lastly create the datastore area (2GB for same vendor migrations). For cross vendor, this will need to be the largest of either;
- 5 x size of the largest image in the catalog
- 2.5 x size of uncompressed media x number of drives to be used
> parted mkpart primary 512GiB 22560GiB |
Use this link to go back to the SRL Support Page.