<div>Greetings Gluster folk,</div><div><br></div><div>I&#39;m running a set of Xen instances and the Xen server configuration and disk images live on a local disk.  I&#39;m attempting to migrate the images/instances off local disk and onto a gluster share.</div>
<div><br></div><div>I have a 4 node physical system cluster. Each system in the cluster has 2 disks. The 2nd drive is dedicated to gluster. It&#39;s mounted up as /gluster/ and the volume looks like this:</div><div><br></div>
<div><b>[root@vm-container-0-0 ~]# gluster volume info</b></div><div><b><br></b></div><div><b>Volume Name: pifs</b></div><div><b>Type: Distributed-Replicate</b></div><div><b>Status: Started</b></div><div><b>Number of Bricks: 2 x 2 = 4</b></div>
<div><b>Transport-type: tcp</b></div><div><b>Bricks:</b></div><div><b>Brick1: vm-container-0-0:/gluster</b></div><div><b>Brick2: vm-container-0-1:/gluster</b></div><div><b>Brick3: vm-container-0-2:/gluster</b></div><div><b>Brick4: vm-container-0-3:/gluster</b></div>
<div><b><br></b></div><div><b>[root@vm-container-0-1 ~]# df -h /pifs/</b></div><div><b>Filesystem            Size  Used Avail Use% Mounted on</b></div><div><b>glusterfs#127.0.0.1:pifs</b></div><div><b>                      1.8T  421G  1.3T  25% /pifs</b></div>
<div><br></div><div><br></div><div>I&#39;m mounting the gluster partition from /etc/fstab, like so:</div><div><br></div><div><b>127.0.0.1:pifs          /pifs                   glusterfs direct-io-mode=disable,_netdev 0 0</b></div>
<div><br></div><div>on each of the 4 nodes. Thus, each system is a gluster server and a gluster client. Everything seem to work fairly happily except when xen tries to actually run and instance. It begins to boot and every instance has the same problem, which is it simply hangs after checking the local disks. So, to be clear, this is the output of &#39;xm console&#39; for a VM instance running off the glusterfs based /pifs partition:</div>
<div><br></div><div><div><b>kjournald starting.  Commit interval 5 seconds</b></div><div><b>EXT3-fs: mounted filesystem with ordered data mode.</b></div><div><b>Setting up other filesystems.</b></div><div><b>Setting up new root fs</b></div>
<div><b>no fstab.sys, mounting internal defaults</b></div><div><b>Switching to new root and running init.</b></div><div><b>unmounting old /dev</b></div><div><b>unmounting old /proc</b></div><div><b>unmounting old /sys</b></div>
<div><b>SELinux:  Disabled at runtime.</b></div><div><b>type=1404 audit(1303751618.915:2): selinux=0 auid=4294967295 ses=4294967295</b></div><div><b>INIT: version 2.86 booting</b></div><div><b>                Welcome to  CentOS release 5.5 (Final)</b></div>
<div><b>                Press &#39;I&#39; to enter interactive startup.</b></div><div><b>Cannot access the Hardware Clock via any known method.</b></div><div><b>Use the --debug option to see the details of our search for an access method.</b></div>
<div><b>Setting clock : Mon Apr 25 13:13:39 EDT 2011 [  OK  ]</b></div><div><b>Starting udev: [  OK  ]</b></div><div><b>Setting hostname localhost:  [  OK  ]</b></div><div><b>No devices found</b></div><div><b>Setting up Logical Volume Management: [  OK  ]</b></div>
<div><b>Checking filesystems</b></div><div><b>Checking all file systems.</b></div><div><b>[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sda1</b></div><div><b>/dev/sda1: clean, 55806/262144 files, 383646/524288 blocks</b></div>
<div><b>[/sbin/fsck.ext3 (1) -- /opt] fsck.ext3 -a /dev/sda2</b></div><div><b>/dev/sda2: clean, 11/2359296 files, 118099/4718592 blocks</b></div><div><br></div><div>This is obviously the output from a CentOS 5.5 VM. I&#39;ve also tried to run a very simple ttylinux 6.0 VM simply to test with and it hangs in the same place, when trying to mount the root file system:</div>
<div><br></div><div><b>NET: Registered protocol family 2</b></div><div><b>IP route cache hash table entries: 32768 (order: 5, 131072 bytes)</b></div><div><b>TCP established hash table entries: 131072 (order: 8, 1048576 bytes)</b></div>
<div><b>TCP bind hash table entries: 65536 (order: 7, 524288 bytes)</b></div><div><b>TCP: Hash tables configured (established 131072 bind 65536)</b></div><div><b>TCP reno registered</b></div><div><b>TCP bic registered</b></div>
<div><b>NET: Registered protocol family 1</b></div><div><b>NET: Registered protocol family 17</b></div><div><b>Bridge firewalling registered</b></div><div><b>Using IPI Shortcut mode</b></div><div><b>md: Autodetecting RAID arrays.</b></div>
<div><b>md: autorun ...</b></div><div><b>md: ... autorun DONE.</b></div><div><b>VFS: Mounted root (ext2 filesystem) readonly.</b></div><div><b>Freeing unused kernel memory: 380k freed</b></div><div><b><br></b></div><div><b>                        -=#     ttylinux 6.0    #=-</b></div>
</div><div><div><b><br></b></div><div><b>Mounting proc:                                                  done</b></div><div><b>Mounting sysfs:                                                 done</b></div><div><b>Setting console loglevel:                                       done</b></div>
<div><b>Setting system clock: hwclock: cannot access RTC: No such file or directory</b></div><div><b>                                                                failed</b></div><div><b>Starting fsck for root filesystem.</b></div>
<div><b>e2fsck 1.39 (29-May-2006)</b></div><div><b>/dev/sda1: clean, 427/1280 files, 4215/5120 blocks</b></div><div><b>Checking root filesystem:                                       done</b></div><div><b>Remounting root rw:</b></div>
</div><div><br></div><div><div><br></div><div>The instances simply hang here forever... When the instance files are located on the local disk, they boot up with no problem.</div><div><br></div><div>I have mounted /pifs/ with direct-io-mode=disabled but am still seeing some strange behavior.</div>
<div><br></div><div>Does anyone know what the issue with this could be? Thanks!</div><div><br></div><div>   --joey</div></div><div><br></div>