<?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 Crusade &#187; Storage</title>
	<atom:link href="http://www.jarodwang.cn/tag/storage/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jarodwang.cn</link>
	<description>For the future we believe in.</description>
	<lastBuildDate>Thu, 26 Nov 2009 12:29:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OCFS2 Installation</title>
		<link>http://www.jarodwang.cn/2008/09/07/ocfs2-installation/</link>
		<comments>http://www.jarodwang.cn/2008/09/07/ocfs2-installation/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 14:16:39 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAC]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[OCFS2]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=83</guid>
		<description><![CDATA[OCFS2 (Oracle Cluster File System 2)是由Oracle开发的通用集群文件系统，是一个以GPLv2许可发布的开放源代码项目。由于OCFS2是Cluster-aware的，所以很自然的可以作为RAC的存储的选择之一（其他的选择还有裸设备和ASM）。但是必须指出的是，Oracle home和datafile（还有redo log，archive log，control file，以及Clusterware的OCR和Voting Disks）不能放在同一个OCFS2 volume上。
最近尝试了一下将Oracle Clusterware 11gR1的OCR和VD放在OCFS2上，这里记录一下OCFS2的安装过程。
首先是确定所使用的Linux的发行版本（distribution），内核版本（version）和风格（flavor），处理器架构：
# cat /etc/redhat-release
Enterprise Linux Enterprise Linux AS release 4 (October Update 5)
# uname -r
2.6.9-67.0.4.0.2.ELsmp
# uname -p
i686
可以看到这里我使用的是Oracle Enterprise Linux 4u5（可以认为是等同于Red Hat Enterprise Linux 4u5），内核版本是2.6.9-67.0.4.0.2，内核风格是smp，处理器架构是i686（也就是x86）。
接下来按照上面的信息去下载相应的OCFS2和OCFS2 Tools（包括ocfs2-tools和ocfs2console）的RPM包。
# wget -c http://oss.oracle.com/projects/ocfs2/dist/files/RedHat/RHEL4/i386/1.2.9-1/2.6.9-67.0.4.EL/ocfs2-2.6.9-67.0.4.ELsmp-1.2.9-1.el4.i686.rpm
# wget -c http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/i386/1.2.7-1/ocfs2-tools-1.2.7-1.el4.i386.rpm
# wget -c http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/i386/1.2.7-1/ocfs2console-1.2.7-1.el4.i386.rpm
删除掉现有的老版本的OCFS2相关RPM包：
# rpm -qa &#124; grep ocfs &#124; xargs rpm -e
依次安装刚刚下载的3个RPM：
# [...]]]></description>
			<content:encoded><![CDATA[<p><a title="OCFS2" href="http://oss.oracle.com/projects/ocfs2/" target="_blank">OCFS2</a> (Oracle Cluster File System 2)是由Oracle开发的通用集群文件系统，是一个以GPLv2许可发布的开放源代码项目。由于OCFS2是Cluster-aware的，所以很自然的可以作为RAC的存储的选择之一（其他的选择还有裸设备和ASM）。但是必须指出的是，Oracle home和datafile（还有redo log，archive log，control file，以及Clusterware的OCR和Voting Disks）<strong>不能</strong>放在同一个OCFS2 volume上。</p>
<p>最近尝试了一下将<a title="Oracle Clusterware" href="http://www.oracle.com/technology/products/database/clusterware/index.html" target="_blank">Oracle Clusterware</a> 11gR1的OCR和VD放在OCFS2上，这里记录一下OCFS2的安装过程。</p>
<p>首先是确定所使用的Linux的发行版本（distribution），内核版本（version）和风格（flavor），处理器架构：</p>
<p># cat /etc/redhat-release<br />
Enterprise Linux Enterprise Linux AS release 4 (October Update 5)</p>
<p># uname -r<br />
2.6.9-67.0.4.0.2.ELsmp</p>
<p># uname -p<br />
i686</p>
<p>可以看到这里我使用的是<a title="Oracle Enterprise Linux" href="http://www.oracle.com/technologies/linux/index.html" target="_blank">Oracle Enterprise Linux</a> 4u5（可以认为是等同于Red Hat Enterprise Linux 4u5），内核版本是2.6.9-67.0.4.0.2，内核风格是smp，处理器架构是i686（也就是x86）。</p>
<p>接下来按照上面的信息去下载相应的OCFS2和<a title="OCFS2 Tools" href="http://oss.oracle.com/projects/ocfs2-tools/" target="_blank">OCFS2 Tools</a>（包括ocfs2-tools和ocfs2console）的RPM包。</p>
<pre># wget -c http://oss.oracle.com/projects/ocfs2/dist/files/RedHat/RHEL4/i386/1.2.9-1/2.6.9-67.0.4.EL/ocfs2-2.6.9-67.0.4.ELsmp-1.2.9-1.el4.i686.rpm
# wget -c http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/i386/1.2.7-1/ocfs2-tools-1.2.7-1.el4.i386.rpm
# wget -c http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/i386/1.2.7-1/ocfs2console-1.2.7-1.el4.i386.rpm</pre>
<p>删除掉现有的老版本的OCFS2相关RPM包：</p>
<pre># rpm -qa | grep ocfs | xargs rpm -e</pre>
<p>依次安装刚刚下载的3个RPM：</p>
<pre># rpm -ivh ocfs2-tools-1.2.7-1.el4.i386.rpm
# rpm -ivh ocfs2console-1.2.7-1.el4.i386.rpm
# rpm -ivh --nodeps ocfs2-2.6.9-67.0.4.ELsmp-1.2.9-1.el4.i686.rpm</pre>
<p>注意安装OCFS2 RPM时需要加上“&#8211;nodeps”选项。</p>
<p>这里还有一个问题，上面安装的OCFS2 RPM的内核版本（2.6.9-67.0.4）与我所使用的Linux的内核版本（2.6.9-67.0.4.0.2）并不完全一致，所以还需要进行下面的额外工作：</p>
<pre># cp -r /lib/modules/2.6.9-67.0.4.ELsmp/kernel/fs/* /lib/modules/2.6.9-67.0.4.0.2.ELsmp/kernel/fs</pre>
<p>至此，OCFS2的安装已经完成。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/09/07/ocfs2-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux raw device</title>
		<link>http://www.jarodwang.cn/2008/08/10/linux-raw-device/</link>
		<comments>http://www.jarodwang.cn/2008/08/10/linux-raw-device/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 10:21:45 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[raw device]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=81</guid>
		<description><![CDATA[使用
raw -qa
命令来查询当前已经存在的绑定。
Use  the /etc/sysconfig/rawdevices file to define the set of raw device mappings automatically created during the system startup sequence.
在/etc/sysconfig/rawdevices中，注意裸设备对应的块设备如果是SATA或者iSCSI，则应该使用/dev/disk/by-id中的链接来进行指定。
如何确定裸设备对应的块设备？以裸设备/dev/raw/raw57为例：
# ls -l /dev/raw/raw57
crw-rw&#8212;-  1 root disk 162, 57 Jul 31 02:02 /dev/raw/raw57
# raw -qa &#124; grep raw57
/dev/raw/raw57: bound to major 65, minor 233
# ls -l /dev &#124; grep 65 &#124; grep 233
brwxrwxrwx  1 root    disk    [...]]]></description>
			<content:encoded><![CDATA[<p>使用</p>
<p>raw -qa</p>
<p>命令来查询当前已经存在的绑定。</p>
<p>Use  the <strong>/etc/sysconfig/rawdevices</strong> file to define the set of raw device mappings automatically created during the system startup sequence.</p>
<p>在/etc/sysconfig/rawdevices中，注意裸设备对应的块设备如果是SATA或者iSCSI，则应该使用/dev/disk/by-id中的链接来进行指定。</p>
<p>如何确定裸设备对应的块设备？以裸设备/dev/raw/raw57为例：</p>
<p># ls -l /dev/raw/raw57<br />
crw-rw&#8212;-  1 root disk 162, 57 Jul 31 02:02 /dev/raw/raw57</p>
<p># raw -qa | grep raw57<br />
/dev/raw/raw57: bound to major 65, minor 233</p>
<p># ls -l /dev | grep 65 | grep 233<br />
brwxrwxrwx  1 root    disk    65, 233 Jul 31 02:01 sdae9</p>
<p>从而知道裸设备/dev/raw/raw57是绑定到了/dev/sdae9这个块设备。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/08/10/linux-raw-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VERITAS Volume Manager Fundamentals</title>
		<link>http://www.jarodwang.cn/2008/07/21/veritas-volume-manager-fundamentals/</link>
		<comments>http://www.jarodwang.cn/2008/07/21/veritas-volume-manager-fundamentals/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 14:53:32 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=75</guid>
		<description><![CDATA[When you place a physical disk under Volume Manager control, a Volume Manager disk (or VM disk) is assigned to the physical disk.
A VM disk typically includes a public region (allocated storage) and a private region where Volume Manager internal configuration information is stored.
A disk group is a collection of VM disks that share a [...]]]></description>
			<content:encoded><![CDATA[<p>When you place a physical disk under Volume Manager control, a Volume Manager disk (or VM disk) is assigned to the physical disk.</p>
<p>A VM disk typically includes a public region (allocated storage) and a private region where Volume Manager internal configuration information is stored.</p>
<p>A disk group is a collection of VM disks that share a common configuration.</p>
<p>A disk group configuration is a set of records with detailed information about related Volume Manager objects, their attributes, and their connections.</p>
<p>Volumes are created within a disk group. A given volume must be configured from disks in the same disk group.</p>
<p>A subdisk is a set of contiguous disk blocks. A block is a unit of space on the disk. Volume Manager allocates disk space using subdisks.</p>
<p>The Volume Manager uses subdisks to build virtual objects called plexes. A plex consists of one or more subdisks located on one or more physical disks.</p>
<p>A volume is a virtual disk device that appears to applications, databases, and file systems as a physical disk, but does not have the physical limitations of a physical disk device.</p>
<p>A volume consists of one or more plexes, each holding a copy of the selected data in the volume. Due to its virtual nature, a volume is not restricted to a particular disk or a specific area of disk.</p>
<p>A volume can consist of up to 32 plexes, each of which consists of one or more subdisks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/07/21/veritas-volume-manager-fundamentals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysterious storage</title>
		<link>http://www.jarodwang.cn/2008/06/28/mysterious-storage/</link>
		<comments>http://www.jarodwang.cn/2008/06/28/mysterious-storage/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 05:40:17 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Storage]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[RAC]]></category>
		<category><![CDATA[SFRAC]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=70</guid>
		<description><![CDATA[Veritas Storage Foundation for Oracle RAC
OCFS2
Open-iSCSI
A discussion on OCFS, OCFS2, ASM, RAW
]]></description>
			<content:encoded><![CDATA[<p><a title="Veritas Storage Foundation for Oracle RAC" href="http://www.symantec.com/business/products/whitepapers.jsp?pcid=pcat_storage&amp;pvid=145_1" target="_blank">Veritas Storage Foundation for Oracle RAC</a></p>
<p><a title="OCFS2" href="http://oss.oracle.com/projects/ocfs2/" target="_blank">OCFS2</a></p>
<p><a title="Open-iSCSI" href="http://www.open-iscsi.org/" target="_blank">Open-iSCSI</a></p>
<p><a title="A discussion on OCFS, OCFS2, ASM, RAW" href="http://linux.chinaunix.net/bbs/viewthread.php?tid=821240" target="_blank">A discussion on OCFS, OCFS2, ASM, RAW</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/06/28/mysterious-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
