Opensolaris
Opensolaris
used to run it on my main machine at home, now i run it as a xen guest. kernel updates are a little tricky with a linux host, so here is a small script to facilitate. this is to be run on the domU. change “unixfile” to point to the 32bit or 64bit platform (at this time, i’m having trouble running the 64bit platform, so it’s pointed at 32bit).
update_dom0
#!/bin/bash dom0=10.0.1.23 dompath=/var/lib/xen/kernels/push unixfile=/platform/i86xpv/kernel/unix root=`pfexec beadm list -H | grep ';N*R;' | cut -d \; -f 1` mkdir /tmp/root pfexec beadm mount $root /tmp/root 2>/dev/null mount=`pfexec beadm list -H $root | cut -d \; -f 4` pfexec bootadm update-archive -R $mount scp $mount/$unixfile root@$dom0:$dompath/kernel.$root scp $mount/platform/i86pc/$3/boot_archive root@$dom0:$dompath/ramdisk.$root pfexec beadm umount $root 2>/dev/null echo "Kernel and ramdisk for $root copied to $dom0:$dompath" echo "Kernel cmdline should be:" echo "$unixfile -B zfs-bootfs=rpool/ROOT/$root,bootpath=/xpvd/xdf@51712:a"
arcstat
here’s a small perl script to peek at what the ZFS ARC is doing, pulled from http://www.solarisinternals.com/wiki/index.php/Arcstat originally: Attach:arcstat.pl
zfs meet cifs
mostly cribbed from genunix
- install the package
service/file-system/smb(formerlySUNWsmbs/SUNWsmbskr) - enable the service:
svcadm enable -r smb/server - optionally join a workgroup:
pfexec smbadm join -w labs - add the following line to PAM so CIFS passwords will be generated by the system:
other password required pam_smb_passwd.so.1 nowarn - passwords will need to be updated or reentered after the above line is added before they will work for CIFS auth
- set the
sharesmbproperty on a given zfs filesystem. good to go.