Archive

Posts Tagged ‘ubuntu’

Dell EqualLogic PS Series iSCSI SAN Arrays – Storage Area Network

April 28th, 2009

This is not the first time I deal with SAN device but I never use it with Ubuntu Linux before. Anyway, there is first time for everything.

After 15 minutes playing around with Open-iSCSI (it can be done in just a few seconds in Windows by using GUI based iSCSI Initiator), here is the howto (and at the same time as a note for myself)

1) Install Open-iSCSI Initiator

sudo apt-get install open-iscsi

2) If you want your computer manually connect to the SAN volume, proceed with step 3. But if you want your computer automatically connect to the volume, edit the iscsid configurtation file

sudo nano /etc/iscsi/iscsid.conf

And change the following parameters

  • isns.address = SAN-IP-ADDRESS-HERE
  • isns.port = 3260

3) If the restriction is based on IP (without password) procees with step 4. But if password is required, edit the iscsid configurtation file

sudo nano /etc/iscsi/iscsid.conf

And change/set the following parameters

  • node.session.auth.username = USER
  • node.session.auth.password = PASSWORD
  • discovery.sendtargets.auth.username = USER
  • discovery.sendtargets.auth.password = PASSWORD

4) Restart the open-iscsi service

sudo /etc/init.d/open-iscsi restart

5) Run open-iscsi administration utility with root privilege to discover available volume

sudo iscsiadm -m discovery -t sendtargets -p 192.168.10.1

where 192.168.10.1 is the IP of your SAN. If your configuration is working, you will get something similar to this :-

192.168.10.1:3260,1 iqn.2001-05.com.equallogic:0-8a0906-f260b4603-e8b0000001249f55-vss-control
192.168.10.1:3260,1 iqn.2001-05.com.equallogic:0-8a0906-6980b4603-a990000001f49f56-csmvol3
192.168.10.1:3260,1 iqn.2001-05.com.equallogic:0-8a0906-58c0b4603-1730000001c49f56-csmvol2
192.168.10.1:3260,1 iqn.2001-05.com.equallogic:0-8a0906-4280b4603-a410000001949f56-csmvol1

6) In this case, I want to connect to volume 1 (iqn.2001-05.com.equallogic:0-8a0906-4280b4603-a410000001949f56-csmvol1), so here is what I should do

sudo iscsiadm --mode node --targetname iqn.2001-05.com.equallogic:0-8a0906-4280b4603-a410000001949f56-csmvol1 --portal 192.168.10.1:3260 --login

And if you are successfully connected, you’ll get the following message

Logging in to [iface: default, target: iqn.2001-05.com.equallogic:0-8a0906-4280b4603-a410000001949f56-csmvol1, portal: 192.168.10.1,3260]
Login to [iface: default, target: iqn.2001-05.com.equallogic:0-8a0906-4280b4603-a410000001949f56-csmvol1, portal: 192.168.10.1,3260]: successful

7) Now, verify the device name that has been connected to your machine

tail -f /var/log/messages

And in my case, this is my output

Apr 28 09:42:48 xps kernel: [ 2514.014658] scsi 6:0:0:0: Direct-Access     EQLOGIC  100E-00          4.0  PQ: 0 ANSI: 5
Apr 28 09:42:48 xps kernel: [ 2514.016499] sd 6:0:0:0: [sdb] 209725440 512-byte hardware sectors: (107 GB/100 GiB)
Apr 28 09:42:48 xps kernel: [ 2514.017832] sd 6:0:0:0: [sdb] Write Protect is off
Apr 28 09:42:48 xps kernel: [ 2514.018256] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Apr 28 09:42:48 xps kernel: [ 2514.019240] sd 6:0:0:0: [sdb] 209725440 512-byte hardware sectors: (107 GB/100 GiB)
Apr 28 09:42:48 xps kernel: [ 2514.019434] sd 6:0:0:0: [sdb] Write Protect is off
Apr 28 09:42:48 xps kernel: [ 2514.019836] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Apr 28 09:42:48 xps kernel: [ 2514.019842]  sdb: sdb1
Apr 28 09:42:48 xps kernel: [ 2514.024882] sd 6:0:0:0: [sdb] Attached SCSI disk
Apr 28 09:42:48 xps kernel: [ 2514.026039] sd 6:0:0:0: Attached scsi generic sg2 type 0

The connected volume appear to be as SDB in my machine

8 ) If the volume already contain partition and already formated, you can straight away mount them, but if they dont have partition and filesystem yet, you can either use fdisk or gparted to create the partition and format them ;)

Enjoy..!~

Demo for fdisk -l output

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x12961295
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          12       96358+  de  Dell Utility
/dev/sda2   *          13        7661    61440592+   7  HPFS/NTFS
/dev/sda3            7662       11396    30001387+   b  W95 FAT32
/dev/sda4           11397       19457    64749982+   5  Extended
/dev/sda5           11397       11520      995998+  82  Linux swap / Solaris
/dev/sda6           11521       19457    63753921   83  Linux
 
Disk /dev/sdb: 107.3 GB, 107379425280 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00093e08
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       13054   104856223+  83  Linux

[Reference: Cyberciti & Ubuntu Forum]

xanda IT Related , , ,

Installing scRUBYt! on Ubuntu Linux

March 10th, 2009

scRUBYt! is a simple but powerful web scraping toolkit written in Ruby. It’s purpose is to free you from the drudgery of web page crawling, looking up HTML tags, attributes, XPaths, form names and other typical low-level web scraping stuff by figuring these out from your examples copy’n'pasted from the Web page or straight from Firebug.

Here are some tips on how to make scRUBYt! works on Ubuntu Linux :

Update your packages list

sudo apt-get update

Now install build-essential and dependencies

sudo apt-get install build-essential ruby-full rubygems libxml-ruby libxslt1.1 libxslt1-dev libxslt-ruby libxml2 libxml2-dev

By using gem, install scRUBYt!’s dependencies

sudo gem install rack rubyforge rake hoe sinatra nokogiri user-choices xml-simple s4t-utils builder commonwatir activesupport hpricot mechanize firewatir

Finally, install scrubyt

sudo gem install scrubyt

Enjoy! :D

xanda IT Related , , , , ,

Installing VMWare Server 1.0.8 on Ubuntu 8.04.1 & 8.0.4.2 (Hardy)

January 21st, 2009

[updated on 12/6/2009]

Need to rush, here is my short update

1) Install the dependencies and prepare environment

sudo apt-get install ia32-libs libc6-i386 build-essential xinetd linux-headers-`uname -r`
sudo mkdir /etc/vmware && sudo mkdir /etc/vmware/ssl && sudo touch /etc/vmware/ssl/rui.key && sudo touch /etc/vmware/ssl/rui.crt

2) Download VMware Server 1.0.8

cd ~/Desktop
wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.8-126538.tar.gz

3) Extract the downloaded (tar.gz) file

tar xvfz VMware-server-*.tar.gz
cd vmware-server-distrib

4) Get the serial number

http://register.vmware.com/content/registration.html

5) Run the installer script

sudo ./vmware-install.pl

6) What ever prompted by the installer, just simply press Enter. Owh ya, once the installer request for serial number, enter the serial number that you get from step 4.

7) Something wrong with the installed libgcc, so remove it and symlink the libgcc back

sudo mv /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1-vmware
sudo ln -s /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1

8 ) Now run your VMWare Server. Taddaaa!~

9) Lets clean things up

rm -f VMware-server*
rm -dfr vmware-server-distrib/

Thanks

**[updated on 3rd February 2009]**

If you found this error (OR something similar) :-

The correct version of one or more libraries needed to run VMware Server may be
missing.  This is the output of ldd /usr/bin/vmware:
        linux-gate.so.1 =>  (0xffffe000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7f5a000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f57000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f45000)
        libX11.so.6 => not found
        libXtst.so.6 => not found
        libXext.so.6 => not found
        libXt.so.6 => not found
        libICE.so.6 => not found
        libSM.so.6 => not found
        libXrender.so.1 => not found
        libz.so.1 => /usr/lib/libz.so.1 (0xb7f2f000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e00000)
        /lib/ld-linux.so.2 (0xb7f83000)
 
This program cannot tell for sure, but you may need to upgrade libc5 to glibc
before you can run VMware Server.

Simply install the following package

sudo apt-get install libx11-6 libxtst6 libxext6 libsm6 libxrender1 libxt6

xanda IT Related , , , , , ,

Ubuntu Cover Malu!

July 4th, 2008

Seperti yang aku ulang-ulangkan di SINI, SINI, SINI dan SINI. UBUNTU 8.04 IS A MISTAKE! Hahaha… Tak tahan dengan rasa malu, Ubuntu hari ini meng-announce-kan menunculan Ubuntu 8.04.1

LTS pun nak buat main2… sampai keluar update version untuk LTS.. haih.. ape la dieorang nie…

BTW untuk release announcement, sila click SINI

xanda IT Related

Perfect Desktop Installation of Ubuntu 8.04 on MSI VR320 & MSI VR320X

June 9th, 2008


[image source: MSI]

This tutorial can also be used for computers with the following spec:

  1. Realtek High Definition Audio
  2. RT61 or RT2500 Wireless Cards

Ok.. lets start..

  1. Download the installation CD. (see GettingUbuntu)
  2. Burn the ISO to a CD (see BurningIsoHowto) and check to make sure it was burned correctly. (see Installation/CDIntegrityCheck)
  3. Proceed with normal installation of Ubuntu by booting from the installation CD. (see GraphicalInstall)
  4. Once the installation is finish, reboot your machine and boot into your fresh Ubuntu 8.04
  5. Run update and upgrade
    sudo apt-get update && sudo apt-get upgrade
  6. Add the Medibuntu repo as well ;)
    sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
  7. Now run apt-get update and install the medibuntu keyring
    sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
  8. As i mentioned in my previous post, Ubuntu 8.04 contains several problems especially when it is running on my notebook. Some of the problems are looping sound and unsupported wifi card. To avoid these, you can use i386 kernel and so far all the problems are no longer appear. To install the i386 kernel, run the following command
    sudo apt-get install linux-headers-386 linux-image-386 linux-386
  9. Now your need to reboot and boot into the i386 kernel
  10. Lets install several packages
    sudo apt-get install envyng-gtk audacious vlc mplayer mozilla-mplayer w32codecs flashplugin-nonfree libflashsupport gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse libavcodec1d libavformat1d libavutil1d libcdaudio1 libdc1394-13 libdvdread3 libfaac0 libfaad0 libgmyth0 libgsm1 libiptcdata0 liblame0 libmjpegtools0c2a libmpeg2-4 libmysqlclient15off libopenspc0 libpostproc1d libquicktime1 libsidplay1 libsoundtouch1c2 libwildmidi0 libx264-57 libxvidcore4 msttcorefonts unrar sun-java6-jre sun-java6-plugin
  11. MSI VR320 or 320X is using ATI graphics card, so you need to install the ATI driver. Since EnvyNG has been install in previous step, now you just need to run EnvyNG
    Applications > System Tools > EnvyNG
    Once EnvyNG is loaded, just simply click Apply and wait for the installation to finish. After that reboot your machine
  12. Apply THIS, THIS, THIS, THIS and THIS tweak
  13. Done!

Q: I think my fresh installation is fine on my spec. Why it is different on your spec?
A: Ubuntu 8.04 is a mistake!

xanda Ads, IT Related , , , , , ,