Backup Scripts for Linux

Sending out a couple of scripts for backing up entire disks and files for Linux. We are currently backing up to a ZFS Appliance share since we don't have enough ports for a backup network. Each of these scripts will do a count of existing backup files and remove anything older. dd_backup.sh #/bin/bash source="sda" dest="/zfssa/os_backup" … Continue reading Backup Scripts for Linux

Install RHEL 7 Guest on Centos 8 Server via Text Mode & Kickstart

This session we are going to go over and deploy is using an ISO and kickstart install. This is different than a PXE install and does not require a PXE nor TFTP setup. In this example everything we are accessing is over NFS mounts but could very well have been local. Install using kickstart file … Continue reading Install RHEL 7 Guest on Centos 8 Server via Text Mode & Kickstart

One Liners for *nix

# Remove 1st Column  awk 'BEGIN{FS=OFS="#"}{$2=$3=""}{print}')cat ldm_dump.o |awk 'BEGIN{FS=OFS=" "}{$1=""}{print}' # Create non-existent dirs for i in `cat /etc/vfstab|grep vx|awk '{print $3}'`; do mkdir $i; done # Uncompress and tar install gunzip -c prdhbs1_hbsdg.tar.gz|tar xvf - # Veritas vxprint -v |grep -v NAME|grep -v group |awk '{print $2" ", $5}' # Grow and extend Vol/FS … Continue reading One Liners for *nix

One Liners for Solaris

Get disks attached to HBA for i in `fcinfo hba-port |grep WWN|grep HBA|awk '{print $4}'`; do fcinfo remote-port -sl -p $i; done hostname;fcinfo hba-port |grep WWN|grep HBA|awk '{print $4}' Logical Domains Add Vnets from List for i in `ldm list |awk '{print $1}'|grep -v NAME|grep -v primary`; do ldm add-vnet linkprop=phys-state vnet0 public-vsw0 $i; ldm … Continue reading One Liners for Solaris