# vgcreate test_vg /dev/sdc
# pvdisplay
# vgrename test_vg my_vg
# vgextend my_vg /dev/sdg
# pvdisplay
# lvcreate --type raid6 -i 3 -L 1G -n test_lv a_vg
# lvextend -L +128M /dev/mapper/a_vg-test_lv
# pvs
# vgs
$ for DEVICE in /dev/sd?; do sudo grub-install $DEVICE; done
Install package libpam-tmpdir
sudo apt install libpam-tmpdir
At login, the directory /tmp/user/$UID
will be created for the user and permissions set such that no other users have access to this directory.
Sources: https://unix.stackexchange.com/questions/192409/per-user-tmpfs-directories/192426#192426
Current state of RAID array:
$ cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md125 : active raid1 sdf4[1] sde4[0] sdg4[2]
1922130944 blocks super 1.2 [3/3] [UUU]
unused devices: <none>
Name of the new RAID partition in this example: backup
Partition disk #1 (ata-YOURDISKID
/sda
in this example):
$ parted --align=optimal /dev/disk/by-id/ata-YOURDISKID
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(Assuming a Debian 8-like system)
-
Install
prometheus-node-exporter
$ sudo apt update && sudo apt install prometheus-node-exporter
-
Configure
prometheus-node-exporter
to expose metrics only tolocalhost
, not on to all networks. Modify file/etc/default/prometheus-node-exporter
:# Set the command-line arguments to pass to the server.
$ helm install kubernetes-dashboard stable/kubernetes-dashboard --namespace MY_NAMESPACE --set ingress.enabled=true --set ingress.hosts={MYDASHBOARD.EXAMPLE.COM} --set-string ingress.annotations."nginx\.ingress\.kubernetes\.io/secure-backends"="true"
Error: UPGRADE FAILED: failed to create patch: failed to get versionedObject: unable to convert unstructured object to extensions/v1beta1, Kind=Ingress: unrecognized type: string
NB: A fix for the --set-string
flag is on the way: helm/helm#4142