Default style (Cherry Eve). Switch styles (Capricorn). XML Feed Calendar
All | General | Programming | Shell
20040721 Wednesday July 21, 2004

Liveupgrade - the script

I use the Script to upgrade my machine whenever a new build comes out of Solaris. It allows me to not have to remember to issue the necessary upgrade commands.
It illustrates the use of the live upgrade cli commands to automate the upgrading of a machine into a pre-configured alternate boot environment. July 21, 2004 02:04 PM IST Permalink

20040713 Tuesday July 13, 2004

ext2fs - readonly access for Solaris Express

While having lunch today I decided to port the read-only version of ext2fs for Solaris Express. Not a load of changes (in my book), and it seems to work correctly. I've posted the updated driver back to the original porter of the code, so it should be appearing on http://sun.drydog.com/packages.php soon enough. I posted an internal copy for those that want it inside the wall too. July 13, 2004 07:49 PM IST Permalink

20040712 Monday July 12, 2004



July 12, 2004 10:41 AM IST Permalink

Overlay mountpoints

Generally when you mount a file system at a certain point, it prohibits you from mounting other file systems to that point. This is normally not a problem, as you should normally never need to mount another resource over the previous mount point. However there can be times that this is your only option - for example replacing a device with a new one.
To Accomplish this we use the overlay (-O) option to mount. For example we have a mount point /opt/silly, containing a local device and it's corresponding data:

# df -h /opt/silly
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c7t0d0s0       22G   9.8G    12G    47%    /opt/silly
if we try to mount another file system at this point:
# mount trex:/export/web /opt/silly
nfs mount: mount: /opt/silly: Device busy
but we can add the -O flag:
# mount -O trex:/export/web /opt/silly
#
and then:
# df -h /opt/silly
Filesystem             size   used  avail capacity  Mounted on
trex:/export/web       8.1G   6.9G   1.0G    87%    /opt/silly
But there are actually two file systems mounted there:
# grep opt/silly /etc/mnttab
/dev/dsk/c7t0d0s0       /opt/silly      ufs     rw,intr,largefiles,logging,xattr,onerror=panic,dev=8002d0       1089624975
trex:/export/web        /opt/silly      nfs     rw,xattr,dev=44000ae    1089625076
July 12, 2004 10:39 AM IST Permalink