How to wipe and initialise disks with pvesh?

Dec 25, 2021
18
0
6
62
Initialising with GTP:
The command needed seems to be pvesh create /nodes/{node}/disks/initgpt (pve-docs)
...but I don't know hot to implement it. What would be the command to initialise /dev/sdc?

Same problem with pvesh set /nodes/{node}/disks/wipedisk ...
 
I found it out myself. Given the setup below it's:

pvesh set /nodes/pve/disks/wipedisk --disk /dev/sdc
pvesh create /nodes/pve/disks/initgpt --disk /dev/sdc
 

Attachments

  • Selection_001.png
    Selection_001.png
    175.5 KB · Views: 18
Last edited: