<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sysadmin Ramblings &#187; SunRay</title>
	<atom:link href="http://ramblings.narrabilis.com/wp/category/sunray/feed/" rel="self" type="application/rss+xml" />
	<link>http://ramblings.narrabilis.com/wp</link>
	<description>Scripts, settings, and fixes...</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:29:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using lvm only on specific drives (Reading all physical volumes.  This may take a while&#8230;)</title>
		<link>http://ramblings.narrabilis.com/wp/using-lvm-only-on-specific-drives-reading-all-physical-volumes-this-may-take-a-while/</link>
		<comments>http://ramblings.narrabilis.com/wp/using-lvm-only-on-specific-drives-reading-all-physical-volumes-this-may-take-a-while/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 18:50:21 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SunRay]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/?p=157</guid>
		<description><![CDATA[On our kvm hypervisor we have several vm&#8217;s using fibre channel for storage.  The hypervisor has to see all the devices, but each device has it&#8217;s own lvm so when the hypervisor boots, it tries to read all of them. 

To fix this i restricted lvm to only use sda (documented in lvm.conf).  [...]]]></description>
			<content:encoded><![CDATA[On our kvm hypervisor we have several vm&#8217;s using fibre channel for storage.  The hypervisor has to see all the devices, but each device has it&#8217;s own lvm so when the hypervisor boots, it tries to read all of them. <span id="more-157"></span>
<p>
<!--adsense#inline-->To fix this i restricted lvm to only use sda (documented in lvm.conf).  If you are stuck at the vgscan stage<br />
<tt>Reading all physical volumes.  This may take a while&#8230;</tt>
<br />
Then you probably need to do something similar to this.

<code><br />
devices {<br />
&nbsp;&nbsp;&nbsp;&nbsp;dir = &quot;/dev&quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;scan = [ &quot;/dev&quot; ]<br />
&nbsp;&nbsp;&nbsp;&nbsp;preferred_names = [ ]<br />
&nbsp;&nbsp;&nbsp;&nbsp;filter = [ &quot;a|/dev/sda.*|&quot;, &quot;r|.*|&quot; ]<br />
}<br />
</code>

The filter line is the important one.  After that you&#8217;ll need to rebuild initrd to pickup the modified lvm.conf.  I usually cheat and use the kernel&#8217;s method for that.
<code><br />
[root@server0 lvm]# rpm -q kernel &#45;-scripts |grep mkinitrd<br />
/sbin/new-kernel-pkg &#45;-package kernel &#45;-mkinitrd &#45;-depmod &#45;-install 2.6.18-128.1.16.el5 || exit $?<br />
[root@server0 lvm]# <br />
</code>

Hope that helps.]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/using-lvm-only-on-specific-drives-reading-all-physical-volumes-this-may-take-a-while/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GNOME kiosk session in SunRay SRSS 4.1 on RHEL5</title>
		<link>http://ramblings.narrabilis.com/wp/gnome-kiosk-session-in-sunray-srss-41-on-rhel5/</link>
		<comments>http://ramblings.narrabilis.com/wp/gnome-kiosk-session-in-sunray-srss-41-on-rhel5/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 04:51:03 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SunRay]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/?p=151</guid>
		<description><![CDATA[After installing SRSS we tried to setup a gnome kiosk session.  There were no prototypes for this installed.  After scouring the net we only found an example of something that didn&#8217;t work :-(. 

Here is our config.

/etc/opt/SUNWkio/sessions/gnome.conf

KIOSK_SESSION_EXEC=/etc/opt/SUNWkio/sessions/gnome/gnome-kiosk
KIOSK_SESSION_LABEL=&#34;GNOME&#34;
KIOSK_SESSION_ICON=
KIOSK_SESSION_DESCRIPTION=&#34;GNOME&#34;
KIOSK_SESSION_APPLAUNCHER=/opt/SUNWkio/lib/kioskapplaunch
KIOSK_SESSION_PROTOTYPE=gnome
KIOSK_SESSION_ARGS=/usr/bin/gnome-session


/etc/opt/SUNWkio/sessions/gnome/gnome-kiosk

#!/bin/sh
&#160;
$*

*make sure gnome-kiosk is executable.  It&#8217;s a very silly script, but it seems that this is [...]]]></description>
			<content:encoded><![CDATA[After installing SRSS we tried to setup a gnome kiosk session.  There were no prototypes for this installed.  After scouring the net we only found an example of something that didn&#8217;t work :-(. 
<span id="more-151"></span>
Here is our config.
<p>
<b><tt>/etc/opt/SUNWkio/sessions/gnome.conf</tt></b>
<code><br />
KIOSK_SESSION_EXEC=/etc/opt/SUNWkio/sessions/gnome/gnome-kiosk<br />
KIOSK_SESSION_LABEL=&quot;GNOME&quot;<br />
KIOSK_SESSION_ICON=<br />
KIOSK_SESSION_DESCRIPTION=&quot;GNOME&quot;<br />
KIOSK_SESSION_APPLAUNCHER=/opt/SUNWkio/lib/kioskapplaunch<br />
KIOSK_SESSION_PROTOTYPE=gnome<br />
KIOSK_SESSION_ARGS=/usr/bin/gnome-session<br />
</code>
<p><!--adsense#inline-->
<b><tt>/etc/opt/SUNWkio/sessions/gnome/gnome-kiosk</tt></b>
<code><br />
#!/bin/sh<br />
&nbsp;<br />
$*<br />
</code>
<sup>*</sup>make sure gnome-kiosk is executable.  It&#8217;s a very silly script, but it seems that this is required, when we set KIOSK_SESSION_EXEC to gnome-session it didn&#8217;t work.
<p>
The only other thing we did was make a directory called gnome in prototypes (<tt>/etc/opt/SUNWkio/prototypes/gnome</tt>)
<p>After making these scripts the kiosk steps in the sunray manual worked.
<p>
<tt>utpolicy -a -z both -k pseudo</tt>
<p>
Our SunRays now login to a gnome session if there is no card in the sunray.  We locked down the session using sabayon.  Hope that helps.]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/gnome-kiosk-session-in-sunray-srss-41-on-rhel5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sound under KDE on SunRay</title>
		<link>http://ramblings.narrabilis.com/wp/sound-under-kde-on-sunray/</link>
		<comments>http://ramblings.narrabilis.com/wp/sound-under-kde-on-sunray/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 21:05:47 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[SunRay]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/sound-under-kde-on-sunray/</guid>
		<description><![CDATA[We were specifically trying to get skype to work on a sunray. We got audio working by configuring kde.
If you start kcontrol Select:
Sound &#038; Multimedia
Sound System
Hardware
We selected Full Duplex and changed the default audio location to that of AUDIODEV (/tmp/SUNWut/dev/utaudio/ut-dsp-0
Apply the changes

Then restart the application with artsdsp
[user@host]: &#60;strong&#62;artsdsp skype&#60;/strong&#62;
ICE default IO error handler doing an [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify">We were specifically trying to get skype to work on a sunray. We got audio working by configuring kde.</p>
If you start <tt>kcontrol</tt> Select:
Sound &#038; Multimedia
Sound System
Hardware
We selected Full Duplex and changed the default audio location to that of AUDIODEV (/tmp/SUNWut/dev/utaudio/ut-dsp-0
Apply the changes

Then restart the application with <tt>artsdsp</tt>
<pre>[user@host]: &lt;strong&gt;artsdsp skype&lt;/strong&gt;<br />
ICE default IO error handler doing an exit(), pid = 753, errno = 0<br />
volume_open: error opening /dev/mixer: No such device</pre>
After this, audio works.  We still don&#8217;t have microphone working though&#8230; Other KDE applications seem to prefer this method, starting via artsdsp]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/sound-under-kde-on-sunray/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xnewt dying on SunRay 3.0</title>
		<link>http://ramblings.narrabilis.com/wp/xnewt-dying-on-sunray-30/</link>
		<comments>http://ramblings.narrabilis.com/wp/xnewt-dying-on-sunray-30/#comments</comments>
		<pubDate>Mon, 14 Nov 2005 21:58:37 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[SunRay]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/xnewt-dying-on-sunray-30/</guid>
		<description><![CDATA[After modifying gdm.conf we noticed that Xnewt would not start properly on occassion. Xnewt was not ignoring the vt[0-9] command line option sent to X to specify a virtual console on which to run. We removed this from the command line sent to Xnewt and renamed Xnewt to Xnewt.sun
pushd /usr/X11R6/bin
mv Xnewt Xnewt.sun
echo &#60;&#60; EOF &#62;Xnewt
#!/bin/sh
&#160;
XFIX=`echo [...]]]></description>
			<content:encoded><![CDATA[After modifying <tt>gdm.conf</tt> we noticed that Xnewt would not start properly on occassion. Xnewt was not ignoring the vt[0-9] command line option sent to X to specify a virtual console on which to run. We removed this from the command line sent to Xnewt and renamed Xnewt to Xnewt.sun
<pre>pushd /usr/X11R6/bin<br />
mv Xnewt Xnewt.sun<br />
echo &lt;&lt; EOF &gt;Xnewt<br />
#!/bin/sh<br />
&nbsp;<br />
XFIX=`echo $@ |sed -e&#039;s/vt[0-9]*//&#039;`<br />
echo `date`: ARGS=$@ XFIX=$XFIX &gt;&gt;/var/log/Xnewt<br />
&nbsp;<br />
exec Xnewt.sun $XFIX -fp unix/:7100<br />
EOF<br />
chmod 755 Xnewt<br />
popd</pre>]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/xnewt-dying-on-sunray-30/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
