based on https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/ https://kubernetes.io/docs/reference/
For a linux shell which has "curl" and "jq" installed
asnp veeampssnapin | |
$reglocation = "\[location:([a-zA-Z0-9]+)\]" | |
$proxies = Get-VBRViProxy | Group-Object -AsHashTable -AsString -property { if ($_.description -match $reglocation) { $matches[1].trim() } else { "unspecified" }} | |
foreach($proxygroup in $proxies.GetEnumerator()) { | |
Write-host ("Found location {0} with {1} proxies" -f $proxygroup.Name,$proxygroup.Value.Count) | |
} |
function get-clihistory { $h = history | ? { -not ( $_.CommandLine -match "^(history|get-clihistory)") };$h.CommandLine -join "`n" | Set-Clipboard } |
<# | |
Make a folder "uuid" and in this folder a file "uuid.txt". Paste in the content of the variable $lookfor (for example d:\uuid\uuid.txt contains "adfdca28-12ad-11eb-adc1-0242ac120002"). You can have different uuid on different disk for different scripts | |
#> | |
$lookfor = "adfdca28-12ad-11eb-adc1-0242ac120002" | |
$vols = Get-Volume | ? { $_.DriveLetter -ne $null } | |
$disk = $null | |
foreach($vol in $vols) { | |
$uuidpath = ("{0}:\{1}" -f $vol.driveletter,"uuid\uuid.txt") | |
if (Test-Path $uuidpath) { |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: minios3 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: minios3 | |
labels: |
#!/usr/bin/bash | |
# first upload (might not work) | |
# make sure your vm has a second disk /dev/sdb that is completely empty (used for the zfs pool) | |
# you need some free ip range in your environment eg 192.168.0.40 is your server, then supply 192.168.0.41 for first and 192.168.0.49 for last if all the ips in between are free | |
ZFSDISK=/dev/sdb | |
ADMINNAME=admin | |
KASTENTOKENAUTH=0 | |
if [ ! $(ls $ZFSDISK) ];then echo "ZFSDisk $ZFSDISK not found";exit -1 ;fi |
echo '1' > /sys/class/scsi_disk/2\:0\:0\:0/device/rescan | |
fdisk /dev/sda #create new partition with n and all default + w to write out, eg next partition 4 | |
lvm vgextend ubuntu-vg /dev/sda4 | |
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv | |
resize2fs /dev/ubuntu-vg/ubuntu-lv | |
#or if volume group already absorbed everything | |
#sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv | |
#sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv |
based on https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/ https://kubernetes.io/docs/reference/
For a linux shell which has "curl" and "jq" installed
#Run as admin | |
$name = "VMs to AWS" | |
Connect-VBRServer -server localhost | |
$backup = Get-VBRBackup -name $name | |
$rps = $backup | Get-VBRRestorePoint | Sort-Object -Property CreationTime | |
$cloudstat = @() | |
foreach ($rp in $rps) { | |
$storage = $rp.GetStorage() |
# NTS list | |
# https://www.cloudflare.com/time/ | |
# cloudflare is an anycast server and should select a server that is close to your location | |
server time.cloudflare.com iburst nts | |
# https://www.netnod.se/time-and-frequency/how-to-use-nts | |
# ntp.se should be anycast | |
server nts.ntp.se nts iburst | |
server nts.netnod.se nts iburst |