Pokazywanie postów oznaczonych etykietą zfs. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą zfs. Pokaż wszystkie posty

wtorek, 13 maj 2008

Playing with fire

Following losely Indiana update guidelines found here I have done a clone of my root filesystem. Then I have fooled around with it a little bit.

zfs snapshot rpool/ROOT/opensolairs@for-cloning
zfs clone rpool/ROOT/opensolaris@for-cloning rpool/ROOT/opensolaris-1
zfs set mountpoint=legacy rpool/ROOT/opensolaris-1
mount -F zfs rpool/ROOT/opensolaris-1 /mnt
vim /mnt/etc/vfstab

Here I have replaced rpool/ROOT/opensolaris with rpool/ROOT/opensolaris-1. I yet edited /rpool/boot/grub/menu.lst by copying an OpenSolaris entry and changing the bootfs rpool/ROOT/opensolaris line in the copy to bootfs rpool/ROOT/opensolaris-1. In the end I had two different entries in grub boot menu.
I then did:

rm -rf /platform/

and rebooted. In the above one line I have effectively wiped out kernel and boot_archive. It came as no surprise, that grub complained that it couldn't boot my old system. Oh well, I choose the second entry, booted from the clone, promoted it with zfs promote, destroyed the old system, which became the clone now, and type to you quite happily from working OpenSolaris 2008.05.
Have a Nice day.

środa, 7 maj 2008

OpenSolaris RC2a -> 2008.05 upgrade

I did the upgrade yesterday. Went like this:

  • pkg refresh --full

  • pkg image-update -v

  • reboot


It did a clone of original ROOT filesystem (took a second or two; compare this to creating second LU environment!), upgraded the clone and added an entry to grub menu. After I booted the upgraded ROOT and decided that it's simply working, I destroyed a previous ROOT fs. I also noticed, that the update process did a snapshot of a new ROOT. My, is it fun or what? :)
On the other note, additional pkg repositories:

  • SunFreeware repo: http://pkg.sunfreeware.com:9000

  • Blastwave has one: http://blastwave.network.com:10000



Not a long list. :) Hopefully, will get longer and the original repository will get more contributors.