<?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>My Useful Stuff</title>
	<atom:link href="http://www.cloudinfotec.co.uk/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.cloudinfotec.co.uk/blog</link>
	<description>IT Odds n Sods....</description>
	<lastBuildDate>Tue, 17 Nov 2009 20:49:09 +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>iSCSI on CentOS/RHEL5, Fedora7, Debian/Ubuntu</title>
		<link>http://www.cloudinfotec.co.uk/blog/?p=15</link>
		<comments>http://www.cloudinfotec.co.uk/blog/?p=15#comments</comments>
		<pubDate>Tue, 17 Nov 2009 20:49:09 +0000</pubDate>
		<dc:creator>Dongers</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cloudinfotec.co.uk/blog/?p=15</guid>
		<description><![CDATA[Internet SCSI (iSCSI) is a network protocol s that allows you to use of the SCSI protocol over TCP/IP networks. It is good alternative to Fibre Channel-based SANs. You can easily manage, mount and format iSCSI Volume under Linux. It allows access to SAN storage over Ethernet.
Open-iSCSI Project
 
Open-iSCSI project is a high-performance, transport independent, multi-platform [...]]]></description>
			<content:encoded><![CDATA[<p>Internet SCSI (iSCSI) is a network protocol s that allows you to use of the SCSI protocol over TCP/IP networks. It is good alternative to Fibre Channel-based SANs. You can easily manage, mount and format iSCSI Volume under Linux. It allows access to SAN storage over Ethernet.</p>
<p>Open-iSCSI Project</p>
<p> </p>
<p>Open-iSCSI project is a high-performance, transport independent, multi-platform implementation of iSCSI. Open-iSCSI is partitioned into user and kernel parts.</p>
<p> </p>
<p>Instructions are tested on:</p>
<p>[a] RHEL 5</p>
<p>[b] CentOS 5</p>
<p>[c] Fedora 7</p>
<p>[d] Debian / Ubuntu Linux</p>
<p>Install Required Package</p>
<p> </p>
<p>iscsi-initiator-utils RPM package &#8211; The iscsi package provides the server daemon for the iSCSI protocol, as well as the utility programs used to manage it. iSCSI is a protocol for distributed disk access using SCSI commands sent over Internet Protocol networks. This package is available under Redhat Enterprise Linux / CentOS / Fedora Linux and can be installed using yum command:</p>
<p># yum install iscsi-initiator-utils</p>
<p>A note about Debian / Ubuntu Linux</p>
<p> </p>
<p>If you are using Debian / Ubuntu Linux install open-iscsi package, enter:</p>
<p>$ sudo apt-get install open-iscsi</p>
<p>iSCSI Configuration</p>
<p> </p>
<p>There are three steps needed to set up a system to use iSCSI storage:</p>
<p>iSCSI startup using the init script or manual startup. You need to edit and configure iSCSI via /etc/iscsi/iscsid.conf file</p>
<p>Discover targets.</p>
<p>Automate target logins for future system reboots.</p>
<p>You also need to obtain iSCSI username, password and storage server IP address (target host)</p>
<p>Step # 1: Configure iSCSI</p>
<p> </p>
<p>Open /etc/iscsi/iscsid.conf with vi text editor:</p>
<p># vi /etc/iscsi/iscsid.conf</p>
<p> </p>
<p>Setup username and password:</p>
<p>node.session.auth.username = My_ISCSI_USR_NAME</p>
<p>node.session.auth.password = MyPassword</p>
<p>discovery.sendtargets.auth.username = My_ISCSI_USR_NAME</p>
<p>discovery.sendtargets.auth.password = MyPassword</p>
<p> </p>
<p>Where,</p>
<p>node.session.* is used to set a CHAP username and password for initiator authentication by the target(s).</p>
<p>discovery.sendtargets.* is used to set a discovery session CHAP username and password for the initiator authentication by the target(s)</p>
<p> </p>
<p>You may also need to tweak and set other options. Refer to man page for more information. Now start the iscsi service:</p>
<p># /etc/init.d/iscsi start</p>
<p>Step # 2: Discover targets</p>
<p> </p>
<p>Now use iscsiadm command, which is a command-line tool allowing discovery and login to iSCSI targets, as well as access and management of the open-iscsi database. If your storage server IP address is 192.168.1.5, enter:</p>
<p># iscsiadm -m discovery -t sendtargets -p 192.168.1.5</p>
<p># /etc/init.d/iscsi restart</p>
<p> </p>
<p>Now there should be a block device under /dev directory. To obtain new device name, type:</p>
<p># fdisk -l</p>
<p> </p>
<p>or</p>
<p># tail -f /var/log/messages</p>
<p> </p>
<p>Output:</p>
<p>Oct 10 12:42:20 ora9is2 kernel:   Vendor: EQLOGIC   Model: 100E-00           Rev: 3.2</p>
<p>Oct 10 12:42:20 ora9is2 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 05</p>
<p>Oct 10 12:42:20 ora9is2 kernel: SCSI device sdd: 41963520 512-byte hdwr sectors (21485 MB)</p>
<p>Oct 10 12:42:20 ora9is2 kernel: sdd: Write Protect is off</p>
<p>Oct 10 12:42:20 ora9is2 kernel: SCSI device sdd: drive cache: write through</p>
<p>Oct 10 12:42:20 ora9is2 kernel: SCSI device sdd: 41963520 512-byte hdwr sectors (21485 MB)</p>
<p>Oct 10 12:42:20 ora9is2 kernel: sdd: Write Protect is off</p>
<p>Oct 10 12:42:20 ora9is2 kernel: SCSI device sdd: drive cache: write through</p>
<p>Oct 10 12:42:20 ora9is2 kernel:  sdd: unknown partition table</p>
<p>Oct 10 12:42:20 ora9is2 kernel: sd 3:0:0:0: Attached scsi disk sdd</p>
<p>Oct 10 12:42:20 ora9is2 kernel: sd 3:0:0:0: Attached scsi generic sg3 type 0</p>
<p>Oct 10 12:42:20 ora9is2 kernel: rtc: lost some interrupts at 2048Hz.</p>
<p>Oct 10 12:42:20 ora9is2 iscsid: connection0:0 is operational now</p>
<p> </p>
<p>/dev/sdd is my new block device.</p>
<p>Step # 3: Format and Mount iSCSI Volume</p>
<p> </p>
<p>You can now partition and create a filesystem on the target using usual fdisk and mkfs.ext3 commands:</p>
<p># fdisk /dev/sdd</p>
<p># mke2fs -j -m 0 -O dir_index /dev/sdd1</p>
<p> </p>
<p>OR</p>
<p># mkfs.ext3 /dev/sdd1</p>
<p> </p>
<p>Tip: If your volume is large size like 1TB, run mkfs.ext3 in background using nohup:</p>
<p># nohup mkfs.ext3 /dev/sdd1 &amp;</p>
<p> </p>
<p>Mount new partition:</p>
<p># mkdir /mnt/iscsi</p>
<p># mount /dev/sdd1 /mnt/iscsi</p>
<p>Step #4: Mount iSCSI drive automatically at boot time</p>
<p> </p>
<p>First make sure iscsi service turned on at boot time:</p>
<p># chkconfig iscsi on</p>
<p> </p>
<p>Open /etc/fstab file and append config directive:</p>
<p>/dev/sdd1 /mnt/iscsi ext3 _netdev 0 0</p>
<p> </p>
<p>Save and close the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudinfotec.co.uk/blog/?feed=rss2&amp;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare Server on CentOS 5</title>
		<link>http://www.cloudinfotec.co.uk/blog/?p=9</link>
		<comments>http://www.cloudinfotec.co.uk/blog/?p=9#comments</comments>
		<pubDate>Tue, 17 Nov 2009 20:37:20 +0000</pubDate>
		<dc:creator>Dongers</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Virtualisation]]></category>

		<guid isPermaLink="false">http://www.cloudinfotec.co.uk/blog/?p=9</guid>
		<description><![CDATA[I make no warranties tha this works as dont think I ever got round to testing it!!!!
See previous post for minimal CentOS install
http://www.cloudinfotec.co.uk/blog/?p=7
Yum update
yum -y install libX11-devel libXtst
yum -y install gcc
yum -y install kernel-headers kernel-devel
 
http://www.mokonamodoki.com/vmware-server-on-centos-5
http://fosswire.com/2007/04/21/installing-vmware-server-on-centos-5/
http://download3.vmware.com/software/vi/VMware-esx-public-source-3.5.0-61973.tar.gz
]]></description>
			<content:encoded><![CDATA[<p>I make no warranties tha this works as dont think I ever got round to testing it!!!!</p>
<p>See previous post for minimal CentOS install</p>
<p><span id="sample-permalink"><a href="http://www.cloudinfotec.co.uk/blog/?p=7">http://www.cloudinfotec.co.uk/blog/?p=7</a></span></p>
<p><strong>Yum update</strong></p>
<p><strong>yum -y install libX11-devel libXtst</strong></p>
<p><strong>yum -y install gcc</strong></p>
<p><strong>yum -y install kernel-headers kernel-devel</strong></p>
<p><strong> </strong></p>
<p><a href="http://www.mokonamodoki.com/vmware-server-on-centos-5">http://www.mokonamodoki.com/vmware-server-on-centos-5</a></p>
<p><a href="http://fosswire.com/2007/04/21/installing-vmware-server-on-centos-5/">http://fosswire.com/2007/04/21/installing-vmware-server-on-centos-5/</a></p>
<p><a href="http://download3.vmware.com/software/vi/VMware-esx-public-source-3.5.0-61973.tar.gz">http://download3.vmware.com/software/vi/VMware-esx-public-source-3.5.0-61973.tar.gz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudinfotec.co.uk/blog/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS minimal install</title>
		<link>http://www.cloudinfotec.co.uk/blog/?p=7</link>
		<comments>http://www.cloudinfotec.co.uk/blog/?p=7#comments</comments>
		<pubDate>Tue, 17 Nov 2009 20:34:13 +0000</pubDate>
		<dc:creator>Dongers</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cloudinfotec.co.uk/blog/?p=7</guid>
		<description><![CDATA[Pulled together from various sources, credit given where I have the original URLs&#8230;.If you recognise your own words and I haven&#8217;t credited you, appologies. Mail me and i will correct it!
http://www.pervasivecode.com/blog/2008/03/29/centos-51-minimal-vps-install-guide/
http://anchorite.org/blog/2006/11/13/minimal-services-on-centos-44-mini-howto/
Useful link for Red Hat Services:
http://www.redhatmagazine.com/2007/03/09/understanding-your-red-hat-enterprise-linux-daemons/
Assumptions:

this server uses an x86_64 CPU architecture, not i386 (or for an ultra-small disk footprint, consider i386 since it doesn’t need duplicate [...]]]></description>
			<content:encoded><![CDATA[<p>Pulled together from various sources, credit given where I have the original URLs&#8230;.If you recognise your own words and I haven&#8217;t credited you, appologies. Mail me and i will correct it!</p>
<p><a href="http://www.pervasivecode.com/blog/2008/03/29/centos-51-minimal-vps-install-guide/">http://www.pervasivecode.com/blog/2008/03/29/centos-51-minimal-vps-install-guide/</a></p>
<p><a href="http://anchorite.org/blog/2006/11/13/minimal-services-on-centos-44-mini-howto/">http://anchorite.org/blog/2006/11/13/minimal-services-on-centos-44-mini-howto/</a></p>
<p>Useful link for Red Hat Services:</p>
<p><a href="http://www.redhatmagazine.com/2007/03/09/understanding-your-red-hat-enterprise-linux-daemons/">http://www.redhatmagazine.com/2007/03/09/understanding-your-red-hat-enterprise-linux-daemons/</a></p>
<p><strong>Assumptions:</strong></p>
<ul>
<li>this server uses an x86_64 CPU architecture, not i386 (or for an ultra-small disk footprint, consider i386 since it doesn’t need duplicate 64 and 32 bit glibc libraries)</li>
<li>this is a server VPS (running in VMware or Xen) so it isn’t interested in low-level hardware management
<ul>
<li>no need for ACPI (sleep/hibernate)</li>
<li>no need for laptop CPU power reduction</li>
<li>no need for SMART disk monitoring (since the VPS disk is virtualized)</li>
<li>no need for MD (software RAID) since it’s a VPS; any RAID is happening at a lower level (host OS / dom0)</li>
<li>no need to use LVM2 to mirror a logical volume (again because RAID is handled outside of the VPS)</li>
<li>no need for bluetooth, hot-plug hardware, or PCMCIA</li>
</ul>
</li>
<li>this server may have more than one CPU (or may be given additional VCPUs later due to load) so multi-CPU support is desired</li>
<li>this is a headless server so no GUI features are desirable</li>
<li>there are no legacy services that need RPC</li>
<li>NFS will not be used</li>
<li>SELinux will be left in the default configuration (”Enforcing” the “Targeted” policy).</li>
</ul>
<p><strong>Basic Installation:</strong></p>
<p>Start with the Centos 5.1 x86_64 install DVD.<br />
Boot the DVD.<br />
Select English language and U.S. English keyboard layout.<br />
Choose to Install the OS (not upgrade).<br />
Choose “Remove linux partitions on selected drives and create default layout.”<br />
Select DHCP network configuration, or the static IP address for this server.<br />
(I choose DHCP, and tell the DHCP server to use a specific IP for this host based on its Ethernet MAC address.)<br />
Choose the time zone the server is in (for me this is America/Los Angeles), and enable the “System clock uses UTC” option.<br />
Pick a complex root password (https://grc.com/passwords can generate one for you) and enter it.<br />
When given a chance to install additional tasks, uncheck everything (no additional tasks) and choose the “Customize now” radio button.<br />
In the next screen, go into every group and uncheck everything. (*Nothing* should be checked when you’re done. Be careful not to miss anything!)<br />
Confirm that you want the installer to begin the installation process. (For me this process took about 6 minutes.)<br />
Confirm that you want to reboot, and make sure that the server will boot from the hard disk instead of the installation media.<br />
When the server boots, log in as root. (You can disconnect from the console and use SSH instead at this point if it’s more convenient.)</p>
<p><strong>More Minimizing:</strong></p>
<p>Run this command to make sure you didn’t install anything other than the bare minimum:<br />
<strong>yum -C grouplist</strong><br />
You shouldn’t see a section called “Installed Groups:”. If you do see it, it means you missed something you were supposed to disable in the previous section.<br />
In that case, run this to remove it and all the packages in it:<br />
<strong>yum -C groupremove SomeGroupName</strong></p>
<p>You can also run this command to count how many packages have been installed already:<br />
<strong>yum -C list installed | wc -l</strong><br />
The resulting count of packages installed should be 154.</p>
<p>Next, run “<strong>chkconfig &#8211;list | grep 3:on</strong>” to see what services are enabled.<br />
Several of them can safely be disabled (provided that the assumptions at the top of this guide are true), so run this:<br />
<strong>for i in acpid atd autofs cpuspeed cups gpm isdn mdmonitor messagebus netfs nfslock openibd pcmcia portmap rawdevice rpcgssd rpcidmapd haldaemon lvm2-monitor ; do chkconfig $i off; done</strong></p>
<p>(may not have all of these service running, as some of this is ripped from a CentOS 4 minimal install)<br />
These are useful and should stay enabled:<br />
ip6tables (if not running ipv6 this can go too)<br />
iptables<br />
kudzu<br />
mcstrans<br />
network<br />
restorecond<br />
sshd<br />
syslog<br />
If for some reason there are others that are still enabled that aren’t on that list, you’ll have to decide for yourself.</p>
<p>Run this command to remove a 9.7MB standalone documentation package that you almost certainly won’t be reading from the server:<br />
<strong>yum -C remove Deployment_Guide-en-US</strong></p>
<p>If you wish, run this command to update your installed packages to the latest stable version.<br />
<strong>yum update</strong><br />
As of 3/27/2008 this installed a new kernel, updated 19 other packages, and required a 54MB download.<br />
Accept the CentOS package-signing GPG key when asked.<br />
If a kernel update is installed, it would be a good idea to reboot soon to make sure it works.<br />
You can also remove your old kernel (use “<strong>rpm -qa | grep kern</strong>” to find old ones) to save ~75MB.<br />
<strong>yum remove kernel-2.6.xx-xx.el5</strong> NOTE! ONLY do this if you updated your kernel and have 2 installed now.</p>
<p><strong>Useful Things You May Want To Install:</strong></p>
<p>These packages are very useful for administering servers, deploying software and data to them, and performing backups:<br />
<strong>yum install bzip2 lsof man man-pages mlocate quota rsync sysstat vixie-cron wget which</strong></p>
<p>If your server has more than 1 CPU you may wish to install irqbalance, to distribute interrupt servicing duty across CPUs:<br />
<strong>yum install irqbalance</strong></p>
<p>This package makes the system boot slightly faster using a very simple, safe technique:<br />
<strong>yum install readahead</strong></p>
<p>If you aren’t familiar with the vim text editor, you can install nano, which is less powerful but very easy to use:<br />
<strong>yum install nano</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudinfotec.co.uk/blog/?feed=rss2&amp;p=7</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hopefully&#8230;something useful&#8230;.</title>
		<link>http://www.cloudinfotec.co.uk/blog/?p=4</link>
		<comments>http://www.cloudinfotec.co.uk/blog/?p=4#comments</comments>
		<pubDate>Tue, 17 Nov 2009 14:15:44 +0000</pubDate>
		<dc:creator>Dongers</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.cloudinfotec.co.uk/blog/?p=4</guid>
		<description><![CDATA[New to all this blogging stuff, but just looking to have somewhere online that can to store handy tips, links and stuff that Ican use on day to day basis, either at work or at home&#8230;.I make no warranties as to whether they will work for you, if they are complete postings (probably not as they will [...]]]></description>
			<content:encoded><![CDATA[<p>New to all this blogging stuff, but just looking to have somewhere online that can to store handy tips, links and stuff that Ican use on day to day basis, either at work or at home&#8230;.I make no warranties as to whether they will work for you, if they are complete postings (probably not as they will mostly be snipettes of info for my own reference)</p>
<p><strong>USE AT YOUR OWN RISK</strong></p>
<p>Cheers</p>
<p>Dongers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudinfotec.co.uk/blog/?feed=rss2&amp;p=4</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
