Starting work on a new ZFS Web Admin

Flattr this!

Hello there.

After the Stats showed me, that the ancient Post about a Web based ZFS Interfaces produces a lot attention, i decided to restart with that project from scratch.

You can find the current sources here. I am currently working with the FreeBSD ZFS Version (so basically FreeNAS), but there are already some Test-Cases for Nexenta.
The basic idea of the system is, to use remote SSH Sessions for accessing the different systems and parse the receiving data. There is already a quite stable, JNA based Java Binding for ZFS, but it seems to be broken for the latest Versions of ZFS. And to have a simple solution to manage ZFS on different system, seems to me a great idea.

I have some ideas how to do some things, but it still seems a lot of work :-).

Wuala and Nexenta…

Flattr this!

… just works!

Just download wuala from their homepage.
I just copied the contents of the archive to my NAS, started with ./wualacmd and… thats it.

Imagine: a NAS System with perfekt online mirroring … like a charme ;-).

BTW:
I just changed some folders within the original Nexenta system.
Because i am using a 4GB Flash Drive as my boot drive, but a 2TB Pool as my file Storage, i made some hard-links:

/home/ -> /tank/home
/opt/ -> /tank/opt

where /tank is the mount point of my zfs-pool.

Nexenta CP 2 RC1 & Java 6

Flattr this!

root@sunny:/tank/home# apt-get install sun-java6-jre

root@sunny:/tank/home# java -version
dl failure on line 685Error: failed /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386/client/libjvm.so, because ld.so.1: java: fatal: libCrun.so.1: open failed: No such file or directory

root@sunny:/tank/home# apt-get install sunwlibc

root@sunny:/tank/home# java -version
java version “1.6.0_10”
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode)

Good signature, but could not determine key fingerprint?!

Flattr this!

root@sunny:/tank/home# apt-get update
Get:1 http://apt.nexenta.org hardy-unstable Release.gpg [185B]
Hit http://apt.nexenta.org hardy-unstable Release
Ign http://apt.nexenta.org hardy-unstable Release
Hit http://apt.nexenta.org hardy-unstable/main Packages
Hit http://apt.nexenta.org hardy-unstable/contrib Packages
Hit http://apt.nexenta.org hardy-unstable/non-free Packages
Hit http://apt.nexenta.org hardy-unstable/main Sources
Hit http://apt.nexenta.org hardy-unstable/contrib Sources
Hit http://apt.nexenta.org hardy-unstable/non-free Sources
Fetched 185B in 1s (151B/s)
Reading package lists… Done
W: GPG error: http://apt.nexenta.org hardy-unstable Release: Internal error: Good signature, but could not determine key fingerprint?!
W: You may want to run apt-get update to correct these problems

root@sunny:/tank/home# apt-get install gnupg add-apt-key
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
gpgv makedev
Suggested packages:
gnupg-doc xloadimage
The following NEW packages will be installed:
gpgv makedev
The following packages will be upgraded:
gnupg add-apt-key
1 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 1957kB of archives.
After this operation, 5050kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
gpgv makedev gnupg
Install these packages without verification [y/N]? y

root@sunny:/tank/home# apt-get update
Hit http://apt.nexenta.org hardy-unstable Release.gpg
Hit http://apt.nexenta.org hardy-unstable Release
Hit http://apt.nexenta.org hardy-unstable/main Packages
Hit http://apt.nexenta.org hardy-unstable/contrib Packages
Hit http://apt.nexenta.org hardy-unstable/non-free Packages
Hit http://apt.nexenta.org hardy-unstable/main Sources
Hit http://apt.nexenta.org hardy-unstable/contrib Sources
Hit http://apt.nexenta.org hardy-unstable/non-free Sources
Reading package lists… Done

Subversion in a nexenta zone

Flattr this!

To sort Things out, i will use another feature of Nexenta (OpenSolaris): Zones.
So i am sure, that my Subversion Server is in its own enviroment and has its own ip.

There are two great howtos:

1. Creating a New Zone in Nexenta
2. Installing SVN 1.4 in a Nexenta Zone

I am almost done with backing up all my stuff.
I really hope to improve the network performance with a hardware upgrade :-).

Blogged with the Flock Browser

Nexenta iSCSI Target Setup

Flattr this!

root@sunny:~# zfs create tank/home
root@sunny:~# zfs create tank/home/philipp
root@sunny:~# zfs create -V 250M tank/home/philipp/TM
root@sunny:~# zfs set shareiscsi=on tank/home/philipp/TM
root@sunny:~# iscsitadm modify target -p 1 tank/home/philipp/TM
root@sunny:~# zfs list
NAME                             USED  AVAIL  REFER  MOUNTPOINT
syspool                          689M  16.6G    23K  none
syspool/rootfs-nmu-000           688M  16.6G   641M  legacy
syspool/rootfs-nmu-000@initial  47.3M      –   631M  –
tank                             250M  1.34T    21K  /tank
tank/home                        250M  1.34T  27.5K  /tank/home
tank/home/philipp                250M  1.34T    27K  /tank/home/philipp
tank/home/philipp/TM             250M  1.34T    24K  –
tank/media                        18K  1.34T    18K  /tank/media
root@sunny:~# iscsitadm list target -v
Target: tank/home/philipp/TM
    iSCSI Name: iqn.1986-03.com.sun:02:f683c44e-e774-c018-9f6f-89ef914db75b
    Alias: tank/home/philipp/TM
    Connections: 0
    ACL list:
    TPGT list:
        TPGT: 1
    LUN information:
        LUN: 0
            GUID: 0
            VID: SUN
            PID: SOLARIS
            Type: disk
            Size:  250M
            Backing store: /dev/zvol/rdsk/tank/home/philipp/TM
            Status: online

(via Solaris iSCSI Target with ESX 3.02 Server)

Blogged with the Flock Browser

Sunny Setup Part 1

Flattr this!

Neues Wochenende, neues Glück :-).

Ich habe mittlerweile auch die anderen Betriebssysteme durch:

FreeBSD:
Obwohl dies einer meiner Favoriten war, werde ich nicht FreeBSD einsetzen. Die ZFS-Unterstützung ist teilweise noch erschreckend.
Ohne angepassten Kernel gibt es wohl noch des öfteren Kernelpanics. Weiterhin scheint bei dem FreeBSD-Projekt selber nach einer Umstellung des Packet-Servers auf ZFS
ein paar Probleme aufgetaucht zu sein.
pro:

  • Sehr schmale Installation möglich.
  • Unterstützung der eingebauten Encryption-Hardware (siehe VIA-Eden-Plattform)
  • Unterstützung von encrypted devices

contra:

  • Warnmeldung bei Netzwerkzugriffen (Packet lost/Packet Timeout)
  • ZFS ohne “Kernel-Hacking” nicht ausreichend stabil.

Zu Milax ist nicht viel zu sagen. Es ist scheint für einen kleineren Desktop eine gute Wahl zu sein (graphisch macht es schon etwas her und nutzt nur wenig Ressourcen).
Für einen Server ist es aber wohl wenig geeignet. Es gibt zwar eine spezielle Server-Version, allerdings ist auch hier die Unterstützung der VIA-NICs nicht gegeben.

Nachtrag:
OpenSolaris. Da OpenSolaris schon erfolgreich in NAS-Systemen eingesetzt wird [1,2,3], habe ich mir die Developer-Preview von Project Indiana besorg und testweise installiert.
Leider scheint es out of the Box nur möglich zu sein, eine Komplettinstallation mit Gnome usw. durchzuführen. Das ist schade, verspricht der Weg, den Sun mit Project Indiana eingeschlagen hat, doch durchaus vielversprechend zu sein. Aber anscheinend scheint auch hier die Hardwareunterstützungen auf reine Intel/AMD-Systeme beschränkt zu sein.

Nun sitze ich als wieder vor einem Nexenta-System.
Ich bin gerade dabei, ein iSCSI-Target aufzusetzen um dann mal einen aussagekräftigen Wert für die Datenübertragung erhalten zu können.

Blogged with the Flock Browser

Software Update

Flattr this!

Ich hatte mittlerweile etwas Zeit, mich um eine allererste Softwareinstallation meines NAS-Systemes zu kümmern.
Die Grundausstattung des Mainboards ist etwas mau. Es liegt eine CD (mit Treibern und PDF-Handbuch) bei, eine kleine Karte mit der Beschreibung des Lieferumfangs und ein IDE-Kabel.
Die Kabel für die 4 Sata-Anschlüsse muss man sich dann erst noch kaufen.

Was mir bisher auffiel:

  • Das Bios hat eine genial animierte Laufleiste. Erinnert irgendwie an Windows 2000.
  • Das Bios scheint sehr Buggy zu sein – veränderte Einstellungen (wie ein neues Boot-Device) werden nicht abgespeichert.
  • Man erhält beim Starten durch Drücken von F11 ein Startmenü.

Abschließend meine bisherigen Ergebnisse:
Das System ist _SEHR_ leise – bis auf den Lüfter des Netzteiles hört man nichts. Okay das DVD-Laufwerk dann noch.
Die Einschätzung der Geschwindigkeit ist schwierig – dazu später mehr. Als NAS aber denke ich ausreichend.

Software-Tests:

Nexenta Core Platform 1.0.1 (NexentaCore):
pro:

  • Root- (Boot-) Partition ist ZFS-Device.
  • Da ich nur eine schmale Installation gewählt habe (um die 256 MB), kann man mit dem System gut arbeiten.
  • SSH, Sata (RAID im Bios ausstellen) und Netzwerk werden auf Anhieb gefunden.

contra:

  • Niedrige Netzwerkperformance (1-2 MB). Ich denke mal einfach, dass selbst eine 1 GHz CPU sicherlich mehr schaffen wird.

Solaris: Project Indiana – Developer Preview:
pro:

  • Grafischer Installer

contra

  • Größerer footprint (ab 1,5 GB)
  • Netzwerkkarten nicht erkannt
  • Oberfläche sehr langsam

Bisher haben mich beide Systeme nicht wirklich überzeugen können – Schade eigentlich, waren das doch meine Favoriten.
ich werde mich nun befassen mit Milax und FreeBSD.

Vielleicht sollte ich die Tage dann noch ein paar Worte zu meinen Anforderungen an das OS verlieren :-).

Blogged with the Flock Browser