Tuesday, February 2. 2010
Bug des Tages
Tuesday, January 26. 2010
Dont try this at home 2 - ONTAP root access
Fuer eine echte Rootshell auf einem ONTAP8 muss man folgende Dinge tun:
Unlock des Diag Users
toaster*> useradmin diaguser showPasswort fuer Diag User vergeben
Name: diag
Info: Account for access to systemshell
Locked: yes
toaster*> useradmin diaguser unlock
toaster*> useradmin diaguser show
Name: diag
Info: Account for access to systemshell
Locked: no
toaster*>
toaster*> useradmin diaguser passwordSystemshell benutzen
Please enter a new password:
Please enter it again:
Tue Jan 26 09:46:54 CET [xÃ@passwd.changed:info]: passwd for user 'diag' changed.
toaster*>
toaster*> systemshell
Data ONTAP/amd64 (toaster) (ttyp0)
login: diag
Password:
WARNING: The system shell provides access to low-level
diagnostic tools that can cause irreparable damage to
the system if not used properly. Use this environment
only when directed to do so by support personnel.
toaster% uname -a
Data ONTAP toaster 8.0RC3X8 Data ONTAP Release 8.0RC3X8 amd64
toaster% df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/md0 2.6M 2.2M 186K 92% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad1 1.0G 336M 686M 33% /cfcard
/dev/md1 299M 255M 44M 85% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/md2 14M 13M 1.2M 92% /platform
/dev/ad0s4b 38G 4.5G 30G 13% /sim
/dev/ad0s2 5.3M 846K 4.0M 17% /var
procfs 4.0K 4.0K 0B 100% /proc
/dev/md3 31M 38K 28M 0% /tmp
localhost:0x80000000,0x272e5b 648M 103M 545M 16% /mroot
clusfs 488M 488M 0B 100% /clus
toaster%
Vermutlich ist das also ein FreeBSD 6.0/amd64:
toaster% sysctl kern.osreldate
kern.osreldate: 600034
Monday, January 25. 2010
Dont try this at home
Wie man den ONTAP8-Simulator kaputt macht: Einfach mit einem "Update" fuer echte Hardware bewerfen.
toaster> software update 8.0RC3_q_image.tgz -r
software: You can cancel this operation by hitting Ctrl-C in the next 6 seconds.
software: Depending on system load, it may take many minutes
software: to complete this operation. Until it finishes, you will
software: not be able to use the console.
cmd = ngsh -c system image update -node local -package file://localhost/mroot/etc/software/8.0RC3_q_image.tgz -setdefault true
Software update started on node toaster. Updating image2
Listing package contents.
Untarring package contents.
Invoking script (validation phase).
INSTALL running in check only mode
Mode of operation is UPDATE
Current image is image1
Alternate image is image2
Available space on boot device is 686 MB
Required space on boot device is 373 MB
Kernel binary matches install machine type
Package MD5 checksums pass
Versions are compatible
Invoking script (install phase). This may take up to 30 minutes.
Mode of operation is UPDATE
Current image is image1
Alternate image is image2
Available space on boot device is 686 MB
Required space on boot device is 373 MB
Kernel binary matches install machine type
Package MD5 checksums pass
Versions are compatible
Getting ready to install image
Directory /cfcard/x86_64/freebsd/image2 created
Syncing device...
Extracting to /cfcard/x86_64/freebsd/image2...
x BUILD
x CHECKSUM
x COMPAT.TXT
x INSTALL
x README.TXT
x VERSION
x cap.xml
x diags.tgz
x kernel
x perl.tgz
x platform.ko
x platfs.img
x rootfs.img
Installed MD5 checksums pass
Installing diagnostics and firmware files
Installation complete. image2 updated on node toaster
image2 has been set as the default
software: installation of 8.0RC3_q_image.tgz completed.
Please type "reboot" for the changes to take effect.
toaster> Fri Jan 22 12:15:19 CET [toaster: cmds.software.installDone:info]: Software: Installation of 8.0RC3_q_image.tgz was completed.
Nach dem Reboot wird dann versucht, das neue Release zu booten, was allerdings nach dem Laden des Kernels haengen bleibt.
Also kann man im loader Prompt nur noch mit boot_backup das alte Release booten...Wie man an der version erkennen kann, wird fuer den Simulator ein spezielles X8-Release verwendet, ein normales Release scheint nicht booten zu wollen.
toaster> version -b
/cfcard/x86_64/freebsd/image1/kernel: OS 8.0RC3X8
/cfcard/x86_64/freebsd/image2/kernel: OS 8.0RC3
/cfcard/x86_64/diag/diag.krn: 5.4.3
/cfcard/x86_64/firmware/excelsio/firmware.img: Firmware 1.8.0
/cfcard/x86_64/firmware/DrWho/firmware.img: Firmware 2.4.0
/cfcard/x86_64/firmware/SB_XV/firmware.img: Firmware 4.3.0
/cfcard/common/firmware/zdi/zdi_fw.zpk: X1936A FPGA Configuration PROM 1.0 (Build 0x200706131558)
toaster> version
NetApp Release 8.0RC3X8 7-Mode
toaster>
Wednesday, January 20. 2010
ONTAP-Simulator fuer ONTAP8
Endlich ist der Simulator fuer ONTAP8 verfuegbar. Sieht aus wie ein richtiges FreeBSD. Leider gabs bei mir ein Problem beim Booten, das sich aber mit dem Neu-Initialisieren der Platten beheben liess (Maintenance-Boot und (4) Clean configuration and initialize all disks.)

Thursday, January 14. 2010
Spritpreise
Tuesday, January 12. 2010
Stromaufnahme von Festplatten
25 Microchips That Shook the World
Tuesday, January 5. 2010
FreeBSD8 mit AHCI
Eigentlich ist es ja ganz einfach, Festplatten unter FreeBSD8 im AHCI-Modus zu betreiben. Man muss nur ahci_load="YES" in der loader.conf setzen und rebooten. Allerdings aendern sich dadurch die Namen der Devices, meine OS-Spindel ist zB. nicht mehr ad10, sondern ada0. Man muss also zwingend vorher die richtigen Aenderungen in der fstab machen, sonst wird das Rootfilesystem nicht mehr gefunden. Die Datenspindeln aenderten sich von ad12, ad14, ad18 und ad20 auf ada1-4, das ZFS kam damit problemlos zurecht. Was mir jetzt leider noch fehlt, ist die Moeglichkeit, die Festplatten herunterzufahren. ataidle -s und camcontrol stop/eject funktionieren jedenfalls nicht. Also habe ich AHCI erstmal wieder abgeschaltet.... *seufz*
UPDATE:
Das Problem ist in 8-STABLE bereits geloest, denn dort gibts ein neueres camcontrol. Und mit dem camcontrol sleep bzw. idle kann man Festplatten im AHCI-Modus herunterfahren bzw. aufwecken.
Monday, November 30. 2009
Recht auf Privatkopie
Auf Rohlingen und anderen Tontraeger-Medien ist seit Ewigkeiten eine pauschale Abgabe fuer die so genannte Privatkopie enthalten. Das Heise-Forum verweist auf http://bundesrecht.juris.de/urhg/__53.html
Trotzdem behauptet der Kulturstaatsminister Bernd Neumann (CDU), dass es kein Recht auf eine Privatkopie gibt... Erstaunlich, dass selbst "Fachleute" manchmal die Fakten verkennen...



