Proxmox storage tips/HDD pass through

Check/list hdd hw ls /dev/disk/by-id/ lsblk Check MD raid status cat /proc/mdstat Remove a hdd from software raid md0 mdadm –fail /dev/md0 /dev/sdx1mdadm –remove /dev/md0 /dev/sdx1 mdadm –remove /dev/md0 /dev/sdx2 udevadm info –query=all –name=/dev/sdx | grep ID_SERIAL zfs list zpool status zfstorage Remove a hdd from zpool zpool detach zfstorage /dev/disk/by-id/…. zpool status zfstorage clear […]

Adding a second HDD to Proxmox This really is an odd failing that has been around since Proxmox moved to their new interface. So here are three ways you can do this, all of which involve ssh’ing into your Proxmox box. Assuming /dev/sdb is your new disk. If you want to use LVM.ssh into your Proxmox box and do, pvcreate […]

Colection of Opensource Project Protocols IMAP/POP3 Dovecot ( IMAP and POP3 server written primarily with security in mind. Cyrus ( Intended to be run on sealed servers, where normal users are not permitted to log in. Qpopper ( One of the oldest and most popular server implementations of POP3. DBMail ( Fast and scalable email services, storage of mail messages in a […]

Add new HDD to LVM group

First step: use gdisk (or fdisk) #gdisk /dev/sdb and select part code 8e00 – LVM partition we need to prepare our new partitions for LVM #pvcreate /dev/sdb1 Check pvs #pvdisplay Second step: extends the logical partition as far as it can. No need to check and calculate GBs or blocks in various methods. #vgextend /dev/ubuntu-vg […]

Google Cloud Storage Nearline Personal Linux Desktop Backup Backup data to the cloud for cheap with Google Cloud and Nearline storage. I use Google Cloud Storage Nearline to backup my desktop, openmediavault NAS, servers, and more. Here is how I do it! 1. First, sign in here. It may prompt to setup billing if that has not been done: 2. Next, […]

Add/remove passphrase to a private key Of course you can add/remove a passphrase at a later time. add one (assuming it was an rsa key, else use dsa) openssl rsa -aes256 -in your.key -out your.encrypted.key mv your.encrypted.key your.key the -aes256 tells openssl to encrypt the key with AES256. As ArianFaurtosh has correctly pointed out: For the encryption algorithm you can use aes128, aes192, aes256, camellia128, camellia192, camellia256, des (which you definitely should avoid), des3 or idea remove it […]

How to detect changes in a directory with Bash Sometimes it may be useful to have a script detect whether the contents in a directory have changed since the last time script was run, but excluding some of the files or directories inside. This may be used, among other things, to make backups, for example: there are situations where, instead of doing incremental backups, one […]