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

Documentation

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
TIMEOUT 1200
DEFAULT memtest
PROMPT 1
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,192.168.1.1'
        list 'dhcp_option' '42,192.168.1.1'
        list 'dhcp_option' '119,mancave.qns.net'
        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_target=iqn.1986-03.com.sun:02:0f06cbb8-6e7a-6d67-c9cd-f45dd38bf160 \
    iscsi_address=192.168.1.21 \
    iscsi_initiatorname=iqn.1994-02.net.qns.mancave.retrograde:openiscsi-d100a34c12418892cd825af84680cce3

To boot an NFS-aware Gentoo kernel, the kernel parameters look like this:
DEFAULT gentoo
TIMEOUT 40
PROMPT 1
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 192.168.1.21 -P 1

Attach to a target.
iscsiadm -m node -T iqn.1986-03.com.sun:02:0f06cbb8-6e7a-6d67-c9cd-f45dd38bf160 -l
fdisk -l

Detach when done (after umount)
iscsiadm -m node -T iqn.1986-03.com.sun:02:0f06cbb8-6e7a-6d67-c9cd-f45dd38bf160 -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.
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=12cb3c1a-15d6-4585-b385-befd1319f825&DisplayLang=en

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!
http://etherboot.org/wiki/index.php

To chainload gPXE from pxelinux:
http://etherboot.org/wiki/pxechaining

gPXE option codes are at this Etherboot project link:
http://www.etherboot.org/wiki/dhcpd

Another view of Windows XP steps:
http://www.thogan.com/site2/archives/10

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