Pages

Wednesday 22 September 2010

A quick sidestep as I needed to get some files up to share with my sister in-law so I thought I'd enable dropbox on this new desktop. Documented here as there seems to be some disparate inaccurate bits of info

sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu lucid main"
sudo apt-key adv –keyserver pgp.mit.edu –recv-keys 5044912E
sudo apt-get update;sudo apt-get install nautilus-dropbox

I'm becoming familiar now with apt, and while I'm missing zfs and IPS from Opensolaris I must say as an end user desktop I'm pretty happy with Ubuntu and the integration with the rest of the world.

Tuesday 21 September 2010

Moving an iscsi zvol to a new pool

Been working on fixing my 4K sector disk write performance issue, will post something on that later. So I have create a new zpool and after zfs send | zfs receive on the various zfs volumes and filesystem I was left to figure out how to move my iscsi guid's as follows

sbdadm list-lu

Found 4 LU(s)

GUID DATA SIZE SOURCE
-------------------------------- ------------------- ----------------
600144f03048810000004c356bc50001 21474836480 /dev/zvol/rdsk/lake/iscsi/windows2008
600144f03048810000004c74b73f0001 10737418240 /dev/zvol/rdsk/lake/iscsi/sol10
600144f03048810000004c90909d0001 10737418240 /dev/zvol/rdsk/lake/iscsi/winxp
600144f03048810000004c91cc540002 21474836480 /dev/zvol/rdsk/lake/iscsi/sol10u9

So these four have been moved to a new zpool so I tried delete-lu and import-lu

stmfadm delete-lu 600144f03048810000004c90909d0001
stmfadm import-lu /dev/zvol/rdsk/lake2/iscsi/winxp
stmfadm: meta file error

Hmmm not what was after but try this on instead using the guid allocated previously

stmfadm create-lu --lu-prop guid=600144f03048810000004c90909d0001 /dev/zvol/rdsk/lake2/iscsi/winxp
Logical unit created: 600144F03048810000004C90909D0001
stmfadm add-view 600144F03048810000004C90909D0001

Done works the Virtual box machine this is attached to runs no problems

Thursday 9 September 2010

Oracle Solaris download from OTN with wget

Solaris 10 Update 9 recently announced and I believe this is the first release under the new stewardship. For the first time last month I received an email from my ISP saying I was getting close to my peak download limit, so I am making concerted effort to download in my off-peak time.

So I need to automate the download of recent Solaris release from OTN. Drop this wget incantation into an at job and we are off.

wget -v -c --no-check-certificate "https://profile.oracle.com/jsp/reg/loginHandler.jsp?remoteIp=xxx.xxx.xxx.xxx&globalId=&redirectUrl=http://download.oracle.com/otn/solaris/10/sol-10-u9-ga-x86-dvd-iso.zip&username=XXXXX&password=XXXXX" -o getsolarisx86.log &

Replace xxx.xxx.xxx.xxx with your remoteIP address and the same for your OTN username and password and you should be in business.

Wednesday 8 September 2010

In bed with the devil


Inspired by the recent events of some ex NP MP's siding with the ALP, I too have been inspired to move from my Opensolaris (RIP) desktop to Ubuntu.

I've never been a huge fan of packaging systems as no matter which you use each has it's own failings and misgiving. If there is one thing worse than a packaging system it's the dependency hell that is a Linux distro, so I'll give the Ubuntu one a crack. While it's been sometime since I used such a distro in real anger recent involvement in this area with my paying job has shown that the issue has not gotten any better.

So first cab of the rank is getting Virtualbox installed
  • Add the repository
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian lucid non-free"
  • Add the key Oracle public key
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
  • Update apt-get
sudo apt-get update
  • and Finally install
sudo apt-get install virtualbox-3.2

Not bad only 8 other packages I needed to make this install happen and get VirtualBox 3.2.8 r64453 .

Next on the list I need to move my VM's onto my new desktop.

Wednesday 1 September 2010

Ergfit Race 2

Last weekend saw the running of Race 2 of the Ergfit indoor Regatta. Yours truly tiped in with a PB time of 1:33.7 in the 500m event, .9 second quicker than race one. Aiming for a 1:32 so some work still to be done.