omconfig storage vdisk action=replacememberdisk controller=1 vdisk=4 source=0:3 destination=0:5
omconfig storage pdisk action=remove controller=1 pdisk=0:2:3
Passage RAID 0 en RAID 1 OMSA CLI
##################################
# return 1 if alive, 0 if dead | |
ping_success() { | |
! ping -c1 -W1 8.8.8.8 >/dev/null 2>&1 | |
} | |
# Spinner taken from https://stackoverflow.com/a/12498395 | |
spinnerindex=0 | |
spinner='-\|/' | |
sleepy_spinner() { | |
for (( i=0; i<$(($1 * 2)); i++ )) |
omconfig storage vdisk action=replacememberdisk controller=1 vdisk=4 source=0:3 destination=0:5
omconfig storage pdisk action=remove controller=1 pdisk=0:2:3
Passage RAID 0 en RAID 1 OMSA CLI
##################################