Further adventures of a home NAS with Solaris 11
By user12611170 on Dec 24, 2008
Upgrading Solaris 11 with live upgrade.
Solaris is updated continuously with new features and bug fixes. We can use live upgrade to update the home system. There was a good posting here for how to do it. I got most of my info from that.
The upgrade must be done as root. Since I've been using Solaris Express CE, I'll download the DVD image from http://opensolaris.org/os/downloads/.
It can be burned to a DVD or downloaded to a hard drive. If you download to a hard drive, you can mount the iso image using the loopback file driver.
lofiadm -a /root/sol-nv-b97-x86-dvd.iso /dev/lofi/1
mount -F hsfs /dev/lofi/1 /mnt
I burned the DVD and Solaris automounted to /cdrom but I'll use /mnt for this example.
Next was to update the live upgrade. Not sure this is required every time. pkgrm will ask a lot of y/n questions for which I answered y. Mostly for administrator checks and broken dependencies. It should be ok after the pkgadd.
pkgrm SUNWluu SUNWluzone SUNWlur SUNWlucfg
pkgadd -d . SUNWluu SUNWluzone SUNWlur SUNWlucfg
Get the current release info with:
SunOS homeserver 5.11 snv_103 i86pc i386 i86pc
Here the current release is snv_103 and I'll be upgrading to snv_105. The name is arbitrary but it's better to keep with the build format.
Create a new boot environment:
lucreate -c snv_103 -n snv_105
This will output quite a bit of text and end with "Creation of boot environment <snv_105> successful." Use lustatus to verify the creation.
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
snv_103 yes yes yes no -
snv_105 yes no no yes -
Now for the upgrade itself
luupgrade -u -n snv_105 -s /mnt/
This can take an hour, it does give a percent progress on the last line.
When it is done with the upgrade, the new boot environment can be activated with:
If you have an external CDROM, unmount it now and remove it from the system. Restart the system with:
Once rebooted, we can check things:
SunOS homeserver 5.11 snv_105 i86pc i386 i86pc
You can also see the snv_103 snapshot using zfs list. Examining /etc/release and lustatus again will show the upgrade.
Setting up a time server
Right now all my PCs ping different time servers. Rather than having them go out individually, I can set the Solaris box to synchronize itself to a time server and serve as the time server for the rest of my PCs. I was tempted to set up my Z3801 disciplined clock as the source but there are quite a few good time servers already, so it really wasn't necessary.
To start, make sure the hardware clock is reasonably close to the right time before starting. This can be set in the BIOS. The time server uses the network time protocol (NTP), is configured by editting the ntp.conf file and run a service, xntpd. Yes, the x is still in xntpd. Start with the server template ntp.server
cp /etc/inetd/ntp.server /etc/inetd/ntp.conf
edit the ntp.conf file
#fudge 127.127.XType.0 stratum 0
I like the pool.ntp.org servers. See their website www.pool.ntp.org for more info
add the lines to your ntp.conf file:
Save the file and exit the editor. Start the ntp server with:
svcadm enable ntp
and check the status to see if it went online ok
svcs -v | grep ntp
I would suggest waiting about a half hour for the service to synchronize the time properly. You can check the progress with ntpq -p. If one of the IP addresses should start with a '\*', that server is time synchronized and the Solaris box can now be used to synchronize the PCs.
Under Windows XP, if you double click on the taskbar clock, select the Internet Time tab, there is one box for a server. Put the hostname or ip address of the server in this box and click update now button. If all goes well it will give a message that time was synchronized.