Quickly show memory usage under AIX
5Very quick and basic shell script to show total/free/used memory on a host running AIX.
kristijan@AIX > ./meminfo Memory Information ================== total memory = 1884 MB free memory = 94 MB used memory = 1790 MB
Mounting external USB NTFS drive to FreeNAS
2This is a quick post on how to mount an external USB NTFS formatted hard drive (or memory stick) to FreeNAS. All that’s needed is to load the fuse driver, but it had me stumped for a bit until I found it in a forum post.
First things first, let’s plug in our drive and find out the device ID FreeNAS assigns it.
# dmesg ... umass1: <asmedia AS2105, class 0/0, rev 2.10/1.00, addr 3> on uhub4 da1 at umass-sim1 bus 1 target 0 lun 0 da1: <st950042 0AS 0002> Fixed Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) </st950042></asmedia>
FreeNAS and Realtek RTL8168C/RTL8111DP/RTL8111E network card
51Quick links to compiled v1.80 drivers
Ethernet Driver for Intel
Ethernet Driver for AMD64 (Thanks to Ruslan)
As I mentioned in a previous post, I built myself a NAS based on FreeNAS. It’s been rock solid for about 3 weeks now, no hiccups. One initial issue I did have was getting the RTL8168C/RTL8111DP/RTL8111E network card chipset to work. There is no FreeNAS out of the box support for this chipset, so I had to compile my own from source found on the Realtek website which you can find here. If you have issues downloading or compiling it, I’ve compiled version 1.80 which you can download from the top of this page. Ruslan has kindly compiled an AMD64 version as well.
First and foremost, verify that the module actually works and you can bring up your network card and get some activity over it. I’m going to assume at this point that you have no way of copying something onto your FreeNAS other than USB, so copy if_re.ko to a USB stick and plug it into your NAS.
(more…)
Automount AFP shares in OSX
0So I’ve finally got around to building my NAS. It’s a pretty 12TB FreeNAS using RAIDZ…she runs very nicely
At first, I was using SMB, but found the performance from AFP better, that’s for another post though. For the life of me, I couldn’t find the “Mac” way of auto mounting an AFP share. So being the sysadmin ninja that I am, I just went along and did it my own way.
Luckily for us, the pretty OSX frontend sits on top of a UNIX backend. In short, I ended up using autofs, and it works rather well. Below is how to get it working.
(more…)
Keeping an eye on TSM volumes
1I wrote a quick script which tells me when volumes in TSM (Tivoli Storage Manager) have access and/or media issues and shoots me off an email. The script does two things:
1) Checks for volumes which are NOT in the states READWRITE or OFFSITE.
2) Checks for volumes which have a read/write error count >0.
I’m sure that most people running TSM in their environment have some sort of daily reporting that gets sent out. If that’s the case, you can simply extract the SQL from the script and use it in your own reporting tools.
(more…)