Office of Secret Intelligence

Who taught you to be a spy, fucking Gallagher!?!

Configuration Transformation with ctt

http://ctt.codeplex.com/

Snippet: Run fsck On LVM Partitions

lvm pvscan
lvm vgscan
lvm lvchange -ay /dev/VolGroup00/LogVol_home
^ volume group ^ logical volume name
ex: kodiak-dev ex: home, var, usr lvm lvscan fsck -yfv /dev/kodiak-dev/home

Rinse and repeat for the rest of the logical volumes you wish to fsck.


Linux Snippet: Bring Networking Back Up

It's been a while since I've posted, I've just been buried with work and life.

 

Yesterday I was trying to recover some things from a personal VM that went kaput for reasons completely unrelated to this post, and I found that networking was disabled, even though I had it enabled through Virtualbox.

 

After a little bit of digging, I found the following command did the trick:

 

sudo dhclient eth0

nixCraft (one of my favorite *nix knowledgebase sites) explains it best:

 

The dhclient command, provides a means for configuring one or more network interfaces using the Dynamic Host Configuration Protocol, BOOTP protocol, or if these protocols fail, by statically assigning an address.

Thus starts my journal (and what this blog was originally intended to be) of miscellaneous commands and algorithms that I need to keep handy.


Back