ClusterLabs / ClusterLabs/anvil

Create testing for storage group management

Open
#862 1 comment 0 reactions 1 assignee Claimed by @fabbione View on GitHub
pending test automation
Dominant language
Perl
Stars
7
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Storage groups "pool" VGs from different hosts together. This is used to allow the Anvil! to know which LVs to use when provisioning servers / adding disks to servers / protecting servers on DR host(s). All referenced UUIDs are the various volume group internal UUIDs, which are not actual UUIDs annoyingly.

1. Show all VG and SG data;
```
# anvil-manage-storage-groups
Anvil Node: [an-anvil-01] - Demo VM Anvil! Node 1
- Subnode: [an-a01n01] volume groups;
- [an-a01n01_vg0], size: [248.41 GiB], free: [152.68 GiB], internal UUID: [m3Qkdi-ts8I-ZOwG-Dw41-117f-X0fz-g8gI1f]
- Subnode: [an-a01n02] volume groups;
- [an-a01n02_vg0], size: [248.41 GiB], free: [152.68 GiB], internal UUID: [LG8Wib-poB1-ygyo-fVUj-yTks-Mpq4-4qs057]
- Storage group: [Storage group 1], UUID: [34dd8da5-2c79-4e77-b4ba-28258c7defbb]
- [an-a01n01]:[an-a01n01_vg0]
- [an-a01n02]:[an-a01n02_vg0]

Anvil Node: [an-anvil-02] - Demo VM Anvil! Node 2
- Subnode: [an-a02n01] volume groups;
- [an-a02n01_vg0], size: [248.41 GiB], free: [150.54 GiB], internal UUID: [Z5yXC6-Vv02-kxhH-8EJn-ieGZ-2104-CLwxrl]
- Subnode: [an-a02n02] volume groups;
- [an-a02n02_vg0], size: [248.41 GiB], free: [150.54 GiB], internal UUID: [JrZ4ty-PfEM-kqas-QJpv-gToH-FanN-HYSAz0]
- Storage group: [Storage group 1], UUID: [f101fe1b-ba0e-49af-9a57-b6fe45177072]
- [an-a02n01]:[an-a02n01_vg0]
- [an-a02n02]:[an-a02n02_vg0]

Anvil Node: [an-anvil-03] - Demo VM Anvil! Node 3
- Subnode: [an-a03n01] volume groups;
- [an-a03n01_vg0], size: [249.00 GiB], free: [147.20 GiB], internal UUID: [19Sd1Q-HA8B-Z7iy-PsEM-NzgV-t7xb-zvJm5M]
- Subnode: [an-a03n02] volume groups;
- [an-a03n02_vg0], size: [249.00 GiB], free: [147.20 GiB], internal UUID: [10GAjf-E2yA-81kr-d1sV-JerO-Fbbn-ZwtDgV]
- Storage group: [Storage group 1], UUID: [cf606840-d3e2-4f1f-90ff-25bc4b9a8014]
- [an-a03n01]:[an-a03n01_vg0]
- [an-a03n02]:[an-a03n02_vg0]

Disaster Recovery Hosts:
- DR Host: [an-a01dr01] VGs:
- [an-a01dr01_vg0], size: [77.88 GiB], free: [4.00 MiB], internal UUID: [KE03fH-9jp2-szdN-LcnL-fAfw-lG1A-pCqMsC]
- DR Host: [an-a03dr01] VGs:
- [an-a03dr01_vg0], size: [81.80 GiB], free: [4.00 MiB], internal UUID: [Nn4LOd-Mb3P-4cs0-GaVS-AClk-gVsy-U1FxI7]
```

2. Add a VG (using it's internal VG UUID) to an existing SG;
```
# anvil-manage-storage-groups --anvil an-anvil-01 --group "Storage group 1" --add --member KE03fH-9jp2-szdN-LcnL-fAfw-lG1A-pCqMsC
Added the volume group: [an-a01dr01_vg0] on the host: [an-a01dr01] to the storage group: [Storage group 1]. The new member UUID is: [a1f94e96-3022-4bf4-8b39-a644a09c745f].
```

3. Verify;
```
# anvil-manage-storage-groups --anvil an-anvil-01
Anvil Node: [an-anvil-01] - Demo VM Anvil! Node 1
- Subnode: [an-a01n01] volume groups;
- [an-a01n01_vg0], size: [248.41 GiB], free: [152.68 GiB], internal UUID: [m3Qkdi-ts8I-ZOwG-Dw41-117f-X0fz-g8gI1f]
- Subnode: [an-a01n02] volume groups;
- [an-a01n02_vg0], size: [248.41 GiB], free: [152.68 GiB], internal UUID: [LG8Wib-poB1-ygyo-fVUj-yTks-Mpq4-4qs057]
- Storage group: [Storage group 1], UUID: [34dd8da5-2c79-4e77-b4ba-28258c7defbb]
- [an-a01dr01]:[an-a01dr01_vg0]
- [an-a01n01]:[an-a01n01_vg0]
- [an-a01n02]:[an-a01n02_vg0]

Disaster Recovery Hosts:
- DR Host: [an-a01dr01] VGs:
- [an-a01dr01_vg0], size: [77.88 GiB], free: [4.00 MiB], internal UUID: [KE03fH-9jp2-szdN-LcnL-fAfw-lG1A-pCqMsC]
- DR Host: [an-a03dr01] VGs:
- [an-a03dr01_vg0], size: [81.80 GiB], free: [4.00 MiB], internal UUID: [Nn4LOd-Mb3P-4cs0-GaVS-AClk-gVsy-U1FxI7]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.