Recently in Solaris Category

Easy:

pascal@pgt02:~# smbios -t SMB_TYPE_BASEBOARD
ID    SIZE TYPE
2     202  SMB_TYPE_BASEBOARD (base board)

  Manufacturer: Sun Microsystems
  Product: Sun Fire X4200 M2                    
  Version: To Be Filled By O.E.M.         
  Serial Number: 1005LCB-0807GB0U08             
  Asset Tag: To Be Filled By O.E.M.         
  Location Tag: To Be Filled By O.E.M.         

  Chassis: 3
  Flags: 0x9
        SMB_BBFL_MOTHERBOARD (board is a motherboard)
        SMB_BBFL_REPLACABLE (board is field-replacable)
  Board Type: 0xa (motherboard)


Just in case you need it...

Our new OpenStorage arrived

| | Comments (2) | TrackBacks (0)
openstorage_front.jpg
We just installed our new OpenStorage from Sun, consisting of an X7310 RAID (zfs) Storage Controller and a 4400 JBOD case (for SAS).

The X7310 has a 10 GE Ethernet card installed additionally, the lower half is filled with 11 1TB SATA disks and a 16 GB log flash device.

Sun OpenStorage appliances are special OpenSolaris versions installed with a web (and terminal) interface to configure ZFS file systems and block devices (ZVOL) to share them via iSCSI, NFS and CIFS to other SAN members.





Windows dynamic disks and Sun xVM

| | Comments (0) | TrackBacks (0)
windows-disk-30GB.png

The dynamic disk feature of Windows Server is quite efficient when it comes to work into a Sun xVM environment. The 30 GB disk "Disk 0" is handled by the OpenSolaris Dom-0 as a ZFS block volume:

dladm: VLANs with OpenSolaris (and Sun xVM)

| | Comments (0) | TrackBacks (0)
dladm-vlan.png
"dladm" also allows to define VLAN trunking and VLAN usage with OpenSolaris.

You may assign specific VLANs to xVM virtual domains/machines (DomU) as well as use them in Dom0 or in your bare OpenSolaris using zones or not.

The physical interface (e1000g0) will act as the native vlan interface in this example, producing packets without a 802.1q vlan tag.

Defining VLANs with dladm is simple:

dladm: Virtual networks with Sun xVM

| | Comments (2) | TrackBacks (0)
dladmetherstubbridge.pngSolaris has a nifty utility named "dladm" which creates "dynamic" links.

It can be used to:

  • work with virtual network interfaces
  • work with wireless interfaces (WiFi)
  • work with virtual switches (named etherstubs and bridges)

For our Xen-based xVM environment, a virtual switch to connect DomU's to an internal network is a common configuration. This virtual switch may even have an interface to the Dom0 system - the path to the outside world.

Sun MPxIO: multipathed network connections

| | Comments (0) | TrackBacks (0)
ipmp.pngIn many of the entries this blog contains the topic lied on MPxIO configuration for fiberchannel storage links:

http://southbrain.com/south/2008/02/solaris-10-with-mpxio-scsi-vhc.html (for Solaris 10) or

http://southbrain.com/south/2009/09/sun-mpxio-storage-scsi-vhci-so.html (for OpenSolaris)

Now let's have a look into Solaris IP networking redundancy.


Just a note: Sun kernel patch 141445-09 (i86/amd64) and 141444-09 (SPARC) introduces zfs version 15 (zpool upgrade!), and the ::memstat-macro behaviour matches OpenSolaris:

Loading modules: [ unix krtld genunix specfs dtrace cpu.generic cpu_ms.AuthenticAMD.15 uppc pcplusmp ufs mpt ip hook neti sctp arp usba fcp fctl qlc lofs fcip cpc random crypto zfs logindmux ptm nfs ]
> ::memstat
Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                    2082351              8134   25%
ZFS File Data             3616346             14126   43%
Anon                      1125938              4398   13%
Exec and libs               11206                43    0%
Page cache                 961960              3757   11%
Free (cachelist)           286172              1117    3%
Free (freelist)            302471              1181    4%

Total                     8386444             32759
Physical                  8177548             31943

Sun xVM 3.4.2 available, dom0_min_mem

| | Comments (6) | TrackBacks (0)
win2008r2sysinfo.pngThe xvm-3.4-source tree has obviously reached 3.4.2, as there is no more "pre", "rc..." or other suffixes in the version number.

After a svcadm enable milestone/xvm (and a reboot if you don't already booted the Xen Hypervisor) all daemons are coming up, it seems to work.

Windows 2008 R2 in a HVM identifies the BIOS as "3.4.2-xvm" (click on the picture on the right to enlarge it).

New ZFS feature: deduplication - new in snv_128

| | Comments (0) | TrackBacks (0)
With Nevada 128 you'll get zpool/zfs version 22 with new features.

A noticeabe new feature is named "deduplication" which means that identical blocks are only kept once on disk reducing real storage use.

pascal@denver:~# zpool list
NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
rpool   135G  63.7G  71.3G    47%  1.00x  ONLINE  -
xvm     135G  29.3G   106G    21%  8.52x  ONLINE  -

The pool "xvm" has some nearly identical block volumes (zfs zvol) for Xen/xVM use and the result is noticeable.

Don't forget to allocate enough RAM to your Dom0-kernel when using Sun xVM.
In case your OpenSolaris snv_128 kernel does simply hang (replies to icmp echo requests but does not do much more than that...) after destroying a snapshot, a block device or a file system there's a simple solution:

Add RAM to your box resp. increase Dom-0 memory usage. In my case I had 1 GB Dom0 memory which was not sufficient.

With 2GB the pool mounted properly again. ZFS with deduplication needs RAM. Sad that there's no warning message including an abortion of the pool import in that case.

OpenSolaris snv_126 and Xen 3.4.2-rc1-xvm

| | Comments (7) | TrackBacks (0)
There is snv_126 on the Mercurial repository at opensolaris.org.
xvm-gate 3.4 has also be taken to a new version: Xen 3.4.2-rc1-xvm (from 3.4.2-rc1-pre-xvm).

Sun Microsystems Inc.   SunOS 5.11      snv_126 October 2009
bfu'ed from /export/home/pascal/archives-nightly-osol-nd/i386 on 2009-10-23
Sun Microsystems Inc.   SunOS 5.11      snv_118 November 2008

pascal@priscilla:~$ uname -a
SunOS priscilla 5.11 snv_126 i86pc i386 i86xpv
Due to popular demand, here are part two and three about basic fiberchannel configuration & diagnostics in Solaris. So the basic trilogy is ready:

Part 1: Introduction, Basics
Part 2: Configuration SAN & TCP/IP
Part 3: Diagnostics

I hope it helps you.

Part 1 of my Solaris Fiberchannel notes

| | Comments (0) | TrackBacks (0)
wwnnwwpnhost.pngWhat's a WWPN? A WWNN? What's an F_port? How my disks appear in Solaris?

As many readers asked me to give an introduction to fiberchannel usage in Solaris I started a little course for you.

Lesson 1 are fundamentals of the fiberchannel protocol - not really much, but only  the really needed addressing and network stuff.

It begins here:

http://southbrain.com/south/tutorials/fiberchannel-solaris-part-1-in.html

I love to have feedback from you, and please ask if you don't understand something or when my language is too bad or too simple.

One strong remark: I am a german citizen writing in english to have a greater audience. Please don't hesitate to correct my faults in english. I'll be happy about that!
In Solaris 11 (SXCE, OpenSolaris) the format of the configuration file "scsi_vhci.conf" has changed. As a starter let's remember how MPxIO for storage works (here Fiberchannel is used as an example, the same applies to multiple iSCSI links, just replace the fc driver layer with ethernet/ip/tcp/iscsi):
mpxio1.png

This is the example with two distinct fiberchannel ports present (multiport FC adapter or distinct FC adapters).

How storage works in Sun xVM/Xen?

| | Comments (0) | TrackBacks (0)
In the HVM case it is a little bit like this (simplified):
xenstorage-hvm-480.png

Assigning CPUs works even in Domain-0!

| | Comments (0) | TrackBacks (0)
Just a small note:

It was just a test, but it worked!

You can control the number of CPU cores Dom0 uses (named "Domain-0" in the Sun xVM environment).

This command:

# virsh setvcpus Domain-0 2

results in that:

Sep  2 18:35:16 pgt01 unix: cpu0: externally initiated on-line
Sep  2 18:35:17 pgt01 unix: cpu1: externally initiated on-line
Sep  2 18:35:17 pgt01 unix: cpu2: externally initiated powered-off
Sep  2 18:35:18 pgt01 unix: cpu3: externally initiated powered-off

Crazy.
OS is OpenSolaris snv_121, which was bfu'd from snv_118.

(Setting the memory use and max memory use via virsh setmem and virsh setmaxmen do also work as expected, the system begins to swap out pages and/or flushes zfs cache data on disk).

First, a paravirtualized example: Solaris Express CE 121 in a pv DomU:

I did little screen films to show you how easy it is to install operating systems in virtual xen domains using Sun xVM:



Solaris Express CE as DomU on xVM/Xen

| | Comments (0) | TrackBacks (0)
Just as a side note:
solexpress_domU.png
The (now dying) Solaris Express editions are perfectly installable and bootable in a paravirtualized Xen DomU, so it is very easy to install Solaris Express as a onnv build environment on an Open Solaris xVM server. First I created a zfs block device named "sol-nv-b119.zvol" on my zpool "xvm" and then I'll use it as a block device for the "disk":

pascal@schall:~# zfs create -b 128k -V 30G xvm/sol-nv-b119.zvol
pascal@schall:~# virt-install --ram 1024 --disk path=/dev/zvol/dsk/xvm/sol-nv-b119.zvol --paravirt --location=/xvm/ISO/sol-nv-b119-x86-dvd.iso  --name "Solaris_Express"


Starting install...
Retrieving file unix...   100% |=========================| 1.5 MB    00:00
Retrieving file x86.minir 100% |=========================| 103 MB    00:04
Creating domain...                                                 0 B 00:02
Connected to domain 3
Escape character is '^]'
v3.3.2-rc1-xvm-debu chgset 'Wed Aug 26 08:49:47 2009 +0200 18433:443f5f51ca41'
SunOS Release 5.11 Version snv_119 32-bit
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
NOTICE: Invalid iBFT table 0x1
Configuring /dev
/

    1.     Solaris Interactive Text (Console session) (default)
    2.     Apply driver updates
    3.     Single user shell

Enter the number of your choice.




Xen 3.3.2/xVM: OpenSolaris snv_121

| | Comments (2) | TrackBacks (0)
After having passed some hours to

  • Install OpenSolaris 09.06 ( snv_111)
  • image-update it to snv_118 (pkg.opensolaris.org/dev/)
  • BFU it to snv_121
I am now able to use the Xen Version of OpenSolaris (named Sun xVM) and OpenSolaris as Dom0.

(NB: if you're looking for a DomU install example, here's one:
Installing SLES 11 in a xVM/Xen DomU
and here is another.
Installing Redhat Enterprise Server 5 in a xVM/Xen DomU).

Beginning with Build 121, the xen Version has been taken from 3.1.4 to 3.3.2. Hardware virtualization (HVM) has got some performance gains and paravirtualized machines are much simplier to install.

If you want to try it out, here are the steps to get a working test and play setup:

ZFS shares part II: iSCSI, NFS and CIFS

| | Comments (0) | TrackBacks (0)
In the first entry about the difference between block based and file based storage sharing I talked about architectural differences between iSCSI/FiberChannel and NFS/CIFS on the other side.

Now it is time to see how easily any OpenSolaris computer running ZFS can be transformed to a storage server/system.

Keep in mind that the Sun Open Storage Servers exactly do that with a nice GUI and a powerful commandline.

At this time, FiberChannel sharing is not yet accomplished, there is still a lack of a FiberChannel target mode driver. So we'll concentrate on offering iSCSI, NFS and CIFS services for the following examples.


March 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

About

This blog is owned by:

Pascal Gienger
Kanzleistr. 14
78462 Konstanz
Phone +49 7531 584298
Fax +49 7531 584298-9

Phone USA 1-678-791-4182

YouTube Channel: pascalgienger