Script per pulizia storage
Da wiki.gienne.cloud.
Rif: https://blogs.oracle.com/scoter/oracle-vm-34:-identify-orphan-vdisks-on-repositories-find-vorph
wget https://cdn.app.compendium.com/uploads/user/e7c690e8-6ff9-102a-ac6d-e4aebca50425/f2e3e7b6-c53b-4457-85e9-49625315791a/File/9639556a27a03c161cb5190167806749/find_vorph_v_0_1_tar.gz
Da doc per l'installazione dello script: _____
1) Launch install.sh script to install the script under the path "/usr/local/bin" and setup self-authentication to Oracle VM Manager
- the script is based on expect, so wait for a success message while installing it
1a) Syntax: ./install.sh <ovmm_host> <ovmm_oracle_linux_user_password> <ovmm_admin_manager_password> ______
Info necessaria:
root: password oracle: password admin: password
Ip dell'ovm: 10.11.12.13
./install.sh 10.11.12.13 admin password
Attenzione fare un ssh alla console oakcli per importare il certificato ssh: ssh admin@localhost -p 10000 altrimenti potrebbe dare un errore.
Esempio di output:
[root@ora-vm-manager ~]# find-vorph
==> Oracle VM 3.4 CLI
##################################################################################### # These are the commands to delete all orphan vdisks on repository ==> OracleVM/ 0004fb00000300001f1b3353aa1689db <== # Following commands need to be executed using Oracle VM CLI interface ##################################################################################### delete VirtualDisk id=0004fb0000120000231c4cd9c1342b3f.img # !!! 12 GB of disk-space can be recovered on this repository!!!
Il nome che dà non è il nome che viene dato in fase di configurazione ma è l'id identificativo.