Blog posts for March 2011

Charting in XWiki

Some pretty impressive use of JFreeChart in XWiki.  I assume this is using the Charting Plugin/extension.

SMF SNMP monitoring in Solaris 11

Available starting in Solaris 11 Express

Service state transition notification by e-mail:

svcadm enable svc:/system/fm/smtp-notify:default
svccfg -s svc:/system/svc/global:default setnotify -g from-online  mailto:root@localhost

Configure SNMP notify daemon

snmp-notify will generate one of two types of SNMP traps, based on the event class. For FMA events (list.* events), snmp-notify will generate the existing sunFmProblemTrap trap as defined in /etc/net-snmp/snmp/mibs/SUN-FM-MIB.mib. For software events (swevent.*), snmp-notify will generate a sunSweventTrap trap as defined in /etc/net-snmp/snmp/mibs/SUN-SWEVENT-MIB.mib.

Linux PXE + TFTP network boot


Gentoo NFS diskless

OpenWRT dnsmasq configuration

Use the OpenWRT gw router as both DHCP server and TFTP server.  DHCP options specify the filename and host to TFTP from.
# mkdir /tftpboot
# mkdir /tftpboot/pxelinux.cfg
# scp xyzzy:pxelinux.0 /tftpboot/pxelinux.0

# vi /tftpboot/pxelinux.cfg/default
DISPLAY boot.txt
DEFAULT memtest
LABEL memtest
        kernel memtest86

# vi /tftpboot/boot.txt
Delphinus LAN PXE Boot Menu

memtest                                           memtest86

# vi /etc/config/dhcp
config 'dnsmasq'
        option 'enable_tftp' '1'
        option 'tftp_root' '/tftpboot'
config 'dhcp' 'lan'
        list 'dhcp_option' '6,'
        list 'dhcp_option' '42,'
        list 'dhcp_option' '119,'
        list 'dhcp_option' '67,pxelinux.0'

Linux iSCSI boot

To boot an iSCSI-aware Gentoo kernel, we supply some extra kernel boot parameters.
LABEL gentoo
    kernel kernel-genkernel-x86_64-2.6.36-gentoo-r5
    append initrd=initramfs-genkernel-x86_64-2.6.36-gentoo-r5 \
    root=/dev/ram0 init=/linuxrc real_root=/dev/sda1 \
    ip=dhcp \ \
    iscsi_address= \

To boot an NFS-aware Gentoo kernel, the kernel parameters look like this:
DEFAULT gentoo
LABEL gentoo
    KERNEL kernel-X.Y.Z
    APPEND initrd=initrd-X.Y.Z root=/dev/ram0 init=/linuxrc ip=dhcp

Linux iSCSI initiator

Build new kernel with iSCSI as modules, and initrd support for iSCSI.
genkernel --no-clean --menuconfig --luks --iscsi all

Change kernel config from built-in to module for:

  1. iSCSI Transport Attributes
  2. iSCSI Initiator over TCP/IP

Change from module to built-in for:

  • CRC32c CRC algorithm

Kernel .config
Device Drivers  --->
  SCSI device support  --->
    [*] SCSI device support
      <*> SCSI disk support
    [*] SCSI low-level drivers  --->
      <M> iSCSI Initiator over TCP/IP
    SCSI Transports  --->
      {M} iSCSI Transport Attributes
 Cryptographic options  --->
Cryptographic API
     <*> CRC32c CRC algorithm

Install open iSCSI tools
emerge -a open-iscsi
vi /etc/iscsi/initiatorname.iscsi
rc-update add iscsi default
/etc/init.d/iscsid start

Add iSCSI interface:
iscsiadm -m iface -I iface0 --op=new
ifconfig -a
iscsiadm -m iface -I iface0 --op=update -n iface.hwaddress -v 00:14:2a:81:ad:2b

List targets on Solaris 11 COMSTAR target.
iscsiadm -m discovery -t st -p -P 1

Attach to a target.
iscsiadm -m node -T -l
fdisk -l

Detach when done (after umount)
iscsiadm -m node -T -u

Windows iSCSI initiator boot

Windows 7 and Windows Server 2008 both have iSCSI support built in.
Windows XP requires installation of iSCSI Initiator driver and utilities.

See the attached RTF "uguide.doc" for Microsoft-specific iSCSI information.

iSCSI boot support requires gPXE

It looks like Windows needs to chain-load from the gPXE bootloader for iSCSI support.  No PXElinux for Windows.  I should have looked at gPXE first!

To chainload gPXE from pxelinux:

gPXE option codes are at this Etherboot project link:

Another view of Windows XP steps:

Created by Administrator on 07/09/2013
This website content is not licensed to you. All rights reserved.
XWiki Enterprise 9.11.1 - Documentation