February 2009 Archives

Solaris 10 notes

To mount a DVD or CD iso image: lofiadm -a /full/path/imagename.iso /dev/lofi/1 mount -F hsfs -o ro /dev/lofi/1 /mnt How to install packages: cd /mnt/Solaris_Software_Companion/Solaris_i386/Packages pkgadd -d `pwd` SFWxaw3d Where the hell is sudoers? emacs /opt/sfw/etc/sudoers No setuid? WTF? chmod +s /opt/sfw/bin/sudo To restart a service (like autofs, ssh): svcadm restart /system/filesystem/autofs:default

launchdaemon notes

Prepare plist file to load: sudo chown root /Library/LaunchDaemons/whatever.plist sudo chgrp wheel /Library/LaunchDaemons/whatever.plist sudo chmod 644 /Library/LaunchDaemons/wharever.plist load it up: sudo launchctl load -w /Library/LaunchDaemons/whatever.plist

Getting a serial port USB adapter working on Mac OS X

use this driver to get port to appear http://osx-pl2303.sourceforge.net/ Use screen to connect: screen /dev/tty.PL2303-0000101D 9600 cf http://www.nerdlogger.com/2007/12/usb-to-serial-console-for-mac-osx.html

automount on leopard is wicked easy

ZFS and Solaris notes

It is possible to install Open Solaris on a Dell server with an MD1120 disk array, and use ZFS on the individual disks in a JBOD config. Trick number one: you can't actually just tell the PERC6 controller to put all the drives in a big JBOD config. You actually have to go in the BIOS and create 48 individual RAID 0 configs each with one drive. The UI for doing this sucks donkey balls, each drive takes about 10 keystrokes. This config guide is awesome to get started. In doing this I ran into funky bugs in the solaris termcap. This blog post has good info on the solution: just replace the Solaris xterm-color termcap with one that isn't broken. We successfully set up a zfs with a pool of 8 raidz2 virtual devices, each with 6 disks. So a total of 4.6 TB of usable storage with decent I/O and redunancy. It's hanging off of a Dell R900 16-core Xeon with 128GB of RAM. Benchmarking it now with some mysql databases. More: zfs get all <POOLNAME> shows all the compression and blocksizes and other props of the file system.

How to stop and start slapd on Leopard Server

slapconfig -startldapserver slapconfig -stopldapserver To dump the contents of one LDAP server: slapcat > data.ldif To load it back in (stop slapd first) slapadd < data.ldif