Yes, a cold restart would be required, or a full restart of a session (i.e. logging out of the CAM session, session being torn down, then a new session). Xsession.d gets sourced at session creation. Just doing a normal restart keeps existing sessions.

The script should do just fine where it's at, but you can move it earlier.

There's no way to manage this disk from Windows. You could mount just the drive, but the drive would have to be inserted before you start windows. That's why we do the mount point. Plus this allows you to mount more than one device.

There are others that run cron jobs looking for stale mount points and cleaning them up.

Best practices include, closing anything that has the drive open before pulling it or you will get stale mount points. PCFS is being redone in S11 which will do a better job. Unfortunately it's a total re-write of PCFS so it does not appear to be going into S10.

Don't use this combo with Linux. Unlike Solaris, Linux does not write to the the thumbdrive as you would expect. Pulling the drive without doing the proper eject commands will result in corrupted data.

Matt Hatley wrote a zenity based thumbdrive manager. You can run this from the CAM menu. I'll post it to the Think Thin blog.


Jim Klimov wrote:
Hello Craig,

Monday, February 12, 2007, 8:00:22 PM, you wrote:

CB> http://blog.sun.com/ThinkThin/entry/cam_mass_storage_workaround
Oh, thanks a lot! I know now that I've read this one, but lost the
link since :(

There's a couple of things to note:
1) It took a session restart for the Sun Ray server to use this script
   and make the mountpoint directories, but only after a cold restart
   (and may be a re-plug of the thumb drive) it was mounted. Perhaps
   this new script should be called earlier in the session startup?
2) Will this happen after every reboot of the server (when /tmp dir is
   wiped)? i.e. the first sun ray user to connect won't see their thumb
   drives? :)

What is a best-practice for using the USB drives in CAM+uttsc scenario?
For example, since they are not seen by Windows as disks (uttsc shares
the mountpoint where the plugged drive appears), I can't eject them
from Windows nor see the available space. Am I doing something wrong?

Should I make an "eject" menu item on the dtsession menu and instruct
our users to use this one when they walk away from work stations?

By the way, will the thumb drive be shared between Windows sessions,
if a user makes several uttsc connections to different servers/logins? :)

CB> You'll probably also want to make sure at the end of the CAM script that
CB> you unmount the USB drives and purge the mount point for the user.  I've
CB> been meaning to add that to the script.
If I may, which script/dir is this? Which scripts are called to finish
off the CAM session?

We use a variant of your "utsplash" script with 3 buttons to start
applications, so its "exit" action actually starts an app. To recycle
a session we instead use an "exit" menu item when right-clicking on a
desktop. We also put some rarely-used servers and apps on the menu.
dtsession is the critical application here, whose death causes the
session recycling.

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to