Index

Notes

  1. Window 1
  2. Window 2
  3. General notes

Useful Information

  1. Guardian Restore
  2. Cloud Restore
  3. Raid Repair
    1. Adaptec
    2. Software Raid
    3. LSI
    4. Software raid to Hardware raid
  4. Rack Mount Rows
  5. Mysql dump
  6. Interwerx
  7. WHM API
  8. Chasis swap
  9. Windows commands
  10. xpaste
  11. find docroot
  12. clown funnyness
  13. ssh keys
  14. duff
  15. subdomain finding ideas
  16. RAM

Software Raid

********** grub2-install /dev/sda ------ on all boot disks ***********

devlist=$(for dev in `blkid | cut -d: -f1 | egrep -v '(md|mapper|hcp|loop)'`; do echo ${dev%[0-9]}; done | sort -u) ; echo $devlist |tee /home/temp/devlist.txt

different commands for gpt and msdos
for device in $devlist; do echo -n "$device: "; table=`parted $device print | grep Table`; echo " $table"; done

MSDOS
test -d /home/temp/partitions && mv /home/temp/partitions{,.`date +%s`.bak}; mkdir -p /home/temp/partitions; for device in $devlist; do echo "$device dumped"; sfdisk -d $device > /home/temp/partitions/${device#/dev/}.part; done
________________________________________________________________________________________________________________________________

GPT
test -d /home/temp/partitions && mv /home/temp/partitions{,.`date +%s`.bak}; mkdir -p /home/temp/partitions; for device in $devlist; do echo "$device dumped"; sgdisk -b /home/temp/partitions/${device#/dev/}.part $device; done