Reading NTFS with Solaris 10

Posted by Doomshammer on Tuesday, September 4. 2007 at 21:14 in Anwendungen, Arbeit, Computer, English only, Linux/Unix, Privat

For one of my customers, I need to copy big data files from an external USB drive to a Solaris 10 server. Problem is, as the files are bigger than 4GiB, the FS on the hard disk of the USB drive needed to be NTFS formated (the customer uses Windows). So I searched for a solution to read NTFS file systems with a Solaris 10 box.

I found the FSWfsmisc package from the BeleniX project. It holds some tools to access ext2, ext3 as well as ntfs partitions. Simply download the package from this location, extract it and install it via pkgadd.

Now one can do a:
QUOTE:
mount -F ntfs /dev/dsk/c2t0d0p0 /mnt

and my NTFS partition has been mounted to /mnt. Awesome! Copy speed via USB 2.0 to ZFS is really fast as well (18 to 25MB/Sek. As the partition seems to be mounted like a NFS share, one can't really access much informations from "mount" or "df". Therefor the package ships "xlsmounts" which shows detailed informations about the mounted drive.

BrandZ - Linux inside a Solaris Zone

Posted by Doomshammer on Monday, September 3. 2007 at 20:33 in Anwendungen, Computer, English only, Linux/Unix, Privat, Thoughts

Today I played around with BrandZ. BrandZ makes it possible to install another brand of OS inside of a Solaris Zone. My target was a CentOS installation inside of my zone.

The configuration of the zone works pretty much straight forward. A simple:
QUOTE:
zonecfg -z linuxtest1 "create -t SUNWlx; set zonepath=/export/myzone_root"

is enough, to have a basic linux-branded zone. To make the zone avail. via network, you could add a quick:
QUOTE:
zonecfg -z linuxtest1 "add net; set address=192.168.197.201/24; set physical=e1000g0; end"

to get a network interface assigned to the zone.

Now the zone is ready for installation. To make things easy, I took the CentOS tarbar that is avail. here. The installation is done by this command:
QUOTE:
zoneadm -z linuxtest1 install -d /home/doomy/CentOS/centos_fs_image.tar.bz2


After some minutes (depending on your machine speed and the typ of installation you've choosen) the installtion is complete and you are ready to boot up your linux zone:
QUOTE:
zoneadm -z linuxtest1 boot


Now enter the linux via SSH or local console (zlogin -C) and there we are:
QUOTE:
Linux linuxtest1 2.4.21 BrandZ fake linux i686 i686 i386 GNU/Linux


A linux installation couldn't be easier :-)

Upgrading Solaris 10 to Nevada

Posted by Doomshammer on Sunday, September 2. 2007 at 23:21 in Anwendungen, Computer, English only, Linux/Unix, Privat, Thoughts

As I am still running a very old version of Solaris 10 on one of my boxes, I wanted to verify if an upgrade to one of the current builds works w/o issues. So I downloaded Solaris Nevada build 64 and burned on DVD.

As expected the installer directly noticed that there is already Solaris installed on my disk, so it asked if I wanna upgrade. I selected "Upgrade" and the installer started working. It took about 2.5 hours, but no problem occured. The system rebooted and finally snv b64 started booting. I was very surprised that even the RAID-1 on the two root disks was still intact and that the system bootet from it - awesome :-)

After logging in, I noticed that the zpool (where my home directory lifes) was broken. All drives were unavailable and so I wasn't able to take it online again - probably as the ZFS pool was legacy version 3 and the current version of b64 is v6. Anyhow, as ZFS is pretty smart it was very easy to recover it...

QUOTE:
        NAME         STATE     READ WRITE CKSUM
        pool1        UNAVAIL      0     0     0  insufficient replicas
          raidz1     UNAVAIL      0     0     0  insufficient replicas
            c1t2d0   UNAVAIL      0     0     0  cannot open
            c1t3d0   UNAVAIL      0     0     0  cannot open
            c1t4d0   UNAVAIL      0     0     0  cannot open
            c1t5d0   UNAVAIL      0     0     0  cannot open
            c1t6d0   UNAVAIL      0     0     0  cannot open
            c1t8d0   UNAVAIL      0     0     0  cannot open
            c1t9d0   UNAVAIL      0     0     0  cannot open
            c1t10d0  UNAVAIL      0     0     0  cannot open
            c1t11d0  UNAVAIL      0     0     0  cannot open


I booted into single user mode (-m milestone=single) and removed the ZFS cache file (/etc/zfs/zfs.cache). Then I continued the boot sequence by running svcadm milestone all, to get into the multi-user milestone. A 'zpool status' confirmed that there was no zpool available anymore. Now I simply executed 'zpool import pool1' and my pool was online and healthy again - followed by 'zpool upgrade pool1' my pool was upgraded to v6 and that's it! :-)

QUOTE:
        NAME         STATE     READ WRITE CKSUM
        pool1        ONLINE       0     0     0
          raidz1     ONLINE       0     0     0
            c1t2d0   ONLINE       0     0     0
            c1t3d0   ONLINE       0     0     0
            c1t4d0   ONLINE       0     0     0
            c1t5d0   ONLINE       0     0     0
            c1t6d0   ONLINE       0     0     0
            c1t8d0   ONLINE       0     0     0
            c1t9d0   ONLINE       0     0     0
            c1t10d0  ONLINE       0     0     0
            c1t11d0  ONLINE       0     0     0


Love it! :-) Now i'm safe to upgrade my old system, as my test-system upgrade worked better than expected :-)

The broken ramdisk issue

Posted by Doomshammer on Saturday, September 1. 2007 at 18:27 in Anwendungen, English only, Linux/Unix, Privat

Some days ago I downloaded the latest Solaris Express Community Release (build 70) as I wanted to try out booting from a ZFS root. But after the installation was done, I ran into some troubles.

The installer automatically rebooted after the installation was done, GRUB came up as expected, but when I selected the corresponding SXCR b70 kernel, I ended up in an error I haven't seen before.

QUOTE:
start = 0x2000, size = 0x2000
diskread: reading beyond end of ramdisk
krtld: failed to open '/platform/i86pc/kernel/amd64/unix'
[...]


I asked in #opensolaris on Freenode, but nobody was able to provide help. So I tried figuring out what's wrong. I checked bootenv.rc if bootpath was set correctly, I added root(hd0,0,a) to the menu.lst of GRUB, reinstalled GRUB and mboot to the MBR but all I did, didn't help. Finally after re-reading the error message several times, I finally noticed the "reading beyond end of ramdisk". Sounded somehow odd to me - why should the bootload read beyond the ramdisk?

So I booted into failsafe again, mounted c1t0d0s0 to /a and started rebuilding the ramdisk:
QUOTE:
# /boot/solaris/bin/create_ramdisk -R /a

Followed by init 6 which directly updated boot_archive (which is good, as this means that the system noticed, that the ramdisk with the boot image has changed).

Indeed the rebuild of the ramdisk helped, as - after the box has been rebooted - the system came up as expected.

Bookshelf upgrade

Posted by Doomshammer on Monday, August 27. 2007 at 19:33 in Anwendungen, Computer, English only, Linux/Unix, Privat, Thoughts
As one never completes training on Solaris (and OpenSolaris), I upgraded my bookshelf with the following three books to get some deeper insight into some new techniques:

#1: OpenSolaris fuer Anwender, Administratoren und Rechenzentren
#2: Veritas Storage Foundation
#3: Solaris Performance and Tools: DTrace and MDB Techniques


Bookshelf upgrade

I think I have enough input for the next month now :-) Maybe I'll write a review here as well.

Two new toys

Posted by Doomshammer on Thursday, April 12. 2007 at 18:48 in Computer, English only, Linux/Unix, Photography, Privat
Today two new "toys" arrived :-)

1.) Canon RC-5 IR remote control - works great :-)
2.) OpenSolaris Startkit

Calendar

Back May '13
Mon Tue Wed Thu Fri Sat Sun
    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    

Quicksearch

Not for Sale!

This blog is not for sale!

Latest twitter

Latest Photos

ERROR: The HTTP server returned the error or the warning(result:403).

Getaggte Artikel

Buttons

Ich bin ein Dokuleser
Get OpenSolaris
Gimme a Smile
neessen.net - Webhosting
I'm a blogger!
Lebst Du noch oder oarks Du schon?
last.fm
trnd - be trendy
I hear Metal
Visit GeoURL
Powered by Linux
Zsh lover
VIM! The Editor
Get Firefox
Ihr, nicht ich!
My amazon wishlist

BLOGROLL