Skip to content

Commit 0119de0

Browse files
Merge pull request #4319 from ovh/feat/PUBM-28695
Adding zpool name customizable via the volume name attribute
2 parents 7eeb410 + ea8940b commit 0119de0

15 files changed

+148
-60
lines changed

pages/cloud/dedicated/partitioning_ovh/guide.de-de.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ excerpt: 'Find out what the OVHcloud API provides in order to customize the part
55
section: 'RAID & Festplatten'
66
routes:
77
canonical: 'https://docs.ovh.com/gb/en/dedicated/api-partitioning/'
8-
updated: 2022-11-29
8+
updated: 2023-03-08
99
---
1010

1111
<!-- markdownlint-disable-next-line MD036 -->
12-
**Last updated 29th November 2022**
12+
**Last updated 8th March 2023**
1313

1414
## Objective
1515

@@ -142,6 +142,7 @@ Of course a partition can be altered, deleted, added and then displayed:
142142
143143
#### API Partition Layout
144144

145+
<!-- markdownlint-disable-next-line MD036 -->
145146
**Structure**
146147

147148
A partiton layout is a list of partitions. Here is an example of a partition structure:
@@ -176,9 +177,13 @@ A partiton layout is a list of partitions. Here is an example of a partition str
176177
<!-- markdownlint-disable-next-line MD028 -->
177178
> [!primary]
178179
>
179-
> volumeName: only useful if type lv is set
180+
> volumeName : two use cases
181+
>
182+
> - type lv is set: logical volume name (mandatory)
183+
> - filesystem is zfs: custom zpool name and its dataset prefixes (optional, zpool name will be automatically generated if not specified)
180184
>
181185
186+
<!-- markdownlint-disable-next-line MD036 -->
182187
**Filesystems & LVM + RAID levels Comptibility Matrix**
183188

184189
The following table provides an overview of filesystem compatibility with RAID levels as well as LVM within the context of OVHcloud:
@@ -280,14 +285,15 @@ The following table gives an overview of well known customer errors and how to f
280285
|Error with MBR partition table: partition `p` cannot end after 2 TiB (`interval stop`) and this server does not support GPT! OVHcloud also needs to add a `cloud-init size` cloud-init partition at the very end of the disk. Therefore all customer partitions must end before (2TiB - `cloud-init size`).|- We need to add a config-drive partition at the end of 1 disk on your dedicated server. The last partition of your partitioning will end after the 2TiB position on disk. So appending a config-drive partition after the last partition will start after 2TiB position on disk and you are trying to apply such partitioning to a server that doesn't support GPT|- Reduce the partition `p` size (or any other partition) so that the total sum of all partitions size is less than 2TiB<br />- Do not define a partition that fills the disk (or partition with size 0 when defined within the [OVHcloud API](https://api.ovh.com/)) on a [customer template](#customertemplates) that will be used for servers with disks bigger than 2TiB that don't support GPT|
281286
|`/boot` (or `/` if no `/boot` defined) partition cannot be larger than 2097151 MiB on this hardware|- GRUB partition cannot be larger than 2 TiB with this hardware raid controller|- Create a separate `/boot` partition with a size less than 2TiB (1GiB should be enough)|
282287
|`/boot` (or `/` if no `/boot` defined) partition type cannot be `XFS`|- GRUB partition doesn't support `XFS` filesystem type on this Operating System. This is the case for most of debian-like OSes (debian, proxmox, ubuntu)|- Create a separate `/boot` partition with filesystem other than `XFS`<br />- Don't create a separate `/boot` partition but choose a filesystem other than `XFS` for the `/` partition|
288+
|`ZFS` partition already exists with zpool name `n`. Either choose another name for the `m` partition or set the same RAID level for all partitions within zpool `n`|Assigning multiple `ZFS` partitions to the same zpool name is possible: it means each dataset will be part of the same zpool. This is possible only if all the datasets (therefore the partitions defined via the API) have the same RAID level|- Set the same RAID level as on the existing `ZFS` partition which will be part of the same zpool<br />- Choose another zpool name: this partition will not be part of the same zpool<br />- Don't provide any zpool name: we will assign a default zpool name and this partition will not be part of the same zpool|
283289

284290
#### Input customer auto-fixing
285291

286292
In order to improve customer experience, reduce [OVHcloud support](https://help.ovhcloud.com/de/) workload and to avoid introducing breaking changes for customer, some customer input is automatically fixed or changed by the backend. The following table gives an overview of what is currently auto-fixed/changed during the **pre-processing**:
287293

288294
|Subject|Description|
289295
|---|---|
290-
|ZP grouping|All ZFS partitions with the same RAID level will be grouped within the same zpool (ZP) (if possible depending on the size of the disks)|
296+
|ZP grouping|All ZFS partitions with the same RAID level will be grouped within the same zpool (ZP) if possible depending on the size of the disks and if the same zpool name is provided or no zpool name is provided|
291297
|LV grouping|All partitions of type `lv` with the same RAID level will be grouped within the same VG (if possible depending on the size of the disks)|
292298
|VG expanding|In case of LV partitions with a RAID level of 0, the VG will span multiple PPs (therefore PDs) and no SR device will be created|
293299
|VG Disk fill|Remaining disk space will be filled by a VG (if any LV exists). The size of LVs attached to the VG is not affected.|

pages/cloud/dedicated/partitioning_ovh/guide.en-asia.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: 'OVHcloud API & Partitioning'
33
slug: api-partitioning
44
excerpt: 'Find out what the OVHcloud API provides in order to customize the partitioning configuration during the server OS installation'
55
section: 'RAID and disks'
6-
updated: 2022-11-29
6+
updated: 2023-03-08
77
---
88

99
<!-- markdownlint-disable-next-line MD036 -->
10-
**Last updated 29th November 2022**
10+
**Last updated 8th March 2023**
1111

1212
## Objective
1313

@@ -140,6 +140,7 @@ Of course a partition can be altered, deleted, added and then displayed:
140140
141141
#### API Partition Layout
142142

143+
<!-- markdownlint-disable-next-line MD036 -->
143144
**Structure**
144145

145146
A partiton layout is a list of partitions. Here is an example of a partition structure:
@@ -174,9 +175,13 @@ A partiton layout is a list of partitions. Here is an example of a partition str
174175
<!-- markdownlint-disable-next-line MD028 -->
175176
> [!primary]
176177
>
177-
> volumeName: only useful if type lv is set
178+
> volumeName : two use cases
179+
>
180+
> - type lv is set: logical volume name (mandatory)
181+
> - filesystem is zfs: custom zpool name and its dataset prefixes (optional, zpool name will be automatically generated if not specified)
178182
>
179183
184+
<!-- markdownlint-disable-next-line MD036 -->
180185
**Filesystems & LVM + RAID levels Comptibility Matrix**
181186

182187
The following table provides an overview of filesystem compatibility with RAID levels as well as LVM within the context of OVHcloud:
@@ -278,14 +283,15 @@ The following table gives an overview of well known customer errors and how to f
278283
|Error with MBR partition table: partition `p` cannot end after 2 TiB (`interval stop`) and this server does not support GPT! OVHcloud also needs to add a `cloud-init size` cloud-init partition at the very end of the disk. Therefore all customer partitions must end before (2TiB - `cloud-init size`).|- We need to add a config-drive partition at the end of 1 disk on your dedicated server. The last partition of your partitioning will end after the 2TiB position on disk. So appending a config-drive partition after the last partition will start after 2TiB position on disk and you are trying to apply such partitioning to a server that doesn't support GPT|- Reduce the partition `p` size (or any other partition) so that the total sum of all partitions size is less than 2TiB<br />- Do not define a partition that fills the disk (or partition with size 0 when defined within the [OVHcloud API](https://ca.api.ovh.com/)) on a [customer template](#customertemplates) that will be used for servers with disks bigger than 2TiB that don't support GPT|
279284
|`/boot` (or `/` if no `/boot` defined) partition cannot be larger than 2097151 MiB on this hardware|- GRUB partition cannot be larger than 2 TiB with this hardware raid controller|- Create a separate `/boot` partition with a size less than 2TiB (1GiB should be enough)|
280285
|`/boot` (or `/` if no `/boot` defined) partition type cannot be `XFS`|- GRUB partition doesn't support `XFS` filesystem type on this Operating System. This is the case for most of debian-like OSes (debian, proxmox, ubuntu)|- Create a separate `/boot` partition with filesystem other than `XFS`<br />- Don't create a separate `/boot` partition but choose a filesystem other than `XFS` for the `/` partition|
286+
|`ZFS` partition already exists with zpool name `n`. Either choose another name for the `m` partition or set the same RAID level for all partitions within zpool `n`|Assigning multiple `ZFS` partitions to the same zpool name is possible: it means each dataset will be part of the same zpool. This is possible only if all the datasets (therefore the partitions defined via the API) have the same RAID level|- Set the same RAID level as on the existing `ZFS` partition which will be part of the same zpool<br />- Choose another zpool name: this partition will not be part of the same zpool<br />- Don't provide any zpool name: we will assign a default zpool name and this partition will not be part of the same zpool|
281287

282288
#### Input customer auto-fixing
283289

284290
In order to improve customer experience, reduce [OVHcloud support](https://help.ovhcloud.com/asia/) workload and to avoid introducing breaking changes for customer, some customer input is automatically fixed or changed by the backend. The following table gives an overview of what is currently auto-fixed/changed during the **pre-processing**:
285291

286292
|Subject|Description|
287293
|---|---|
288-
|ZP grouping|All ZFS partitions with the same RAID level will be grouped within the same zpool (ZP) (if possible depending on the size of the disks)|
294+
|ZP grouping|All ZFS partitions with the same RAID level will be grouped within the same zpool (ZP) if possible depending on the size of the disks and if the same zpool name is provided or no zpool name is provided|
289295
|LV grouping|All partitions of type `lv` with the same RAID level will be grouped within the same VG (if possible depending on the size of the disks)|
290296
|VG expanding|In case of LV partitions with a RAID level of 0, the VG will span multiple PPs (therefore PDs) and no SR device will be created|
291297
|VG Disk fill|Remaining disk space will be filled by a VG (if any LV exists). The size of LVs attached to the VG is not affected.|

pages/cloud/dedicated/partitioning_ovh/guide.en-au.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: 'OVHcloud API & Partitioning'
33
slug: api-partitioning
44
excerpt: 'Find out what the OVHcloud API provides in order to customize the partitioning configuration during the server OS installation'
55
section: 'RAID and disks'
6-
updated: 2022-11-29
6+
updated: 2023-03-08
77
---
88

99
<!-- markdownlint-disable-next-line MD036 -->
10-
**Last updated 29th November 2022**
10+
**Last updated 8th March 2023**
1111

1212
## Objective
1313

@@ -140,6 +140,7 @@ Of course a partition can be altered, deleted, added and then displayed:
140140
141141
#### API Partition Layout
142142

143+
<!-- markdownlint-disable-next-line MD036 -->
143144
**Structure**
144145

145146
A partiton layout is a list of partitions. Here is an example of a partition structure:
@@ -174,9 +175,13 @@ A partiton layout is a list of partitions. Here is an example of a partition str
174175
<!-- markdownlint-disable-next-line MD028 -->
175176
> [!primary]
176177
>
177-
> volumeName: only useful if type lv is set
178+
> volumeName : two use cases
179+
>
180+
> - type lv is set: logical volume name (mandatory)
181+
> - filesystem is zfs: custom zpool name and its dataset prefixes (optional, zpool name will be automatically generated if not specified)
178182
>
179183
184+
<!-- markdownlint-disable-next-line MD036 -->
180185
**Filesystems & LVM + RAID levels Comptibility Matrix**
181186

182187
The following table provides an overview of filesystem compatibility with RAID levels as well as LVM within the context of OVHcloud:
@@ -278,14 +283,15 @@ The following table gives an overview of well known customer errors and how to f
278283
|Error with MBR partition table: partition `p` cannot end after 2 TiB (`interval stop`) and this server does not support GPT! OVHcloud also needs to add a `cloud-init size` cloud-init partition at the very end of the disk. Therefore all customer partitions must end before (2TiB - `cloud-init size`).|- We need to add a config-drive partition at the end of 1 disk on your dedicated server. The last partition of your partitioning will end after the 2TiB position on disk. So appending a config-drive partition after the last partition will start after 2TiB position on disk and you are trying to apply such partitioning to a server that doesn't support GPT|- Reduce the partition `p` size (or any other partition) so that the total sum of all partitions size is less than 2TiB<br />- Do not define a partition that fills the disk (or partition with size 0 when defined within the [OVHcloud API](https://ca.api.ovh.com/)) on a [customer template](#customertemplates) that will be used for servers with disks bigger than 2TiB that don't support GPT|
279284
|`/boot` (or `/` if no `/boot` defined) partition cannot be larger than 2097151 MiB on this hardware|- GRUB partition cannot be larger than 2 TiB with this hardware raid controller|- Create a separate `/boot` partition with a size less than 2TiB (1GiB should be enough)|
280285
|`/boot` (or `/` if no `/boot` defined) partition type cannot be `XFS`|- GRUB partition doesn't support `XFS` filesystem type on this Operating System. This is the case for most of debian-like OSes (debian, proxmox, ubuntu)|- Create a separate `/boot` partition with filesystem other than `XFS`<br />- Don't create a separate `/boot` partition but choose a filesystem other than `XFS` for the `/` partition|
286+
|`ZFS` partition already exists with zpool name `n`. Either choose another name for the `m` partition or set the same RAID level for all partitions within zpool `n`|Assigning multiple `ZFS` partitions to the same zpool name is possible: it means each dataset will be part of the same zpool. This is possible only if all the datasets (therefore the partitions defined via the API) have the same RAID level|- Set the same RAID level as on the existing `ZFS` partition which will be part of the same zpool<br />- Choose another zpool name: this partition will not be part of the same zpool<br />- Don't provide any zpool name: we will assign a default zpool name and this partition will not be part of the same zpool|
281287

282288
#### Input customer auto-fixing
283289

284290
In order to improve customer experience, reduce [OVHcloud support](https://help.ovhcloud.com/en-au/) workload and to avoid introducing breaking changes for customer, some customer input is automatically fixed or changed by the backend. The following table gives an overview of what is currently auto-fixed/changed during the **pre-processing**:
285291

286292
|Subject|Description|
287293
|---|---|
288-
|ZP grouping|All ZFS partitions with the same RAID level will be grouped within the same zpool (ZP) (if possible depending on the size of the disks)|
294+
|ZP grouping|All ZFS partitions with the same RAID level will be grouped within the same zpool (ZP) if possible depending on the size of the disks and if the same zpool name is provided or no zpool name is provided|
289295
|LV grouping|All partitions of type `lv` with the same RAID level will be grouped within the same VG (if possible depending on the size of the disks)|
290296
|VG expanding|In case of LV partitions with a RAID level of 0, the VG will span multiple PPs (therefore PDs) and no SR device will be created|
291297
|VG Disk fill|Remaining disk space will be filled by a VG (if any LV exists). The size of LVs attached to the VG is not affected.|

0 commit comments

Comments
 (0)