This is your friend.
iostat -x
There are a few columns are you interested in on this one.
r/s -
w/s
avgqu-sz - The Average Queue Size is the amount of I/O waiting in the queue.
await - The Average wait is the time I/O waits in the host I/O queue.
%util
Finding a disk hog:
find / -xdev -size +50000 -mtime -60
Category: Uncategorized
Multipath and Linux
I learn more and more about this everday, and it’s a rather large beast. This will be a mesh of what I know, what I’ve learned, and who I’ve learned it from. Credits at the bottom, and please visit the source sites to get a feel for what people know.
Information you can pull from the system and how they map:
multipath -v2 or multipath -v3 If multipath isn't setup, then you can use the following:
dmsetup ls --target=multipath and multipath -ll Need to find a way to track down the different udev/dm devices to map sar -d output to actual devices.
Adding a new lun on a qlogic card? First rescan the scsi bus for new luns.
for host in `ls /sys/class/fc_host`; do
echo “- – -” > /sys/class/scsi_host/${HOST}/scan
done
Then have multipath show the new paths.
multipath -r
multipath -v2
multipath -ll
All done.
Devmapper aliases are stored here:
/var/lib/multipath/bindings
We will assume the new volume is given an mpath name of mpath3 for this discussion.
Add it as a pv.
pvcreate
Resources:
http://www.fearthepenguin.net/technical-documents/scan-for-newremoved-luns-linux-with-qlogic-fiberchannel-hba/
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Configuration_Example_-_Oracle_HA_on_Cluster_Suite/multipath_configuration.html
Active Active Pathing:
http://www.linuxquestions.org/questions/linux-networking-3/multipath-not-active-active-922955/
EVO 3d 4000mah Battery
This started with my back battery cover starting to crack. I was told by online chat that you have to call to get a replacement. So I called the following number 832-204-1118, and got it for $15 plus shipping. Providing the rest of the information below for parts and accessories that also go with an Evo 3d. I know they aren’t being made, but they are still a pretty good phone.
This protector is a bit pricey, but well worth it. If you do get it, then you’ll want to purchase the case/carrier, docking station, and perhaps the car mount.
Photo stitching
I have a poster I wanted to scan and create a 3d model of. My problem is I have a bunch of pictures of it, and needed to put them all together so I would have a template to work with.
Thanks to Eric, I think the answer has been found. Introducing the Image Composite Editor. 32 and 64 bit versions
That’s not right!!
Looks like the JHead I’m using decided to spring a leak. There was actually a large mass there, but I cleaned most of it off before I thought to take a picture of it. Learning to document findings before action is a difficult transition for me for some reason.
Reprap Prusa Calibration
Using Gmail as your smarthost
Sendmail Debugging
sendmail -qf -v (process what is in the queue)
Setting up Gmail as your smart host
mkdir -p /etc/mail/authchmod 700 /etc/mail/auth
Change the user_id and password in the following example:
cat >> /etc/mail/auth/client-info <<EOF
AuthInfo:smtp.gmail.com “U:smmsp” “I:user_id” “P:password” “M:PLAIN”
AuthInfo:smtp.gmail.com:587 “U:smmsp” “I:user_id” “P:password” “M:PLAIN”
EOF
Add the following to the end of the /etc/mail/sendmail.mc file:
cat >> /etc/mail/sendmail.mc <<EOF GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl EOF
Correct the sender’s email address to match the correct domain
cat >> /etc/mail/genericsdomain <<EOF
cookie!cookie!asterisk ncherry@linuxha.com
EOF
cd /etc/mail
makemap -r hash genericstable.db < genericstable
cd /etc/mail
make
service sendmail restart
test
GIT Installation Notes
http://www.fclose.com/b/linux/366/set-up-git-server-through-ssh-connection/
http://www-cs-students.stanford.edu/~blynn/gitmagic/ch08.html
http://stackoverflow.com/questions/9337522/how-does-git-push-work
http://tumblr.intranation.com/post/766290565/how-set-up-your-own-private-git-server-linux
http://serverfault.com/questions/142048/git-daemon-on-linux
Cakephp 2.x Notes
Debugging: https://github.com/cakephp/debug_kit
Select dropdown from query: http://stackoverflow.com/questions/1450457/cakephp-make-select-dropdown
Logging queries to a file: http://stackoverflow.com/questions/4721052/how-to-log-sql-queries-to-a-log-file-with-cakephp
Windows 7 and NFS
First you have to install the windows nfs service.
- Control Panel->Programs and Features->Turn Windows features on or off
- Services for NFS->Client for NFS
You’ll have a few seconds to have it installed and it should be fine.
From there open a cmd shell, and type the following.
showmount -e <nfs server name>
You should get a list of exported mounts on the nfs server. To mount them do the following.
mount \\nfsserver\export_name Z:
I assume you can derive where you are suppose to change things.
To change the uid/guid you will use for read/writes do the following.
- start->run (regedit.exe)
- Navigate to: HKEY_LOCAL_MACHINE->SOFTWARE->Microsoft->ClientForNFS->CurrentVersion->Default
- Create the following as DWORD. AnonymousGid and AnonymousUid giving them the decimal value of the uid/guid you wish to utilize
- Restart the NFS Service on the windows box or reboot if the service refuses to restart.