<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Colocation to Virtualization &#187; Filesystems</title>
	<atom:link href="http://blog.colovirt.com/category/filesystems/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.colovirt.com</link>
	<description>and linux between</description>
	<lastBuildDate>Fri, 30 Jul 2010 13:00:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.colovirt.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/afd0d00d02b5abc67acf29066e3d1e3b?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Colocation to Virtualization &#187; Filesystems</title>
		<link>http://blog.colovirt.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.colovirt.com/osd.xml" title="Colocation to Virtualization" />
	<atom:link rel='hub' href='http://blog.colovirt.com/?pushpress=hub'/>
		<item>
		<title>Storage, SAN, Linux: EMC PowerPath Configuration On Cisco UCS</title>
		<link>http://blog.colovirt.com/2010/05/04/storage-san-linux-emc-powerpath-configuration-on-cisco-ucs/</link>
		<comments>http://blog.colovirt.com/2010/05/04/storage-san-linux-emc-powerpath-configuration-on-cisco-ucs/#comments</comments>
		<pubDate>Tue, 04 May 2010 14:39:42 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Power Path]]></category>
		<category><![CDATA[powerpath]]></category>
		<category><![CDATA[EMCpower.LINUX]]></category>
		<category><![CDATA[EMCpower]]></category>
		<category><![CDATA[emcpreg]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[powermt]]></category>
		<category><![CDATA[fnic]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[paths]]></category>
		<category><![CDATA[boot from san]]></category>
		<category><![CDATA[emcpowera1]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=707</guid>
		<description><![CDATA[Storage, SAN, Linux: EMC PowerPath Configuration On Cisco UCS<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=707&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>The following is a walk through of installing EMC PowerPath software on RedHat based Linux hosts (CentOS/Fedora).  This is required to fully utilize multiple paths to EMC SANs.  The test server used here is a Cisco UCS B250-M1 blade running FCOE over 10gb Ethernet.  The configuration steps work for ISCSI, Fiber Channel, and FCOE connectivity to Clariion systems.</p>
<p><strong>First, copy the RPM installation package over to the server.  Below shows the package to be installed.</strong></p>
<pre>[root@test_server01 user01]# ll
total 7036
-rw-r--r-- 1 user01 user01 7191661 Apr 27 09:24 EMCpower.LINUX-5.3.1.00.00-111.rhel5.x86_64.rpm</pre>
<p><strong>Install the package via &#8220;rpm -i&#8221;.<span id="more-707"></span></strong></p>
<pre>[root@test_server01 user01]# rpm -i EMCpower.LINUX-5.3.1.00.00-111.rhel5.x86_64.rpm
All trademarks used herein are the property of their respective owners.
NOTE:License registration is not required to manage the CLARiiON AX series array.</pre>
<p><strong>Before powerpath can be used, a license key must be installed.</strong></p>
<pre>[root@test_server01 user01]# emcpreg -list
unable to open license key file: No such file or directory</pre>
<p><strong>Overview of the &#8220;emcpreg -add&#8221; syntax.</strong></p>
<pre>[root@test_server01 user01]# emcpreg -add
Missing option parameter.
Usage:
    emcpreg [opts] -add key [key ...]
    emcpreg [opts] -remove key [key ...]
    emcpreg [opts] -check key [key ...]
    emcpreg [opts] -list
    emcpreg [opts] -edit
    emcpreg [opts] -install
Options:
    -f file     license file</pre>
<p><strong>Now we add the license key to powerpath.  The following key is fake!  You must obtain yours from EMC.</strong></p>
<pre>[root@test_server01 user01]# emcpreg -add AGE4-DFD3-89842-DSAF-JIJ0-WKG50
1 key(s) successfully added.

<strong>Make sure the license was installed correctly.</strong>
[root@test_server01 user01]# emcpreg -list

Key AGE4-DFD3-89842-DSAF-JIJ0-WKG50
  Product: <strong>PowerPath</strong>
  Capabilities: <strong>All</strong>
[root@test_server01 user01]#</pre>
<p><strong>Next, start the Power Path service.</strong></p>
<pre>[root@test_server01 user01]# /etc/init.d/PowerPath start
Starting PowerPath:  done</pre>
<p><strong>Display the current paths to storage via &#8220;powermt&#8221;.  Since this server is booting from SAN and just being installed, there is currently only one path to storage.</strong></p>
<pre>[root@test_server01 ~]# powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=AXE00515480482 [test_server01_ucs]
Logical device ID=15618646804648SDSDFW84FW4894949 [test_server01_ucs_boot]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=Unknown, current=SP A    Array failover mode: 1
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fnic                      sda       SP A0     active  alive      0      0</pre>
<p>Now that powerpath is installed, we need to edit fstab to boot off of the Power Path device.</p>
<p>Origional fstab using labels for &#8220;/boot&#8221;.</p>
<pre>/dev/lvm/root           /                       ext3    defaults        1 1
/dev/lvm/usr            /usr                    ext3    defaults        1 2
/dev/lvm/app            /app                    ext3    defaults        1 2
/dev/lvm/home           /home                   ext3    defaults        1 2
/dev/lvm/var            /var                    ext3    defaults        1 2
/dev/lvm/vartmp         /var/tmp                ext3    defaults        1 2
/dev/lvm/UsrLocal       /usr/local              ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0</pre>
<p><strong>Below is the edited fstab with &#8220;LABEL=/boot&#8221; commented out and /boot changed to use &#8220;/dev/emcpowera1&#8243;</strong></p>
<pre>[root@test_server01 ~]# vi /etc/fstab
/dev/lvm/root           /                       ext3    defaults        1 1
/dev/lvm/usr            /usr                    ext3    defaults        1 2
/dev/lvm/app            /app                    ext3    defaults        1 2
/dev/lvm/home           /home                   ext3    defaults        1 2
/dev/lvm/var            /var                    ext3    defaults        1 2
/dev/lvm/vartmp         /var/tmp                ext3    defaults        1 2
/dev/lvm/UsrLocal       /usr/local              ext3    defaults        1 2
/dev/emcpowera1         /boot                   ext3    defaults        0 0
#LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0</pre>
<p><strong>Filesystem options were changed to &#8220;0 0&#8243; on emcpowera due to RedHat trying to do filesystem scans before the Power Path driver is started.</strong></p>
<p><strong>All paths now need to be zoned in the fiber switch, initiators registered in Navisphere, and paths added to the host in it&#8217;s storage group.  This will not be covered here.</strong></p>
<p><strong>After zoning both paths on one switch, &#8220;powermt&#8221; now shows a path to both Clariion SPA and SPB.  If not, try either stopping and restartaring &#8220;/etc/init.d/PowerPath&#8221; or restarting the server.</strong></p>
<pre>[root@test_server01 ~]# powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=AXE00515480482 [test_server01_ucs]
Logical device ID=15618646804648SDSDFW84FW4894949 [test_server01_ucs_boot]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP A       Array failover mode: 1
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fnic                      sdc       SP B1     active  alive      0      0
   0 fnic                      sdd       SP A0     active  alive      0      0</pre>
<p><strong>Configuration has now been completed on fiber switch 2 and both SPA and SPB in the Clariion.  Reboot the server.  Again, &#8220;powermt&#8221; is used to list the paths.</strong></p>
<pre>[root@test_server01 ~]# powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=AXE00515480482 [test_server01_ucs]
Logical device ID=15618646804648SDSDFW84FW4894949 [test_server01_ucs_boot]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 1
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   0 fnic                      sdc       SP B1     active  alive      0      0
   0 fnic                      sdd       SP A0     active  alive      0      0
   1 fnic                      sde       SP B0     active  alive      0      0
   1 fnic                      sdf       SP A1     active  alive      0      0</pre>
<p><strong>From above, you can see that we now have 4 paths definied.  Both fnic interfaces can see SPA and SPB.  Each fnic is attached to a seperage fiber switch, so we have redundant paths to both Clariion heads (SP&#8217;s).  Once rebooted, the server should load fine with no issues and see all paths via powermt.</strong></p>
<p><strong>Notes:  &#8220;/boot&#8221; is the storage label used in this example.  If your mount point is different, modify it&#8217;s entry instead.  &#8220;/dev/emcpowera1&#8243; is used since there is only one LUN mapped to this host.  Like anything else, if there are more than one, each would have it&#8217;s own device.<br />
</strong></p>
<br />Filed under: <a href='http://blog.colovirt.com/category/san-storage-area-network/emc-san-storage-area-network/'>EMC</a>, <a href='http://blog.colovirt.com/category/filesystems/'>Filesystems</a>, <a href='http://blog.colovirt.com/category/linux/'>Linux</a>, <a href='http://blog.colovirt.com/category/san-storage-area-network/'>SAN (Storage Area Network)</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/707/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/707/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=707&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/05/04/storage-san-linux-emc-powerpath-configuration-on-cisco-ucs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux, Filesystem: GNOME Virtual File System (GVFS) Remote Connectivity CLI</title>
		<link>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/</link>
		<comments>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 17:47:46 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[GNOME Virtual File System]]></category>
		<category><![CDATA[gvfs]]></category>
		<category><![CDATA[gvfs un-mount]]></category>
		<category><![CDATA[gvfs-mount]]></category>
		<category><![CDATA[gvfsd]]></category>
		<category><![CDATA[gvfsd-ftp]]></category>
		<category><![CDATA[gvfsd-sftp]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vfs]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=651</guid>
		<description><![CDATA[Linux, Filesystem: GNOME Virtual File System (GVFS) Remote Connectivity CLI<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=651&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>When not using NFS, Linux administrators generally move files from one server to the next via SFTP or FTP.  This can sometimes be a headache when needing to move large amounts of files between the systems.  This is where I like <strong>GVFS</strong> (GNOME Virtual File System).  This subsystem allows you to mount remote systems via the following protocols to a local directory tree:</p>
<li>SSH</li>
<li>FTP</li>
<li>CIFS (Windows shares)</li>
<li>WebDav (HTTP)</li>
<li>Secure WebDav (HTTPS)
<p><span id="more-651"></span><br />
Above are the common protocols supported, but there is support for more.  Using GVFS to mount the remote filesystem to yours allows you to create and move files to and from the remote system using typical &#8220;cp&#8221;, &#8220;rm&#8221;, and &#8220;mv&#8221; commands.  This makes things even easier if you are working through an X windows console.  Just bring up the remote directory structure through a file manager application and work from there.  Gnome also uses GVFS to manage USB based storage.  The following will go through manually connecting to a server using GVFS.<strong>Move into the &#8220;.gvfs&#8221; filesystem in the users home directory.  Unless Gnome has automatically mounted a device, this filesystem should be empty.</strong></p>
<pre>user01@LinuxDesk:~$ cd ~/.gvfs</pre>
<p><strong>In the below example, a remote servers filesystem will be mounted over an SSH/SFTP session.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ gvfs-mount ssh://user05@SftpServer02
Enter password
Password:</pre>
<p><strong>Verify that the location has been mounted.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ ls
sftp for user05 on SftpServer02</pre>
<p><strong>The SFTP was mounted and we can now traverse the remote servers filesystem as if it were our own.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ cd sftp\ for\ user05\ on\ SftpServer02/

user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02$ ls
app  boot  etc   hs_err_pid15240.log  lib         media  mnt  opt   relay  sbin     srv  tmp  var
bin  dev   home  hs_err_pid8660.log   lost+found  misc   net  proc  root   selinux  sys  usr</pre>
<p><strong>Since we logged into the SSH/SFTP system using user &#8220;user05&#8243;, we can write to any direcotry that remote user has access to.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02$ cd home/user05/</pre>
<p><strong>Below creates a new file &#8220;asdf&#8221; containing the text &#8220;asdfasdf&#8221;.  Here we are just testing write capability to the remote server</strong></p>
<pre>user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02/home/user05$ echo "asdfasdf" &gt; asdf
user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02/home/user05$ cat asdf
asdfasdf</pre>
<p><strong>&#8220;gvfs-mount&#8221; can also be used to list all currently mounted gvfs systems.  Below shows only the sftp session.</strong></p>
<pre>user01@LinuxDesk:~$ gvfs-mount -l
Mount(0): sftp on SftpServer02 -&gt; sftp://SftpServer02/
  Type: GDaemonMount</pre>
<p><strong>For reference, the following shows my 4gig USB drive that was automatically mounted when attached to the workstation through Gnome.</strong></p>
<pre>user01@LinuxDesk:~$ gvfs-mount -l
Drive(0): USB Drive
  Type: GProxyDrive (GProxyVolumeMonitorHal)
  Volume(0): 4.1 GB Media
    Type: GProxyVolume (GProxyVolumeMonitorHal)
    Mount(0): 4.1 GB Media -&gt; file:///media/disk
      Type: GProxyMount (GProxyVolumeMonitorHal)
Mount(0): sftp on SftpServer02 -&gt; sftp://SftpServer02/
  Type: GDaemonMount</pre>
<p><strong>GVFS mount points can be un-mounted using the &#8220;-u&#8221; argument.  Below will un-mount the remote ssh server.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ gvfs-mount -u ssh://user05@SftpServer02</pre>
<p><strong>Notes: GVFS contains one master daemon (gvfsd) which tracks current GVFS mounts.  Each mount is created as an individual daemon with it&#8217;s own process.  Knowing this, we can find the actual gvfsd process ID that the sftp connection is running under.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$  ps -ef | grep gvfsd-sftp
user01  8022     1  0 10:34 ?        00:00:00 /usr/lib/gvfs/gvfsd-sftp --spawner :1.8 /org/gtk/gvfs/exec_spaw/21</pre>
</li>
<br />Posted in Filesystems, Linux, Networking  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/651/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=651&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Storage:  Memory – Huge Pages Overview</title>
		<link>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/</link>
		<comments>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 14:39:16 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Huge Pages]]></category>
		<category><![CDATA[hugepage]]></category>
		<category><![CDATA[hugepages]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[TLB]]></category>
		<category><![CDATA[Translation Lookaside Buffers]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual memory]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=621</guid>
		<description><![CDATA[Linux / Storage:  Memory - Huge Pages Overview<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=621&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A page is really <strong>virtual memory</strong> which is managed by the<strong> Translation Lookaside Buffers(TLB)</strong> in the CPU.  The TLB controls the mapping of the virtual memory pages to physical memory addresses.  In doing so, it bypasses the kernel virtual memory manager.</p>
<p><strong>Per RedHat,</strong></p>
<blockquote><p><strong> The TLB is a limited hardware resource, so utilising a huge amount of physical memory with the default page size consumes the TLB and adds processing overhead &#8211; many pages of size 4096 Bytes equates to many TLB resources consumed.</strong></p></blockquote>
<p><span id="more-621"></span>This is where Huge Pages come in.  Pages are created at a larger size than the default 4096 bytes, and each page will consume only one TLB resource.  So you can see this is a huge benefit.  Using Huge Pages decrease the number of TLB resources required.</p>
<p><strong>Side Affect</strong><br />
This is great, depending on what you are trying to accomplish.  Once the physical memory is mapped to a Huge Page, it can no longer be used for &#8220;normal&#8221; memory allocation.  This is because the memory is no longer mapped by the kernel virtual memory manager.  The applications that you want to dedicate the Huge Pages to have to have support for them.</p>
<p><strong>Benefit</strong><br />
So here is the best part of Huge Pages.  It is dedicated memory to be used by only applications that request them.<strong> This dedicated memory is stored in physical RAM and will NEVER be swapped out! </strong>Thus, guaranteeing a level of performance.  When memory is swapped to disk, it&#8217;s a lot slower than RAM and decreases the performance of the process(s)/program(s) gets pushed there.</p>
<p>Now knowing that Huge Pages are stored in RAM, this also means that the allocated RAM is dedicated.  This is a little bit redundant to the above, but I want to make sure this point is clear.</p>
<p>Example: If a server has 8gigs of RAM and 5gigs are allocated to Huge Pages, that only leaves 3gigs for all other processes, programs, and underlining operating system to use.</p>
<p><strong>Below shows my Linux desktop that has the default page size of 4096 set</strong></p>
<pre>user@workstation:~$ cat /proc/meminfo | grep Huge
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB</pre>
<p><strong>So as you can see, I have no Huge Pages reserved or in use.  The next example is from a production Oracle database server</strong></p>
<pre>[root@OracleServer1 ~]# cat /proc/meminfo | grep Huge
HugePages_Total: 12200
HugePages_Free:     85
Hugepagesize:     2048 kB</pre>
<p><strong>So to calculate the space dedicated to Huge Pages from above, it is 12,200 x 2048 kB which gives us</strong></p>
<pre><strong>24 985 600 kilobytes = 23.828125 gigabytes</strong></pre>
<p>In the 2.6x Linux kenel, Huge Pages are enabled using the CONFIG_HUGETLB_PAGE feature when compiling the kernel.  Most &#8220;Enterprise&#8221; Linux OSs by default have this enabled.  The ones that I know of are RedHat, CentOS, and possibly Fedora from version 4+.</p>
<p><strong>Notes:  Again, applications that you want to dedicate Huge Pages to must have support for them.  Most memory intensive ones do, but check for this first.</strong></p>
<br />Posted in Filesystems, Linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=621&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>VMWare: vSphere / ESX 4 Server Partitioning</title>
		<link>http://blog.colovirt.com/2009/08/06/vmware-vsphere-esx-4-server-partitioning/</link>
		<comments>http://blog.colovirt.com/2009/08/06/vmware-vsphere-esx-4-server-partitioning/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 19:07:07 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[/var/core]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esx 4]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[partitioning]]></category>
		<category><![CDATA[vmkcore]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=596</guid>
		<description><![CDATA[VMWare: vSphere / ESX 4 Server Partitioning<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=596&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>This will review the partitioning scheme that I am currently using for VMware vSphere (ESX 4).  For information concerning partitioning for VMware ESX 3.x, please refer to the following link:</strong></p>
<p><a href="http://blog.colovirt.com/2008/10/31/vmware-esx-server-partitioning/">http://blog.colovirt.com/2008/10/31/vmware-esx-server-partitioning/</a></p>
<p><strong>The majority of the partitioning structure is the same what was used for 3.x.  The only real changes is the fact that the installation process auto-creates two of the partitions that were to be manually created on 3.x.  Those two partitions are:</strong></p>
<li>/boot	(260mb)</li>
<li>vmkcore	(100mb)</li>
<p><strong><span id="more-596"></span>As in the 3.x structure, again I still maintain that creating a seperate mount point for /var/core should be used.  For the reasons stated below:From the 3.x post</strong></p>
<blockquote><p>&#8220;I have had a few servers core dump and drop over 5 gigs of data to /var/core.  Before, per &#8220;best practices&#8221; a vendor recommended around 4 gigs for /var.  I upped that to 6 gigs originally, but after 2 servers had /var 100% utilized I and revising that.  /var is still 6 gigs but /var/core has been broken out into its own mount point.  15 gigs is a little high, but these servers had raid 1 &#8211; 73 gig hard drives.  At least now if the servers core dump it will affect only its mount point.  I highly recommend doing this!&#8221;</p></blockquote>
<p><strong>Below is how I am partitioning vSphere 4 servers</strong></p>
<table border="0">
<tbody>
<tr>
<td>Mount Point</td>
<td>Size(m)</td>
<td>Partition type</td>
</tr>
<tr>
<td>/</td>
<td>10240</td>
<td>Primary</td>
</tr>
<tr>
<td>swap</td>
<td>1600</td>
<td>Primary *max</td>
</tr>
<tr>
<td>/var</td>
<td>6142</td>
<td>Extended</td>
</tr>
<tr>
<td>/var/core</td>
<td>15360</td>
<td>Extended</td>
</tr>
<tr>
<td>/opt</td>
<td>2048</td>
<td>Extended</td>
</tr>
<tr>
<td>/home</td>
<td>2048</td>
<td>Extended</td>
</tr>
<tr>
<td>/tmp</td>
<td>1024</td>
<td>Extended</td>
</tr>
</tbody>
</table>
<p><strong>Notes: <a href="http://www.yellow-bricks.com/2009/05/27/partitioning-your-esx-host-part-ii/">Yellow-Bricks</a> (Duncan Epping), as well as </strong><strong><a href="http://vmetc.com/2009/07/22/best-practices-for-vsphere-esx-4-service-console-partitions/">VMETC</a> have good articles as well.</strong></p>
<p><strong> </strong></p>
<br />Posted in Filesystems, VMWare  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/596/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=596&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/08/06/vmware-vsphere-esx-4-server-partitioning/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>SAN/Networking/Linux: Using Multipath To Verify and Troubleshoot Connectivity To FC LUNs</title>
		<link>http://blog.colovirt.com/2009/05/11/sannetworkinglinux-using-multipath-to-verify-and-troubleshoot-connectivity-to-fc-luns/</link>
		<comments>http://blog.colovirt.com/2009/05/11/sannetworkinglinux-using-multipath-to-verify-and-troubleshoot-connectivity-to-fc-luns/#comments</comments>
		<pubDate>Mon, 11 May 2009 13:33:11 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[fiber]]></category>
		<category><![CDATA[fiber channel]]></category>
		<category><![CDATA[mds]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[sanos]]></category>
		<category><![CDATA[netapp]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[multipath]]></category>
		<category><![CDATA[multipathing]]></category>
		<category><![CDATA[multipathd]]></category>
		<category><![CDATA[cisco mds]]></category>
		<category><![CDATA[mds9120]]></category>
		<category><![CDATA[fc]]></category>
		<category><![CDATA[active paths]]></category>
		<category><![CDATA[remaining active paths]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=545</guid>
		<description><![CDATA[SAN/Networking/Linux: Using Multipath To Verify and Troubleshoot Connectivity To FC LUNs<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=545&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A few days ago there was in error on one of our Cisco MDS 9120 fiber switches.  The current environment at this datacenter consists of two Cisco MDS 9120 SAN switches with servers redundantly connected between the two.  These switches are used to connect the servers to our fiber channel (FC) storage systems.  In this case, the servers are generally mapped to an EMC, NetApp, and two RamSans.  Below outlines a basic example of what can be expected from multipathing and the Linux environment when there is loss of connectivity to one leg of the fiber network.</p>
<p><span id="more-545"></span><strong>Below is an excerpt of the log coming from a dual fiber connected server.  In this case, the max active paths would be 2.  If the server had quad fiber connectivity it could have a max of 4 paths in our environment.  As seen from the log, multipathd reported the loss of a path to each LUN an logged it &#8220;remaining active paths: 1&#8243;.  Once the errors were corrected in the failed switch, multipathd reported the restoration &#8220;remaining active paths: 2</strong>&#8220;.</p>
<pre>[root@testsrv01 ~]# cat /var/log/messages | grep multipathd
May  6 10:30:55 testsrv01 multipathd: TempLUN1: remaining active paths: 1
May  6 10:30:55 testsrv01 multipathd: 8:224: readsector0 checker reports path is up
May  6 10:30:55 testsrv01 multipathd: 8:224: reinstated
May  6 10:30:55 testsrv01 multipathd: RanSanLUN2: remaining active paths: 1
May  6 10:30:56 testsrv01 multipathd: 65:128: readsector0 checker reports path is up
May  6 10:30:56 testsrv01 multipathd: 65:128: reinstated
May  6 10:30:57 testsrv01 multipathd: TempLUN1: remaining active paths: 2
May  6 10:30:58 testsrv01 multipathd: 65:224: readsector0 checker reports path is up
May  6 10:30:58 testsrv01 multipathd: 65:224: reinstated
May  6 10:30:58 testsrv01 multipathd: RanSanLUN2: remaining active paths: 2</pre>
<p><strong>To be safe, the &#8216;multipath&#8217; command was used via the Command Line Interface (CLI) on the server(s) to verify that the storage systems were visable to the OS.</strong></p>
<pre>NAME
       multipath - Device mapper target autoconfig
SYNOPSIS
       multipath [options] [device]

       -l     show the current multipath topology from information fetched in sysfs and the device mapper
       -ll    show the current multipath topology from all available information (sysfs, the device mapper ...)</pre>
<p><strong>Truncated results are below that shows connectivity to the RamSans and EMC.  This server is not mapped to the NetApp.</strong></p>
<pre>[root@testsrv01 ~]# multipath -ll
ramsan_DramCache (25050c24001094501)
[size=9 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=4][active]
 \_ 2:0:3:0  sdah 66:16  [active][ready]
 \_ 2:0:4:0  sdai 66:32  [active][ready]
 \_ 1:0:3:0  sdal 66:80  [active][ready]
 \_ 1:0:4:0  sdan 66:112 [active][ready]

ramsan_FlashSSD (25050c24021094501)
[size=1853 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=4][active]
 \_ 2:0:3:1  sdaj 66:48  [active][ready]
 \_ 2:0:4:1  sdak 66:64  [active][ready]
 \_ 1:0:3:1  sdam 66:96  [active][ready]
 \_ 1:0:4:1  sdao 66:128 [active][ready]

EMC_LUN1 (461a963004637699a05bs3464f76)
[size=100 GB][features="1 queue_if_no_path"][hwhandler="0"]
\_ round-robin 0 [prio=2][active]
 \_ 2:0:2:8  sdab 65:176 [active][ready]
 \_ 1:0:2:8  sdl  8:176  [active][ready]</pre>
<p><strong>Notes:  Make sure to verify that all servers have multipathing setup and working correctly, all of the Linux servers never missed a beat!  The database (Oracle) and Websphere servers kept on going.  The same can not be said about the Exchange environment.  Due to a configuration problem there, multipathing was not functioning and it lost connectivity to its storage LUNs.  The VMware cluster survived fine as well.<br />
</strong></p>
<br />Posted in EMC, Filesystems, Linux, Monitoring, Networking, SAN (Storage Area Network), VMWare  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/545/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=545&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/05/11/sannetworkinglinux-using-multipath-to-verify-and-troubleshoot-connectivity-to-fc-luns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>DataDomain/NAS/Filesystems/Linux: Remove Files From A DataDomain&#8217;s /ddvar</title>
		<link>http://blog.colovirt.com/2009/04/16/datadomainnasfilesystemslinux-remove-files-from-a-datadomains-ddvar/</link>
		<comments>http://blog.colovirt.com/2009/04/16/datadomainnasfilesystemslinux-remove-files-from-a-datadomains-ddvar/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 15:19:59 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Data Domain]]></category>
		<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[data domain]]></category>
		<category><![CDATA[datadomain]]></category>
		<category><![CDATA[ddvar]]></category>
		<category><![CDATA[full]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[web interface]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=503</guid>
		<description><![CDATA[DataDomain/NAS/Filesystems/Linux: Remove Files From A DataDomain's /ddvar<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=503&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A few days ago we received alerts for the /ddvar fileystem from one of our Data Domain units.  Normally, I would not manually remove any files from this filesystem due to it being mainly used by the underlining OS and not for NAS storage.  In this case, the problem was the &#8220;core&#8221; subdirectory.  I tried to remove the files from a Windows machine, but due to permission issues, I was unable to do so.  Even through Windows (CIFS) to the DataDomain, I was able to modify the permissions of the file(s) and still would receive a permission denied issue when trying to remove.  The quick solution here was to add my Linux box to the NFS access list, mount &#8220;/ddvar&#8221;, and remove the files as the root user.  Below details the process that worked for me.</p>
<div id="attachment_504" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-504" title="DataDomain Web Alert" src="http://colovirt.files.wordpress.com/2009/04/ddwebalert.jpg?w=300&#038;h=67" alt="DataDomain Web Alert" width="300" height="67" /><p class="wp-caption-text">DataDomain Web Alert</p></div>
<p><span id="more-503"></span><strong>SSH to the DataDomain and add my Linux systems IP address</strong></p>
<pre>admin1@DataDomain01# nfs add /ddvar 172.16.100.6
Mount the DataDomain /ddvar export on the Linux system
root@tstbox02:~# mount DataDomain01:/ddvar /mnt/DataDomain01/</pre>
<p><strong>Move into the core sub-directory under the ddvar mount point</strong></p>
<pre>root@tstbox02:~# cd /mnt/DataDomain01/core/</pre>
<p><strong>Check the directory for files.  As you can see below, the core directory contained 47 gig worth of data</strong></p>
<pre>root@tstbox02:/mnt/DataDomain01/core# ls -lah
total 47G
drwxrwsr-x  2 root group 4.0K 2009-01-14 22:43 .
drwxr-xr-x 12 root group 4.0K 2009-04-02 10:28 ..
-rw-r--r--  1 root group 2.2M 2008-04-10 14:23 cmdb.core.26956.1207851782.gz
-rw-r--r--  1 root group 3.8M 2008-04-10 15:06 core.13124
-rw-r--r--  1 root group 121K 2008-04-08 07:01 ddfs.core.14547.1207652507.gz
-rw-------  1 root group 352K 2008-04-07 22:56 ddfs.core.15098.1207618361.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:30 ddfs.core.15100.1207747799.gz
-rw-r--r--  1 root group 167M 2008-04-08 10:37 ddfs.core.15125.1207665449.gz
-rw-r--r--  1 root group 167M 2008-04-08 10:38 ddfs.core.15505.1207665497.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:31 ddfs.core.15506.1207747848.gz
-rw-r--r--  1 root group 527M 2008-09-10 16:27 ddfs.core.1560.1221078099.gz
-rw-r--r--  1 root group 166M 2008-04-08 07:32 ddfs.core.15675.1207654304.gz
-rw-r--r--  1 root group 167M 2008-04-08 10:39 ddfs.core.15795.1207665554.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:32 ddfs.core.15813.1207747905.gz
-rw-r--r--  1 root group 636M 2008-07-28 15:20 ddfs.core.15991.1217272516.gz
-rw-r--r--  1 root group 167M 2008-04-08 10:40 ddfs.core.16055.1207665605.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:33 ddfs.core.16095.1207747957.gz
-rw-r--r--  1 root group 167M 2008-04-08 07:32 ddfs.core.18047.1207654349.gz
-rw-r--r--  1 root group 167M 2008-04-08 07:33 ddfs.core.18231.1207654404.gz
-rw-r--r--  1 root group 167M 2008-04-08 07:34 ddfs.core.18591.1207654458.gz
-rw-r--r--  1 root group 548M 2008-09-20 02:56 ddfs.core.22290.1221893385.gz
-rw-r--r--  1 root group 167M 2008-04-09 10:23 ddfs.core.22705.1207750958.gz
-rw-r--r--  1 root group 167M 2008-04-09 10:23 ddfs.core.22875.1207751006.gz
-rw-r--r--  1 root group 167M 2008-04-09 10:24 ddfs.core.23008.1207751055.gz
-rw-r--r--  1 root group 553M 2008-08-19 15:26 ddfs.core.23183.1219173638.gz
-rw-r--r--  1 root group 167M 2008-04-09 10:25 ddfs.core.23269.1207751113.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:06 ddfs.core.28347.1207746385.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:07 ddfs.core.28507.1207746432.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:08 ddfs.core.28694.1207746490.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:09 ddfs.core.28989.1207746540.gz
-rw-r--r--  1 root group 167M 2008-04-09 09:14 ddfs.core.29883.1207746837.gz
-rw-r--r--  1 root group 213M 2008-04-07 22:05 ddfs.gdb.15098.1207618361</pre>
<p><strong>Since I verified that we do not need the archived (.gz) files, they were removed</strong></p>
<pre>root@tstbox02:/mnt/DataDomain01/core# rm *.gz</pre>
<p><strong>By only retaining the newer files in this directory, the size is now down to 1.6 gigs.</strong></p>
<pre>root@tstbox02:/mnt/DataDomain01/core# ls -lah
total 1.6G
drwxrwsr-x  2 root group 4.0K 2009-04-15 14:29 .
drwxr-xr-x 12 root group 4.0K 2009-04-02 10:28 ..
-rw-r--r--  1 root group 3.8M 2008-04-10 15:06 core.13124
-rw-r--r--  1 root group 213M 2008-04-07 22:05 ddfs.gdb.15098.1207618361</pre>
<p>Once this was completed, the alert in this DataDomain cleared in the web interface.</p>
<div id="attachment_505" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-505" title="Data Domain Web Alert Cleared" src="http://colovirt.files.wordpress.com/2009/04/ddwebalertclear.jpg?w=300&#038;h=43" alt="Data Domain Web Alert Cleared" width="300" height="43" /><p class="wp-caption-text">Data Domain Web Alert Cleared</p></div>
<p><strong>Notes:  Always verify files that are being removed are not needed.  If there are core files present, it generally means the system has hit an error.  Verify with your DataDomain support before modifying the ddvar filesystem</strong>.</p>
<br />Posted in Data Domain, Filesystems, Linux, NAS  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/503/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=503&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/04/16/datadomainnasfilesystemslinux-remove-files-from-a-datadomains-ddvar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2009/04/ddwebalert.jpg?w=300" medium="image">
			<media:title type="html">DataDomain Web Alert</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2009/04/ddwebalertclear.jpg?w=300" medium="image">
			<media:title type="html">Data Domain Web Alert Cleared</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux/Unix/File Systems: Inodes (Part 2) – File Level Inode Information And Removal</title>
		<link>http://blog.colovirt.com/2009/04/13/linuxunixfile-systems-inodes-part-2-file-level-inode-information-and-removal/</link>
		<comments>http://blog.colovirt.com/2009/04/13/linuxunixfile-systems-inodes-part-2-file-level-inode-information-and-removal/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 08:00:03 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[gid]]></category>
		<category><![CDATA[inode]]></category>
		<category><![CDATA[inodes]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[uid]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=497</guid>
		<description><![CDATA[Linux/Unix/File Systems: Inodes (Part 2) - File Level Inode Information And Removal<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=497&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Inodes &#8220;Part 1&#8243; went into locating filesystem level inode information.  Here we will move from the main filesystem to the individual file.  Besides reviewing how the inode record reflects permissions modification using chown, file removal based on inode number will be covered.</p>
<p><strong>Create a test file</strong></p>
<pre>user01@testsrv:~$ touch testfile</pre>
<p><strong>Below, &#8220;ls&#8221; is used to display the inode number (2009418) of the test file </strong></p>
<pre>user01@testsrv:~$ ls -i /home/user01/testfile
<strong>2009418</strong> /home/user01/testfile
<span id="more-497"></span><strong>Check the inode record for the newly created empty file</strong></pre>
<pre>user01@testsrv:~$ stat /home/user01/testfile
File: `/home/user01/testfile'
Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: fe01h/65025d	Inode: 2009418     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/user01)   Gid: ( 1000/user01)
Access: 2009-04-10 17:52:59.000000000 -0400
Modify: 2009-04-10 17:52:58.000000000 -0400
Change: 2009-04-10 17:52:58.000000000 -0400</pre>
<p><strong>In the following example, a file is being checked that is solely owned by the root user</strong></p>
<pre>user01@testsrv:~$ ls -la /home/user01/w2k3-2.iso
-rw-r--r-- 1 root root 171769856 2009-03-28 13:15 /home/user01/w2k3-2.iso</pre>
<p><strong>Review the root owned ISO file inode information.  The user and group ownership is referenced as Uid and Gid respectively</strong></p>
<pre>user01@testsrv:~$ stat /home/user01/w2k3-2.iso
File: `/home/user01/w2k3-2.iso'
Size: 171769856 	Blocks: 335824     IO Block: 4096   regular file
Device: fe01h/65025d	Inode: 2009538     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2009-03-28 13:11:44.000000000 -0400
Modify: 2009-03-28 13:15:33.000000000 -0400
Change: 2009-03-28 13:15:33.000000000 -0400</pre>
<p><strong>Change the permissions of the ISO file via the root user (current owner of the file)</strong></p>
<pre>root@testsrv:/home/user01# chown user01:user01 /home/user01/w2k3-2.iso</pre>
<p><strong>Re-check tje ISO file permission from the initial user (user01) via the ls command</strong></p>
<pre>user01@testsrv:~$ ls -la /home/user01/w2k3-2.iso
-rw-r--r-- 1 user01 user01 171769856 2009-03-28 13:15 /home/user01/w2k3-2.iso</pre>
<p><strong>Re-stat the ISO file to view the changes in the inode record.  As you can see, the file ownership is now set to user user01 and group user01</strong></p>
<pre>user01@testsrv:~$ stat /home/user01/w2k3-2.iso
File: `/home/user01/w2k3-2.iso'
Size: 171769856 	Blocks: 335824     IO Block: 4096   regular file
Device: fe01h/65025d	Inode: 2009538     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/user01)   Gid: ( 1000/user01)
Access: 2009-03-28 13:11:44.000000000 -0400
Modify: 2009-03-28 13:15:33.000000000 -0400
Change: 2009-04-10 17:57:35.000000000 -0400</pre>
<p><strong>For the next example user01 is kept as the user, but the group is changed to &#8216;admin&#8217;.  Since the current user user01 now has full rights to the file, it can be done from that account</strong></p>
<pre>user01@testsrv:~$ chown :admin /home/user01/w2k3-2.iso</pre>
<p><strong>Re-stat the file once more to see if the group (Gid) has been changed in the inode for this file</strong></p>
<pre>user01@testsrv:~$ stat /home/user01/w2k3-2.iso
File: `/home/user01/w2k3-2.iso'
Size: 171769856 	Blocks: 335824     IO Block: 4096   regular file
Device: fe01h/65025d	Inode: 2009538     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/user01)   Gid: (  119/   admin)
Access: 2009-03-28 13:11:44.000000000 -0400
Modify: 2009-03-28 13:15:33.000000000 -0400
Change: 2009-04-10 18:00:32.000000000 -0400</pre>
<p><strong>Now with the basic understanding of finding an retrieving inode numbers and information, we will proceed to removing files using the &#8220;rm&#8221; command.  Specifically, the following will detail how to remove a file by referencing the inode number.  All of which is done by using &#8220;find&#8221; and passing the results to &#8220;rm&#8221;.</strong></p>
<p><strong>There have only been a few occasions that I can remember where I have needed to know the following, but it is worth knowing!  The main benefit is when a file has been created with a control character in the name</strong></p>
<p><strong>Create a test file</strong></p>
<pre>user01@testsrv:/tmp/testdir$ touch '`'
user01@testsrv:/tmp/testdir$ ls
`</pre>
<p><strong>Try to remove the file without enclosing the &#8220;`&#8221; filename</strong></p>
<pre>user01@testsrv:/tmp/testdir$ rm `
&gt;</pre>
<p><strong>Above you can see that the command did not work.  Instead it dropped to the &#8220;&gt;&#8221; sub-prompt</strong></p>
<p><strong>Locate the inode number for the &#8220;`&#8221; file.  Tab based auto-complete does wonders escaping the special character filename on the command line</strong></p>
<pre>user01@testsrv:/tmp/testdir$ ls -i /tmp/testdir/`
1163285 /tmp/testdir/`</pre>
<p><strong>Now that the inode number is known, the &#8220;find&#8221; command can be used to retrieve the filename associated with it</strong></p>
<pre>user01@testsrv:/tmp/testdir$ find /tmp -inum 1163285
/tmp/testdir/`</pre>
<p><strong>Putting it all together, we can remove the file passing the &#8220;find&#8221; results to &#8220;rm&#8221;.  Below uses a command line pipe (&#8220;|&#8221;) and xargs to accomplish this</strong></p>
<pre>user01@testsrv:/tmp/testdir$ find /tmp -inum 1163285 | xargs rm</pre>
<p><strong>Verify the file has been removed</strong></p>
<pre>user01@testsrv:/tmp/testdir$ ls /tmp/testdir/</pre>
<p><strong>The same can be accomplished via find commands built-in exec feature</strong></p>
<pre>user01@testsrv:/tmp/testdir$ find /tmp -inum 1163285 -exec rm {} ;</pre>
<p><strong>In my opinion, the best way to remove a file via the inode number is as follows</strong></p>
<pre>user01@testsrv:~$ find /tmp -inum 1163285 -exec rm -i {} ;
rm: remove regular empty file `/tmp/testdir/`'? <strong>y</strong></pre>
<p><strong>Specifying &#8220;-i&#8221; after rm makes the user verify the file to be removed.</strong></p>
<p><strong>Notes: There are other ways around removing files with certain characters.  In this chase, the &#8220;`&#8221; file could have been removed with:</strong></p>
<pre>user01@testsrv:/tmp/testdir$ rm /tmp/testdir/`</pre>
<p><strong>If any information in this post is found to be outdated, incorrect, useful, or needs further detail, please leave a comment or email me.</strong></p>
<br />Posted in Filesystems, Linux, Monitoring, Uncategorized  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/497/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=497&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/04/13/linuxunixfile-systems-inodes-part-2-file-level-inode-information-and-removal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux, Unix, NAS, File Systems: Inodes (Part 1) – Checking Availability And High Level Overview</title>
		<link>http://blog.colovirt.com/2009/04/10/linux-unix-nas-file-systems-inodes-part-1-checking-availability-and-high-level-overview/</link>
		<comments>http://blog.colovirt.com/2009/04/10/linux-unix-nas-file-systems-inodes-part-1-checking-availability-and-high-level-overview/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 19:37:40 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[df]]></category>
		<category><![CDATA[df -i]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[inode]]></category>
		<category><![CDATA[inodes]]></category>
		<category><![CDATA[max]]></category>
		<category><![CDATA[max inodes]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[reiser]]></category>
		<category><![CDATA[reiser4]]></category>
		<category><![CDATA[reiserfs]]></category>
		<category><![CDATA[tune2fs]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=490</guid>
		<description><![CDATA[Linux, Unix, NAS, File Systems: Inodes (Part 1) - Checking Availability And High Level Overview<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=490&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Inodes really tell you how many file handles (files) that can be created on a file system.  Most people will never exceed the default setting when the file system is created, nor even know that one is set.  I will eventually go into more detail concerning this topic here on the blog.  The majority (not all) of file systems that are used on Linux and Unix do not support dynamic inode allocation.  What this means is that if you exceed the inode limit of a file system before the storage space, the remainder will be un-usable.  That is until some of the current files are removed.</p>
<p>So here is the really bad part.  The inodes on ext2 and ext3 (Linux default type) are statically set when the file system is formatted.  You can not go back and change the max inode settings.  The exceptions to this that I know of are as follows:</p>
<p>- Reiser4<br />
- VxFS<br />
- XFS<br />
- JFS<br />
- WAFL (NetApp proprietary)<br />
- XZFS</p>
<p>If you are running one of the above and have max inodes issue, you can correct it.</p>
<p>I have been working with computers for over 15 years and have only ran into this problem once.  Luckily, it occurred on a NetApp NAS device that had the ability to increase this value on the live file system.  The main killer here are tons of small files.  In this case, the file system for that NFS share was 40 gigabytes in size and default was ~1 million inode limit.  The quick fix for the issue was to increase this to 3 million.</p>
<p>As far as a ext2 and 3 go, the following shows how to query a file system for relevant inode information<br />
<span id="more-490"></span></p>
<pre>root@testbox:~# tune2fs -l /dev/sda1
tune2fs 1.41.3 (12-Oct-2008)
Filesystem volume name:   &lt;none&gt;
Last mounted on:          &lt;not available&gt;
Filesystem UUID:          56161dd8-9d1d-4c54-851d-938bb88ce6d4
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
<strong>Inode count:              4685824</strong>
Block count:              18731782
Reserved block count:     936589
Free blocks:              15534374
<strong>Free inodes:              4459463</strong>
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1019
Blocks per group:         32768
Fragments per group:      32768
<strong>Inodes per group:         8192
Inode blocks per group:   256</strong>
Filesystem created:       Mon Sep 29 16:25:20 2008
Last mount time:          Fri Jan 23 14:27:02 2009
Last write time:          Fri Jan 23 14:27:02 2009
Mount count:              4
Maximum mount count:      33
Last checked:             Thu Jan 15 09:00:37 2009
Check interval:           15552000 (6 months)
Next check after:         Tue Jul 14 10:00:37 2009
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
<strong>First inode:              11
Inode size:	          128</strong>
Journal inode:            8
First orphan inode:       2908742
Default directory hash:   tea
Directory Hash Seed:      a6544c5xxxxxxxxxxxxxxxxx
<strong>Journal backup:           inode blocks</strong></pre>
<p>The above is good to know, especially to check an un-mounted file system.  The command below shows a <strong>friendlier formatted</strong> output</p>
<pre>root@testbox:~# df -i
Filesystem            <strong>Inodes   IUsed   IFree IUse</strong>% Mounted on
/dev/sda1            4685824  226361 4459463    5% /
tmpfs                 222201       4  222197    1% /lib/init/rw
varrun                222201      64  222137    1% /var/run
varlock               222201       5  222196    1% /var/lock
udev                  222201    5142  217059    3% /dev
tmpfs                 222201       5  222196    1% /dev/shm
/dev/sdb1            61063168    1116 61062052    1% /media/disk</pre>
<p>As you can see, there are no issues to be worried about on this test computer.  Most systems administrators perform centralized monitoring of disk usage at a disk space level (capacity).  On highly used servers that utilize locally stored and/or direct attached storage, it is a good idea to have a script check and <strong>report on the available inodes</strong>.</p>
<p><a href="http://colovirt.files.wordpress.com/2009/04/inodes-1.pdf">PDF Version</a></p>
<p><strong>Notes: This information is provided for a high level overview concerning inodes.  More in-depth information will be provided in up-coming posts.</strong></p>
<br />Posted in Filesystems, Linux, Monitoring, NAS  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/490/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=490&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/04/10/linux-unix-nas-file-systems-inodes-part-1-checking-availability-and-high-level-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>VMWare: ESX Server Partitioning</title>
		<link>http://blog.colovirt.com/2008/10/31/vmware-esx-server-partitioning/</link>
		<comments>http://blog.colovirt.com/2008/10/31/vmware-esx-server-partitioning/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 14:50:28 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[mount point]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[partitioning]]></category>
		<category><![CDATA[size]]></category>
		<category><![CDATA[vmkcore]]></category>

		<guid isPermaLink="false">http://colovirt.wordpress.com/?p=177</guid>
		<description><![CDATA[VMWare ESX server partitioning.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=177&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I have had a few servers core dump and drop over 5 gigs of data to /var/core.  Before, per &#8220;best practices&#8221; a vendor recommended around 4 gigs for /var.  I upped that to 6 gigs originally, but after 2 servers had /var 100% utilized I and revising that.  /var is still 6 gigs but /var/core has been broken out into its own mount point.  15 gigs is a little high, but these servers had raid 1 &#8211; 73 gig hard drives.  At least now if the servers core dump it will affect only its mount point.  I highly recommend doing this!</p>
<p><strong>Below is how I am partitioning ESX servers during the local installs from now on</strong></p>
<table border="0">
<tbody>
<tr>
<td>Mount Point</td>
<td>Size(m)</td>
<td>Partition type</td>
</tr>
<tr>
<td>/boot</td>
<td>250</td>
<td>Primary</td>
</tr>
<tr>
<td>/</td>
<td>10240</td>
<td>Primary</td>
</tr>
<tr>
<td>swap</td>
<td>1600</td>
<td>Primary *max</td>
</tr>
<tr>
<td>/var</td>
<td>6142</td>
<td>Extended</td>
</tr>
<tr>
<td>/var/core</td>
<td>15360</td>
<td>Extended</td>
</tr>
<tr>
<td>/opt</td>
<td>2048</td>
<td>Extended</td>
</tr>
<tr>
<td>/home</td>
<td>2048</td>
<td>Extended</td>
</tr>
<tr>
<td>/tmp</td>
<td>1024</td>
<td>Extended</td>
</tr>
<tr>
<td>vmkcore</td>
<td>109</td>
<td>*max</td>
</tr>
</tbody>
</table>
<p><strong>Note: The *max references to the mount point being at the max size limit for ESX v3*.  The total size of this install is ~36 gigs.  If you have smaller drives, just decrease /var/core.  All the rest, I would keep close to the same.</strong></p>
<p>Update:  Here is an example of why /var/core now has its own filesystem</p>
<p>[user@vm user]$ df -h</p>
<table border="0">
<tbody>
<tr>
<td>Filesystem</td>
<td>Size</td>
<td>Used</td>
<td>Avail</td>
<td>Use%</td>
<td>Mounted on</td>
</tr>
<tr>
<td>/dev/sda2</td>
<td>9.9G</td>
<td>1.2G</td>
<td>8.3G</td>
<td>13%</td>
<td>/</td>
</tr>
<tr>
<td>/dev/sda1</td>
<td>244M</td>
<td>27M</td>
<td>205M</td>
<td>12%</td>
<td>/boot</td>
</tr>
<tr>
<td>/dev/sda8</td>
<td>2.0G</td>
<td>341M</td>
<td>1.6G</td>
<td>18%</td>
<td>/home</td>
</tr>
<tr>
<td>/dev/sda7</td>
<td>2.0G</td>
<td>81M</td>
<td>1.8G</td>
<td>5%</td>
<td>/opt</td>
</tr>
<tr>
<td>none</td>
<td>391M</td>
<td>0</td>
<td>391M</td>
<td>0%</td>
<td>/dev/shm</td>
</tr>
<tr>
<td>/dev/sda9</td>
<td>1012M</td>
<td>33M</td>
<td>928M</td>
<td>4%</td>
<td>/tmp</td>
</tr>
<tr>
<td>/dev/sda6</td>
<td>6.0G</td>
<td>327M</td>
<td>5.3G</td>
<td>6%</td>
<td>/var</td>
</tr>
<tr>
<td>/dev/sda5</td>
<td>15G</td>
<td>15G</td>
<td>0</td>
<td>100%</td>
<td>/var/core</td>
</tr>
</tbody>
</table>
<p><strong>Never lost vpxa or mgmt-vmware (hostd) this time!</strong></p>
<br />Posted in Filesystems, VMWare  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=177&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2008/10/31/vmware-esx-server-partitioning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
	</channel>
</rss>