for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done
fdisk -l
fdisk /dev/[diskid]
mkfds.ext4 /dev/[diskid]
vim /etc/fstab ## add the mount path for /dev/[diskid]
umount [mountpoint]
growpart /dev/[diskid]
mount /dev/[diskid] [mountpoint]
Category Archives: Scribbles
DNS Cmdlets
To quickly add a dns entry to Microsoft DNS one can use the following cmdlet on the dns server:
dnscmd . /RecordAdd example.org server A 192.0.2.1
To quicly add a dns entry to a PowerDNS server one can use the following cmds on the dns server:
pdnsutil replace-rrset example.org server A 900 192.0.2.1
pdnsutil increase-serial example.org
pdns_control notify example.org