Some utilities I find helpful:
iftop -- shows current open connections and their transfer rates
vmstat -- shows virtual memory status (found in procps package)
iostat -- shows current IO transfer rate by devices (found in sysstat package)
dstat -- combines vmstat, iostat and iostat-like info for network IO
iotop -- like top, but the focus is on IO transfer rate
lsof -- get info from currently open files
fuser -- does a subset of lsof: identify processes and users using certain files
2009-07-20
Adding an md device to a LVM VG containing the root filesystem
Debian:
When adding an md device to a LVM VG containing the root filesystem, like so:
vgextend vg_with_root /dev/md99
Don't forget to run the following:
/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
dpkg-reconfigure mdadm
The first one is to update the mdadm.conf, and the second one is to reconfigure the initrd image the new md device will also be assembled prior to activating the VG. Otherwise, activating the VG will fail because it cannot find a required PV (the new md device).
When adding an md device to a LVM VG containing the root filesystem, like so:
vgextend vg_with_root /dev/md99
Don't forget to run the following:
/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
dpkg-reconfigure mdadm
The first one is to update the mdadm.conf, and the second one is to reconfigure the initrd image the new md device will also be assembled prior to activating the VG. Otherwise, activating the VG will fail because it cannot find a required PV (the new md device).
2009-04-22
my wife, tetris ds mania.
Need to record this for family posterity: my wife just got 569131 points, level 31st.
2009-03-17
Keeping track of manually installed packages in Debian
This is how I keep track of manually installed packages in Debian:
Everytime I need to install a package, I create a file with the same name as the package name.
Examples:
$ touch /usr/local/etc/packages/list/qmail
$ echo 2009-03-17 J requested ipsvd for his app > /usr/local/etc/packages/ipsvd
$ make -f /usr/local/etc/packages/Makefile
apt-get install "ipsvd"
touch /usr/local/etc/packages/list/.ipsvd
apt-get install "qmail"
touch /usr/local/etc/packages/list/.qmail
And if you do another make:
$ make -f /usr/local/etc/packages/Makefile
make: Nothing to be done for `install-packages'.
In practice, I use aliases so I don't have type long paths. Here's how to set it up. Just copy-and-paste the code below:
Everytime I need to install a package, I create a file with the same name as the package name.
Examples:
$ touch /usr/local/etc/packages/list/qmail
$ echo 2009-03-17 J requested ipsvd for his app > /usr/local/etc/packages/ipsvd
$ make -f /usr/local/etc/packages/Makefile
apt-get install "ipsvd"
touch /usr/local/etc/packages/list/.ipsvd
apt-get install "qmail"
touch /usr/local/etc/packages/list/.qmail
And if you do another make:
$ make -f /usr/local/etc/packages/Makefile
make: Nothing to be done for `install-packages'.
In practice, I use aliases so I don't have type long paths. Here's how to set it up. Just copy-and-paste the code below:
mkdir -p /usr/local/etc/packages/list
cd /usr/local/etc/packages
cat > Makefile <<EOF
packages=/usr/local/etc/packages/list/*
install-packages: \$(packages)
\$(packages): /usr/local/etc/packages/list/%: /usr/local/etc/packages/list/.%
/usr/local/etc/packages/list/.%:
`echo -e \\\t`apt-get install "\$*"
`echo -e \\\t`touch \$@
EOF
2009-02-24
Video feed for President's address to Congress
CNN, MSNB, and FOX are all showing the same feed. Are they not allowed to put their own crews there?
2009-02-06
Mini-Tripod
The mini-tripod I ordered just arrived. It has bend-able legs and its small size makes it a perfect travelling companion for my pocket camera. This should solve my problem with having to keep the camera steady for night shooting.
So, what night shooting is complete without a few pictures of the stars? Here I have ursa major, leo, puppis, and canis major. Oh, look, we're even graced by Saturn's appearance.
So, what night shooting is complete without a few pictures of the stars? Here I have ursa major, leo, puppis, and canis major. Oh, look, we're even graced by Saturn's appearance.
I love the tripod.
2009-01-26
Oil's market is International
"The oil is drilled right here in Alaska, and yet we're paying $8 a gallon? Something is amiss here. The oil companies are making billions of dollars, and people here can't afford to eat," said Pat Samson, social services director for the Assn. of Village Council Presidents in Bethel, about 35 miles southwest of Tuluksak. [Source: In rural Alaska, villagers suffer in near silence]
In fact, why should the oil companies have to prioritise local residents? The residents are poor and their demands, compared to the international market, are immaterial. Setting up, no, even thinking about setting up to serve local residents would cost more than simply throwing the oil to the international market.
Subscribe to:
Posts (Atom)