jumpstart, lofiadm, and setup_install_server

Hi,

We've been using lofiadm to mount DVD isos of

various versions and releases of Solaris in order

to run ./setup_install_server for a few years now.

It occurred to me that perhaps we could just share the

lofi FSs over NFS instead, saving a ton of diskspace,

after adding them to the vfstab.

Has anyone tried this out in a jumpstart environment?

Thanks a lot.

[418 byte] By [kidari..] at [2007-11-26 9:55:47]
# 1
Why don't you give it a shot and see what happens?perhaps post the results here as well?
implicate_order at 2007-7-7 1:17:09 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
If no one has any war stories, then I certainly will.Asked in the interests of efficiency/laziness: no pointre-inventing the wheel, esp. if it's square.Watch this space :-)
kidari at 2007-7-7 1:17:09 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

Hmmm, encouraging

I just moved the original shared install directory out the way,

recreated it empty, and mounted the ISO to that

new directory. Did an unshareall & a shareall, for

no good reason.

cd /export/install

mv s10sparc0106 s10sparc0106.ORIG

mkdir s10sparc0106

lofiadm -a /export/isos/s10sparc0106.iso

mount -F hsfs /dev/lofi/1 /export/install/s10sparc0106

The only troublesome part is getting the lofi

mounts to be recreated at reboot

Here's a rc3.d/S99 script that has a go.

Yes, I know SMF is the future....

#!/bin/ksh

for f in /export/isos/*.iso

do

file=$(basename $f)

mount -F hsfs $( lofiadm -a $f ) /seif/os/${file%.iso*}

done

df | grep -w os

kidari at 2007-7-7 1:17:09 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
Whoops, forgot to say that the client booted just fine.Didn't even redo the add_install_client thing,
kidari at 2007-7-7 1:17:09 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5
Very cool!How's the situation when multiple clients boot off this image (say kicking off 5 jumpstarts at the same time)?
implicate_order at 2007-7-7 1:17:09 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6

Won't be able to try that out for a couple of weeks,

but I shouldn't think it makes much difference, esp.

as the clients' pkgadd is/was the limiting factor.

WAS: ufs->nfs

NOW: ufs->hsfs->nfs

Would be surprised if that added a noticeable overhead.

Anyone know anything about ufs/hsfs caching?Not me....

kidari at 2007-7-7 1:17:09 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 7

Just to add that after repeatedly downloading 0606 DVD segs (on

different machines, on an 8Mb connection, using SDM, with the

.zip MD5 checksums checking out) and failing to get a .iso that

lofiadm would accept, and then getting a CAT_000002 internal server

error when I tried to buy a CD, I ended up cheating.

Lofiadm always complained about the .iso file size not being a

multiple of 512 bytes.

The filesize was 356 short of a multiple of 512.

dd if=/dev/zero of=/tmp/o bs=1 count=356

ls -l /tmp/o

cat /tmp/o >> Solaris10-3-05-DVD.iso

ls -l Solaris10-3-05-DVD.iso

lofiadm -a ~bob/Solaris10-3-05-DVD.iso

mount -F hsfs /dev/lofi/1 /mnt

ls /mnt

Bingo!

kidari at 2007-7-7 1:17:09 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...