<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1270313629955347900</id><updated>2024-11-01T16:10:34.558+05:30</updated><category term="Fedora"/><category term="Command tips"/><category term="Shell - Scrip(t)ips"/><category term="glusterfs"/><category term="Perl - Scrip(t)ips"/><category term="grizzly"/><category term="openstack"/><category term="openstack-cinder"/><category term="LDAP | Directory Server"/><category term="fedora17"/><category term="geo-replication"/><category term="virt qemu"/><category term="IPA winsync AD"/><category term="KVM"/><category term="automount"/><category term="battery-action"/><category term="disaster recovery"/><category term="dmcrypt"/><category term="encryption"/><category term="freeipa"/><category term="glusterfs openstack-cinder"/><category term="httpd"/><category term="lvm"/><category term="openstack-nova"/><category term="preupgrade"/><category term="qemu"/><category term="quota"/><category term="resize partition"/><category term="virsh snapshots"/><category term="virt"/><title type='text'>shanks</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>90</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-5919158800926180454</id><published>2013-10-07T20:46:00.002+05:30</published><updated>2013-10-07T20:49:35.773+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs"/><category scheme="http://www.blogger.com/atom/ns#" term="quota"/><title type='text'>GlusterFS quota on volumes serving virtual machines.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Experiment is to see how virtual machines behave when glusterfs quota is set on a volume which serves virtual machine qcow2 images and limit is exceeded.&lt;/h4&gt;
&lt;br /&gt;
I create a glusterfs volume and set virt group options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@ninja ~]# &lt;i&gt;gluster vol info&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Volume Name: vmstore&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Type: Replicate&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Volume ID: c96de15d-024e-416d-a1c5-ff5fef44b25b&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Status: Started&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Number of Bricks: 1 x 2 = 2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Transport-type: tcp&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Bricks:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Brick1: xx.yy.zz.68:/rhs1/vmstore&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Brick2: xx.yy.zz.56:/rhs1/vmstore&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Options Reconfigured:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;features.quota-deem-statfs: on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;features.quota: on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;storage.owner-gid: 107&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;storage.owner-uid: 107&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;network.remote-dio: enable&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;cluster.eager-lock: enable&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;performance.stat-prefetch: off&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;performance.io-cache: off&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;performance.read-ahead: off&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;performance.quick-read: off&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
Enable quota and deem-statfs on the above volume.&amp;nbsp;features.quota-deem-statfs is necessary if you consider to estimate filesystem size using df command.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;# gluster volume quota vmstore enable&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;# gluster vol set vmstore features.quota-deem-statfs on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
[root@ninja ~]#&lt;i&gt; gluster vol info vmstore&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Volume Name: vmstore&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Type: Replicate&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Volume ID: c96de15d-024e-416d-a1c5-ff5fef44b25b&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Status: Started&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Number of Bricks: 1 x 2 = 2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Transport-type: tcp&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Bricks:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Brick1: xx.yy.zz.68:/rhs1/vmstore&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Brick2: xx.yy.zz.56:/rhs1/vmstore&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Options Reconfigured:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;features.quota-deem-statfs: on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;features.quota: on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;storage.owner-gid: 107&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;storage.owner-uid: 107&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;network.remote-dio: enable&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;cluster.eager-lock: enable&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;performance.stat-prefetch: off&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;performance.io-cache: off&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;performance.read-ahead: off&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;performance.quick-read: off&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;[root@ninja ~]#&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
Ensure that the volume is mounted on the client&lt;br /&gt;
[root@client37 ~]# &lt;i&gt;df -h&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/dev/mapper/VolGroup-LogVol01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.6T &amp;nbsp;2.1G &amp;nbsp;3.4T &amp;nbsp; 1% /&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 485M &amp;nbsp; 40M &amp;nbsp;421M &amp;nbsp; 9% /boot&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;ninja.shanks.com:vmstore &amp;nbsp; &amp;nbsp;195G &amp;nbsp;5.2G &amp;nbsp;190G &amp;nbsp; 3% /var/lib/libvirt/images&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
[root@client37 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now set quota on the volume to limit usage to 20G.&lt;br /&gt;
&lt;br /&gt;
[root@ninja ~]# gluster volume quota vmstore limit-usage / 20GB&lt;br /&gt;
volume quota : success&lt;br /&gt;
[root@ninja ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check on the client:&lt;br /&gt;
[root@client37 ~]# &lt;i&gt;df -h&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/dev/mapper/VolGroup-LogVol01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.6T &amp;nbsp;2.1G &amp;nbsp;3.4T &amp;nbsp; 1% /&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 485M &amp;nbsp; 40M &amp;nbsp;421M &amp;nbsp; 9% /boot&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;ninja.shanks.com:vmstore &amp;nbsp; &amp;nbsp; 20G &amp;nbsp; 19G &amp;nbsp;1.8G &amp;nbsp;92% /var/lib/libvirt/images&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
[root@client37 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now keep adding data so that the quota usage limit is reached. You would see I/O error within the instance and the virtual machine becomes read-only&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/i&gt;8&amp;lt;&lt;br /&gt;
&lt;i&gt;lost page write due to I/O error on dm-2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Buffer I/O error on device dm-2, logical block 1624644&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lost page write due to I/O error on dm-2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Buffer I/O error on device dm-2, logical block 1624645&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lost page write due to I/O error on dm-2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Buffer I/O error on device dm-2, logical block 1624646&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lost page write due to I/O error on dm-2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Buffer I/O error on device dm-2, logical block 1624647&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Aborting journal on device dm-2-8.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;end_request: I/O error, dev vda, sector 118888896&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;end_request: I/O error, dev vda, sector 118898976&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;end_request: I/O error, dev vda, sector 118899984&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;EXT4-fs error (device dm-2) in ext4_reserve_inode_write: Journal has aborted&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;EXT4-fs (dm-2): Remounting filesystem read-only&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;EXT4-fs (dm-2): ext4_da_writepages: jbd2_start: 3244 pages, ino 13; err -30&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;JBD2: Detected IO errors while flushing file data on dm-2-8&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;[root@localhost home]# __ratelimit: 155 callbacks suppressed&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;__ratelimit: 19894 callbacks suppressed&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Buffer I/O error on device dm-0, logical block 1081871&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lost page write due to I/O error on dm-0&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;JBD2: Detected IO errors while flushing file data on dm-0-8&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Aborting journal on device dm-0-8.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;EXT4-fs error (device dm-0): ext4_journal_start_sb: Detected aborted journal&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;EXT4-fs (dm-0): Remounting filesystem read-only&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Buffer I/O error on device dm-0, logical block 6324224&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lost page write due to I/O error on dm-0&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;JBD2: I/O error detected when updating journal superblock for dm-0-8.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;8&amp;lt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
Post reboot, kernel panic is detected.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/i&gt;8&amp;lt;&lt;br /&gt;
&lt;i&gt;dracut Warning: Boot has failed. To debug this issue add &quot;rdshell&quot; to the kernel command line.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Kernel panic - not syncing: Attempted to kill init!&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Pid: 1, comm: init Not tainted 2.6.32-358.el6.x86_64 #1&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Call Trace:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;[&lt;ffffffff8150cfc8&gt;] ? panic+0xa7/0x16f&lt;/ffffffff8150cfc8&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;[&lt;ffffffff81073ae2&gt;] ? do_exit+0x862/0x870&lt;/ffffffff81073ae2&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;[&lt;ffffffff81182885&gt;] ? fput+0x25/0x30&lt;/ffffffff81182885&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;[&lt;ffffffff81073b48&gt;] ? do_group_exit+0x58/0xd0&lt;/ffffffff81073b48&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;[&lt;ffffffff81073bd7&gt;] ? sys_exit_group+0x17/0x20&lt;/ffffffff81073bd7&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;[&lt;ffffffff8100b072&gt;] ? system_call_fastpath+0x16/0x1b&lt;/ffffffff8100b072&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;i&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
8&amp;lt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Resolution&lt;/h4&gt;
&lt;div&gt;
On the hypervisor,&lt;/div&gt;
&lt;div&gt;
[root@client37 ~]# &lt;i&gt;virsh destroy domain&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
On the gluster node, increase the limit-usage&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster volume quota vmstore limit-usage / 40GB&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;volume quota : success&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
On the client, verify that the new value is reflected.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@client37 ~]# &lt;i&gt;df -h&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/dev/mapper/VolGroup-LogVol01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.6T &amp;nbsp;2.1G &amp;nbsp;3.4T &amp;nbsp; 1% /&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 485M &amp;nbsp; 40M &amp;nbsp;421M &amp;nbsp; 9% /boot&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;b&gt;ninja.shanks.com:vmstore &amp;nbsp; &amp;nbsp; 40G &amp;nbsp; 21G &amp;nbsp; 20G &amp;nbsp;51% /var/lib/libvirt/images&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@client37 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@client37 ~]# &lt;i&gt;virsh start domain&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And you are good to GO!!!&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/5919158800926180454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/10/glusterfs-quota-on-volumes-serving.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/5919158800926180454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/5919158800926180454'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/10/glusterfs-quota-on-volumes-serving.html' title='GlusterFS quota on volumes serving virtual machines.'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-879722188295747430</id><published>2013-10-03T21:08:00.000+05:30</published><updated>2013-10-03T21:08:23.288+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="geo-replication"/><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs"/><category scheme="http://www.blogger.com/atom/ns#" term="qemu"/><category scheme="http://www.blogger.com/atom/ns#" term="virt"/><title type='text'>Live virtual machine on GlusterFS geo-replicated volume.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-H9ATDKpnMgs/Uk2ItlB5xfI/AAAAAAAAJTU/mACVrW3agdo/s1600/Screenshot+-+10032013+-+08:38:23+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;376&quot; src=&quot;http://1.bp.blogspot.com/-H9ATDKpnMgs/Uk2ItlB5xfI/AAAAAAAAJTU/mACVrW3agdo/s640/Screenshot+-+10032013+-+08:38:23+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Pre-requisites and Geo-replication configuration are still the same as identified &lt;a href=&quot;http://gsr-linux.blogspot.in/2013/10/disaster-recovery-of-vm-snapshot-store.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Except that geo-replication was configured for vmstore instead of snapstore. I also copied over the virtual machine xml to geo2 hypervisor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note: &lt;/b&gt;That this was tested on a local lab network, hence, network bandwidth should be considered if on the internet.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Validation&lt;/h3&gt;
&lt;div&gt;
1.&amp;nbsp;[root@geo1 ~]# virt-install --connect=qemu:///system --network=bridge:br0 --initrd-inject=rhel.ks --extra-args=&quot;ks=file:/rhel.ks console=tty0 console=ttyS0,115200&quot; --name=shanks-rhel1 --disk path=/var/lib/libvirt/images/shanks-rhel1.qcow2,device=disk,format=qcow2,bus=virtio,cache=writeback,io=threads --ram 1024 --vcpus=1 --check-cpu --accelerate --hvm --location=http://download.shanks.com/RHEL-6/6.4/Server/x86_64/os/ --nographics&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Here, /var/lib/libvirt/images is a gluster mount which is geo-replicated.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2. After the installation in complete, I login to the virtual machine and create a 600MB file. Generate the md5sum of it to have it validated against the geo-replicated image.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3. scp the virtual machine xml to geo2 hypervisor.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4. poweroff the virtual machine in geo1.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5. Ensure that the sync is complete:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ninja ~]# gluster volume geo-replication vmstore gladiator.lab.eng.blr.redhat.com::vmstore status detail&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MASTER: vmstore &amp;nbsp;SLAVE: gladiator.lab.eng.blr.redhat.com::vmstore&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
NODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HEALTH &amp;nbsp; &amp;nbsp;UPTIME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILES SYNCD &amp;nbsp; &amp;nbsp;FILES PENDING &amp;nbsp; &amp;nbsp;BYTES PENDING &amp;nbsp; &amp;nbsp;DELETES PENDING &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
---------------------------------------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div&gt;
ninja.lab.eng.blr.redhat.com &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;1 day 17:22:49 &amp;nbsp; &amp;nbsp;56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0Bytes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
vertigo.lab.eng.blr.redhat.com &amp;nbsp; &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;1 day 17:22:34 &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0Bytes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
6. virsh start the virtual machine in geo2.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
7. Login and run md5sum on the 600MB file.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Result: Virtual machines boots up fine and the md5sum matches.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Got to admit, it was a great exercise!&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And this opens a whole bunch of new scenarios that can be tried and tested with virtualization integrated with glusterfs geo-replication.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
-shanks&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/879722188295747430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/10/live-virtual-machine-on-glusterfs-geo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/879722188295747430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/879722188295747430'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/10/live-virtual-machine-on-glusterfs-geo.html' title='Live virtual machine on GlusterFS geo-replicated volume.'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-H9ATDKpnMgs/Uk2ItlB5xfI/AAAAAAAAJTU/mACVrW3agdo/s72-c/Screenshot+-+10032013+-+08:38:23+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-3159094459484225420</id><published>2013-10-02T03:25:00.003+05:30</published><updated>2013-10-02T10:28:01.176+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="disaster recovery"/><category scheme="http://www.blogger.com/atom/ns#" term="geo-replication"/><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs"/><category scheme="http://www.blogger.com/atom/ns#" term="KVM"/><category scheme="http://www.blogger.com/atom/ns#" term="virsh snapshots"/><category scheme="http://www.blogger.com/atom/ns#" term="virt qemu"/><title type='text'>Disaster recovery of VM snapshot store using GlusterFS Geo Replication.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
My setup looks like the following:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZBsaVFDveJQSmAAlyC20IZgmcxCkxKJjn5vz347lPXoukKZTX9p9n1a3U7LoB5_cuvLel04EFsKpZe98b_Au8vSjl0JXCnVrTYmJJTuxK4RnOqpwYHchVRj2b9oTfLnAJzGd__m9abqk/s1600/Screenshot+-+10022013+-+01:53:20+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;326&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZBsaVFDveJQSmAAlyC20IZgmcxCkxKJjn5vz347lPXoukKZTX9p9n1a3U7LoB5_cuvLel04EFsKpZe98b_Au8vSjl0JXCnVrTYmJJTuxK4RnOqpwYHchVRj2b9oTfLnAJzGd__m9abqk/s640/Screenshot+-+10022013+-+01:53:20+AM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Couple of pre-requisites:&lt;br /&gt;
1. SELinux booleans are set on both the hypervisors. Geo1 and Geo2 in this example.&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;i&gt;setsebool -P sanlock_use_fusefs on&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;setsebool -P virt_use_sanlock on&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;setsebool -P virt_use_fusefs on&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
2. Gluster volumes are create on both master and slave. For simplicity I have use the same volume names. Example of my gluster volumes from one of the node:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster vol info&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Volume Name: vmstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Type: Replicate&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Volume ID: c96de15d-024e-416d-a1c5-ff5fef44b25b&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Status: Created&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Number of Bricks: 1 x 2 = 2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Transport-type: tcp&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Bricks:&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Brick1: xx.yy.zz.68:/rhs1/vmstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Brick2: xx.yy.zz.56:/rhs1/vmstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Options Reconfigured:&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;storage.owner-gid: 107&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;storage.owner-uid: 107&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;network.remote-dio: enable&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;cluster.eager-lock: enable&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;performance.stat-prefetch: off&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;performance.io-cache: off&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;performance.read-ahead: off&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;performance.quick-read: off&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Volume Name: snapstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Type: Replicate&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Volume ID: ad7529d8-242b-40be-a741-aaf331e0fb80&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Status: Created&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Number of Bricks: 1 x 2 = 2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Transport-type: tcp&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Bricks:&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Brick1: xx.yy.zz.68:/rhs2/snapstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Brick2: xx.yy.zz.56:/rhs2/snapstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Options Reconfigured:&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;storage.owner-uid: 107&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;storage.owner-gid: 107&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
My typical workflow looks like:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGfkMYlAplBjZbB8oO3S2DR1KXwxnqjZfl936tvS4r_6gYQMz5ISjzSyjX1Sl6GPRPfrcVRWvbXH_sE78F3RZYFqLOKNsZLGkLc3kZCCPUvV49jui7_lveeCDv3s4dzduMuLwEeOTro7U/s1600/Screenshot+-+10022013+-+02:22:32+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGfkMYlAplBjZbB8oO3S2DR1KXwxnqjZfl936tvS4r_6gYQMz5ISjzSyjX1Sl6GPRPfrcVRWvbXH_sE78F3RZYFqLOKNsZLGkLc3kZCCPUvV49jui7_lveeCDv3s4dzduMuLwEeOTro7U/s640/Screenshot+-+10022013+-+02:22:32+AM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Configure Geo-replication&lt;/h3&gt;
&lt;div&gt;
With the above setup and workflow in mind, I configure Geo-replication environment between master and slave.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster system:: execute gsec_create&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Common secret pub file present at /var/lib/glusterd/geo-replication/common_secret.pem.pub&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Verify common_secret.pem.pub file is created&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;ls -l /var/lib/glusterd/geo-replication/common_secret.pem.pub&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;-rw------- 1 root root 912 Oct &amp;nbsp;1 13:10 /var/lib/glusterd/geo-replication/common_secret.pem.pub&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Push pem to the slave&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster volume geo-replication snapstore gladiator.shanks.com::snapstore create push-pem&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Creating geo-replication session between snapstore &amp;amp; gladiator.shanks.com::snapstore has been successful&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster volume geo-replication snapstore gladiator.shanks.com::snapstore status&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;NODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MASTER &amp;nbsp; &amp;nbsp; &amp;nbsp; SLAVE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HEALTH &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UPTIME &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;----------------------------------------------------------------------------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp;snapstore &amp;nbsp; &amp;nbsp;gladiator.shanks.com::snapstore &amp;nbsp; &amp;nbsp;Not Started &amp;nbsp; &amp;nbsp;N/A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;vertigo.shanks.com &amp;nbsp; &amp;nbsp;snapstore &amp;nbsp; &amp;nbsp;gladiator.shanks.com::snapstore &amp;nbsp; &amp;nbsp;Not Started &amp;nbsp; &amp;nbsp;N/A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Mount vmstore from master on geo1 hypervisor. Note to update /etc/fstab appropriately.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;mount -t glusterfs ninja.shanks.com:vmstore /var/lib/libvirt/images/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;df -hT&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/dev/mapper/VolGroup-LogVol01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.6T &amp;nbsp;2.1G &amp;nbsp;3.4T &amp;nbsp; 1% /&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;485M &amp;nbsp; 40M &amp;nbsp;421M &amp;nbsp; 9% /boot&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com:vmstore fuse.glusterfs &amp;nbsp;195G &amp;nbsp; 33M &amp;nbsp;195G &amp;nbsp; 1% /var/lib/libvirt/images&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Installation of virtual machine&lt;/h3&gt;
&lt;div&gt;
Before proceeding any further, let&#39;s create a qcow2 file and install OS.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;qemu-img create -f qcow2 /var/lib/libvirt/images/shanks-rhel1.qcow2 10G&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Formatting &#39;/var/lib/libvirt/images/shanks-rhel1.qcow2&#39;, fmt=qcow2 size=10737418240 encryption=off cluster_size=65536&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;qemu-img info /var/lib/libvirt/images/shanks-rhel1.qcow2&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;image: /var/lib/libvirt/images/shanks-rhel1.qcow2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;file format: qcow2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;virtual size: 10G (10737418240 bytes)&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;disk size: 193K&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;cluster_size: 65536&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virt-install --connect=qemu:///system --network=bridge:br0 --initrd-inject=rhel.ks --extra-args=&quot;ks=file:/rhel.ks console=tty0 console=ttyS0,115200&quot; --name=shanks-rhel1 --disk path=/var/lib/libvirt/images/shanks-rhel1.qcow2,device=disk,format=qcow2,bus=virtio,cache=writeback,io=threads --ram 1024 --vcpus=1 --check-cpu --accelerate --hvm --location=http://download.shanks.com/RHEL-6/6.4/Server/x86_64/os/ --nographics&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ensure that the virtual machine is running&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virsh list&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;Id &amp;nbsp; &amp;nbsp;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; State&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;----------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;4 &amp;nbsp; &amp;nbsp; shanks-rhel1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now we mount snapstore volume on geo1&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;mount -t glusterfs ninja.shanks.com:snapstore /var/lib/libvirt/qemu/snapshot&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;df -hT&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/dev/mapper/VolGroup-LogVol01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.6T &amp;nbsp;2.1G &amp;nbsp;3.4T &amp;nbsp; 1% /&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;485M &amp;nbsp; 40M &amp;nbsp;421M &amp;nbsp; 9% /boot&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com:vmstore &amp;nbsp; fuse.glusterfs &amp;nbsp;195G &amp;nbsp;2.4G &amp;nbsp;192G &amp;nbsp; 2% /var/lib/libvirt/images&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com:snapstore fuse.glusterfs &amp;nbsp;195G &amp;nbsp; 33M &amp;nbsp;195G &amp;nbsp; 1% /var/lib/libvirt/qemu/snapshot&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Create external snapshot&lt;/h3&gt;
&lt;div&gt;
Time to create an external snapshot&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virsh snapshot-create-as shanks-rhel1 shanks-rhel1-snap1 --disk-only --atomic&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Domain snapshot shanks-rhel1-snap1 created&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;qemu-img info /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap1&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;image: /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;file format: qcow2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;virtual size: 10G (10737418240 bytes)&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;disk size: 960K&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;cluster_size: 65536&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;backing file: /var/lib/libvirt/images/shanks-rhel1.qcow2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy this read-only backing file to snapstore&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;cp shanks-rhel1.qcow2 /var/lib/libvirt/qemu/snapshot/shanks-rhel1/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You would also need to copy the xml file for it for the first time. This is not required if you can directly configure/create a xml. I copied to save some time :)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 images]# &lt;i&gt;cp /etc/libvirt/qemu/shanks-rhel1.xml /var/lib/libvirt/qemu/snapshot/shanks-rhel1/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;ls /var/lib/libvirt/qemu/snapshot/shanks-rhel1/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;shanks-rhel1.qcow2 &amp;nbsp;shanks-rhel1-snap1.xml &amp;nbsp;shanks-rhel1.xml&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Mount the slave volumes on geo2 hypervisor&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;mount -t glusterfs gladiator.shanks.com:vmstore /var/lib/libvirt/images/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;mount -t glusterfs gladiator.shanks.com:snapstore /var/lib/libvirt/qemu/snapshot/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;df -hT&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/dev/mapper/VolGroup-LogVol01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.6T &amp;nbsp;2.1G &amp;nbsp;3.4T &amp;nbsp; 1% /&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ext4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;485M &amp;nbsp; 40M &amp;nbsp;421M &amp;nbsp; 9% /boot&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;xx.yy.zz.68:/vmstore &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fuse.glusterfs &amp;nbsp;200G &amp;nbsp; 33M &amp;nbsp;200G &amp;nbsp; 1% /var/lib/libvirt/images&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;gladiator.shanks.com:vmstore &amp;nbsp; fuse.glusterfs &amp;nbsp;200G &amp;nbsp; 33M &amp;nbsp;200G &amp;nbsp; 1% /var/lib/libvirt/images&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;gladiator.shanks.com:snapstore fuse.glusterfs &amp;nbsp;200G &amp;nbsp; 33M &amp;nbsp;200G &amp;nbsp; 1% /var/lib/libvirt/qemu/snapshot&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
All set to start geo-replication!&lt;/h3&gt;
&lt;div&gt;
From master initiate the geo-replication start command&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster volume geo-replication snapstore gladiator.shanks.com::snapstore start&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Starting geo-replication session between snapstore &amp;amp; gladiator.shanks.com::snapstore has been successful&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
status should show as &quot;Initializing...&quot;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster volume geo-replication snapstore gladiator.shanks.com::snapstore status&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;NODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MASTER &amp;nbsp; &amp;nbsp; &amp;nbsp; SLAVE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HEALTH &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UPTIME &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;--------------------------------------------------------------------------------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp;snapstore &amp;nbsp; &amp;nbsp;gladiator.shanks.com::snapstore &amp;nbsp; &amp;nbsp;Initializing... &amp;nbsp; &amp;nbsp;N/A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;vertigo.shanks.com &amp;nbsp; &amp;nbsp;snapstore &amp;nbsp; &amp;nbsp;gladiator.shanks.com::snapstore &amp;nbsp; &amp;nbsp;Initializing... &amp;nbsp; &amp;nbsp;N/A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
and then later on as &quot;Stable&quot;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster volume geo-replication snapstore gladiator.shanks.com::snapstore status&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;NODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MASTER &amp;nbsp; &amp;nbsp; &amp;nbsp; SLAVE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HEALTH &amp;nbsp; &amp;nbsp;UPTIME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;-------------------------------------------------------------------------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp;snapstore &amp;nbsp; &amp;nbsp;gladiator.shanks.com::snapstore &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;00:01:12 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;vertigo.shanks.com &amp;nbsp; &amp;nbsp;snapstore &amp;nbsp; &amp;nbsp;gladiator.shanks.com::snapstore &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;00:01:09 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
detailed status should show that files are synced&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster volume geo-replication snapstore gladiator.shanks.com::snapstore status detail&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MASTER: snapstore &amp;nbsp;SLAVE: gladiator.shanks.com::snapstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;NODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HEALTH &amp;nbsp; &amp;nbsp;UPTIME &amp;nbsp; &amp;nbsp; &amp;nbsp;FILES SYNCD &amp;nbsp; &amp;nbsp;FILES PENDING &amp;nbsp; &amp;nbsp;BYTES PENDING &amp;nbsp; &amp;nbsp;DELETES PENDING &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;00:01:28 &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0Bytes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;vertigo.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;00:01:26 &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0Bytes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You should be able to access the files from geo2 hypervisor snapshot mount&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;ls /var/lib/libvirt/qemu/snapshot/shanks-rhel1/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;shanks-rhel1.qcow2 &amp;nbsp;shanks-rhel1-snap1.xml &amp;nbsp;shanks-rhel1.xml&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy the virtual machine xml file to the default location and edit the image source path.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;cp /var/lib/libvirt/qemu/snapshot/shanks-rhel1/shanks-rhel1.xml /etc/libvirt/qemu/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy the backing file to vmstore (/var/lib/libvirt/images) on geo2 hypervisor&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;cp /var/lib/libvirt/qemu/snapshot/shanks-rhel1/shanks-rhel1.qcow2 /var/lib/libvirt/images/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Define and start the virtual machine&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;virsh define /etc/libvirt/qemu/shanks-rhel1.xml&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;virsh start shanks-rhel1&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Once it is verified that the virtual machines boots up fine, its time to delete the external snapshot. This is not necessary, however, I am deleting it for simplicity.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virsh snapshot-list shanks-rhel1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Creation Time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; State&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;------------------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;shanks-rhel1-snap1 &amp;nbsp; 2013-10-01 19:01:25 +0530 disk-snapshot&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virsh blockpull --domain shanks-rhel1 --path /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap1 --verbose --wait&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Block Pull: [ 100 %]&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Pull complete&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Note that blockpull populates the snap disk with backing file.&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;qemu-img info /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap1&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;image: /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;file format: qcow2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;virtual size: 10G (10737418240 bytes)&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;disk size: 1.3G&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;cluster_size: 65536&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virsh snapshot-delete shanks-rhel1 shanks-rhel1-snap1 --metadata&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Domain snapshot shanks-rhel1-snap1 deleted&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virsh snapshot-list shanks-rhel1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Creation Time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; State&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;------------------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Let&#39;s test this workflow:&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
1. From geo1 hypervisor login to the virtual machine and touch a file.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virsh &amp;nbsp;console shanks-rhel1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Connected to domain shanks-rhel1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Escape character is ^]&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;[root@localhost ~]# touch a&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;[root@localhost ~]# md5sum a&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;d41d8cd98f00b204e9800998ecf8427e &amp;nbsp;a&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;[root@localhost ~]#&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2. Create external snapshot and copy the backing file to snapstore mount (/var/lib/libvirt/qemu/snapshot)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;virsh snapshot-create-as shanks-rhel1 shanks-rhel1-snap2 --disk-only --atomic&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Domain snapshot shanks-rhel1-snap2 created&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;qemu-img info /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap2&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;image: /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;file format: qcow2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;virtual size: 10G (10737418240 bytes)&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;disk size: 8.4M&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;cluster_size: 65536&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;backing file: /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# &lt;i&gt;cp /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap1 /var/lib/libvirt/qemu/snapshot/shanks-rhel1/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3. Check the geo-replication status in detail and ensure that the image file is fully synced&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ninja ~]#&lt;i&gt; gluster volume geo-replication snapstore gladiator.shanks.com::snapstore status detail&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MASTER: snapstore &amp;nbsp;SLAVE: gladiator.shanks.com::snapstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;NODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HEALTH &amp;nbsp; &amp;nbsp;UPTIME &amp;nbsp; &amp;nbsp; &amp;nbsp;FILES SYNCD &amp;nbsp; &amp;nbsp;FILES PENDING &amp;nbsp; &amp;nbsp;BYTES PENDING &amp;nbsp; &amp;nbsp;DELETES PENDING &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;00:52:10 &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.3GB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;vertigo.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;00:52:07 &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0Bytes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]# &lt;i&gt;gluster volume geo-replication snapstore gladiator.shanks.com::snapstore status detail&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MASTER: snapstore &amp;nbsp;SLAVE: gladiator.shanks.com::snapstore&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;NODE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HEALTH &amp;nbsp; &amp;nbsp;UPTIME &amp;nbsp; &amp;nbsp; &amp;nbsp;FILES SYNCD &amp;nbsp; &amp;nbsp;FILES PENDING &amp;nbsp; &amp;nbsp;BYTES PENDING &amp;nbsp; &amp;nbsp;DELETES PENDING &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;---------------------------------------------------------------------------------------------------------------------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;ninja.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;01:00:27 &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0Bytes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;vertigo.shanks.com &amp;nbsp; &amp;nbsp; &amp;nbsp;Stable &amp;nbsp; &amp;nbsp;01:00:24 &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0Bytes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@ninja ~]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4. Replace the existing source image of the virtual machine and start the instance to verify the md5sum of file &quot;a&#39;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;cp /var/lib/libvirt/qemu/snapshot/shanks-rhel1/shanks-rhel1.shanks-rhel1-snap1 /var/lib/libvirt/images/shanks-rhel1.qcow2&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;cp: overwrite `/var/lib/libvirt/images/shanks-rhel1.qcow2&#39;? y&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]#&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;virsh start shanks-rhel1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Domain shanks-rhel1 started&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo2 ~]# &lt;i&gt;virsh console shanks-rhel1&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;[root@localhost ~]# md5sum a&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;d41d8cd98f00b204e9800998ecf8427e &amp;nbsp;a&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;[root@localhost ~]#&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
Great!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5. Finally, blockpull the snapshot and delete its metadata.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@geo1 ~]# virsh blockpull --domain shanks-rhel1 --path /var/lib/libvirt/images/shanks-rhel1.shanks-rhel1-snap2 --verbose --wait&lt;/div&gt;
&lt;div&gt;
Block Pull: [100 %]&lt;/div&gt;
&lt;div&gt;
Pull complete&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]# virsh snapshot-delete shanks-rhel1 shanks-rhel1-snap2 --metadataDomain snapshot shanks-rhel1-snap2 deleted&lt;/div&gt;
&lt;div&gt;
[root@geo1 ~]#&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/3159094459484225420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/10/disaster-recovery-of-vm-snapshot-store.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/3159094459484225420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/3159094459484225420'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/10/disaster-recovery-of-vm-snapshot-store.html' title='Disaster recovery of VM snapshot store using GlusterFS Geo Replication.'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZBsaVFDveJQSmAAlyC20IZgmcxCkxKJjn5vz347lPXoukKZTX9p9n1a3U7LoB5_cuvLel04EFsKpZe98b_Au8vSjl0JXCnVrTYmJJTuxK4RnOqpwYHchVRj2b9oTfLnAJzGd__m9abqk/s72-c/Screenshot+-+10022013+-+01:53:20+AM.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-6358006483132143114</id><published>2013-08-14T15:09:00.000+05:30</published><updated>2013-09-16T15:19:37.071+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="automount"/><category scheme="http://www.blogger.com/atom/ns#" term="freeipa"/><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs"/><title type='text'>freeIPA integrated with GlusterFS to automount user home directory</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.freeipa.org/page/Main_Page&quot; target=&quot;_blank&quot;&gt;freeIPA&lt;/a&gt;&amp;nbsp;integrated with &lt;a href=&quot;http://www.gluster.org/&quot; target=&quot;_blank&quot;&gt;GlusterFS&lt;/a&gt;&amp;nbsp;so that the user home directories are auto mounted upon login using nfs/glusterfs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJQuJo9e-HwW_TeMOPX-sri68odG8rFrBfF6VOMw6Dx5ltPSCI7bCTh_ZIPl-8Ild0HLOP0TdSA6DHGNU6Q6Pay164RUoJZOSJjpElc1K6FTETM5Sl_kmoLKXi481dzH5DdmvZXFYKDmo/s1600/Screenshot+-+08192013+-+11:35:55+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJQuJo9e-HwW_TeMOPX-sri68odG8rFrBfF6VOMw6Dx5ltPSCI7bCTh_ZIPl-8Ild0HLOP0TdSA6DHGNU6Q6Pay164RUoJZOSJjpElc1K6FTETM5Sl_kmoLKXi481dzH5DdmvZXFYKDmo/s1600/Screenshot+-+08192013+-+11:35:55+AM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Setup IPA Server and Client&lt;/h3&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Install freeIPA:&lt;/h4&gt;
# &lt;i&gt;yum install freeipa-server bind bind-dyndb-ldap&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;i&gt;ipa-server-install&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;br /&gt;
&lt;i&gt;The log file for this installation can be found in /var/log/ipaserver-install.log&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;==============================================================================&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;This program will set up the FreeIPA Server.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;This includes:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; * Configure a stand-alone CA (dogtag) for certificate management&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; * Configure the Network Time Daemon (ntpd)&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; * Create and configure an instance of Directory Server&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; * Create and configure a Kerberos Key Distribution Center (KDC)&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; * Configure Apache (httpd)&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;To accept the default shown in brackets, press the Enter key.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;WARNING: conflicting time&amp;amp;date synchronization service &#39;chronyd&#39; will be disabled&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;in favor of ntpd&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Do you want to configure integrated DNS (BIND)? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Existing BIND configuration detected, overwrite? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Enter the fully qualified domain name of the computer&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;on which you&#39;re setting up server software. Using the form&lt;/i&gt;&lt;br /&gt;
&lt;hostname&gt;&lt;i&gt;.&lt;domainname&gt;&lt;/domainname&gt;&lt;/i&gt;&lt;/hostname&gt;&lt;br /&gt;
&lt;i&gt;Example: master.example.com.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Server host name [rhsauto007.shanks.com]:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Warning: skipping DNS resolution of host rhsauto007.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;The domain name has been determined based on the host name.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Please confirm the domain name [shanks.com]:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;The kerberos protocol requires a Realm name to be defined.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;This is typically the domain name converted to uppercase.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Please provide a realm name [shanks.COM]:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Certain directory server operations require an administrative user.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;This user is referred to as the Directory Manager and has full access&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;to the Directory for system management tasks and will be added to the&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;instance of directory server created for IPA.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;The password must be at least 8 characters long.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Directory Manager password:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Password (confirm):&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;The IPA server requires an administrative user, named &#39;admin&#39;.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;This user is a regular system account used for IPA server administration.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;IPA admin password:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Password (confirm):&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Do you want to configure DNS forwarders? [yes]:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Enter the IP address of DNS forwarder to use, or press Enter to finish.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Enter IP address for a DNS forwarder: xx.yy.zz.2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;DNS forwarder xx.yy.zz.2 added&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Enter IP address for a DNS forwarder:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Do you want to configure the reverse zone? [yes]:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Please specify the reverse zone name [zz.yy.xx.in-addr.arpa.]:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Using reverse zone zz.yy.xx.in-addr.arpa.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;The IPA Master Server will be configured with:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Hostname: &amp;nbsp; &amp;nbsp; &amp;nbsp;rhsauto007.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;IP address: &amp;nbsp; &amp;nbsp;xx.yy.zz.237&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Domain name: &amp;nbsp; shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Realm name: &amp;nbsp; &amp;nbsp;shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;BIND DNS server will be configured to serve IPA domain with:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Forwarders: &amp;nbsp; &amp;nbsp;xx.yy.zz.2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Reverse zone: &amp;nbsp;zz.yy.xx.in-addr.arpa.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Continue to configure the system with these values? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Restarting the web server&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;==============================================================================&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Setup complete&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Next steps:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;1. You must make sure these network ports are open:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;TCP Ports:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;* 80, 443: HTTP/HTTPS&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;* 389, 636: LDAP/LDAPS&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;* 88, 464: kerberos&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;* 53: bind&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;UDP Ports:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;* 88, 464: kerberos&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;* 53: bind&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;* 123: ntp&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2. You can now obtain a kerberos ticket using the command: &#39;kinit admin&#39;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; This ticket will allow you to use the IPA tools (e.g., ipa user-add)&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; and the web user interface.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Be sure to back up the CA certificate stored in /root/cacert.p12&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;This file is required to create replicas. The password for this&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;file is the Directory Manager password&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
On the client machine install freeipa-client:&lt;/h4&gt;
# yum install freeipa-client&lt;br /&gt;
&lt;br /&gt;
Also install IPA clients on all the GlusterFS nodes.&lt;br /&gt;
&lt;br /&gt;
A typical ipa-client-install would look like:&lt;br /&gt;
&lt;br /&gt;
# &lt;i&gt;ipa-client-install --force-ntpd --mkhomedir&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Provide the domain name of your IPA server (ex: example.com): shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Provide your IPA server name (ex: ipa.example.com): rhsauto007.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;The failure to use DNS to find your IPA server indicates that your resolv.conf file is not properly configured.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Autodiscovery of servers for failover cannot work with this configuration.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;If you proceed with the installation, services will be configured to always access the discovered server for all operations and will not fail over to other servers in case of failure.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Proceed with fixed values and no DNS discovery? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Hostname: rhsauto011.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Realm: shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;DNS Domain: shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;IPA Server: rhsauto007.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;BaseDN: dc=shanks,dc=com&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Continue to configure the system with these values? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;User authorized to enroll computers: admin&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Synchronizing time with KDC...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Password for admin@shanks.COM:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Successfully retrieved CA cert&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; Subject: &amp;nbsp; &amp;nbsp; CN=Certificate Authority,O=shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; Issuer: &amp;nbsp; &amp;nbsp; &amp;nbsp;CN=Certificate Authority,O=shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; Valid From: &amp;nbsp;Tue Aug 13 21:02:53 2013 UTC&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; Valid Until: Sat Aug 13 21:02:53 2033 UTC&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Enrolled in IPA realm shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Created /etc/ipa/default.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;New SSSD config will be created&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/sssd/sssd.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/krb5.conf for IPA realm shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;trying https://rhsauto007.shanks.com/ipa/xml&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Forwarding &#39;env&#39; to server &#39;https://rhsauto007.shanks.com/ipa/xml&#39;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Adding SSH public key from /etc/ssh/ssh_host_rsa_key.pub&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Adding SSH public key from /etc/ssh/ssh_host_dsa_key.pub&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Forwarding &#39;host_mod&#39; to server &#39;https://rhsauto007.shanks.com/ipa/xml&#39;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Could not update DNS SSHFP records.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;SSSD enabled&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/openldap/ldap.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;NTP enabled&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/ssh/ssh_config&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/ssh/sshd_config&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Client configuration complete.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Lets do a quick check of IPA server and client setup before proceeding:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create user in IPA server&lt;br /&gt;
# &lt;i&gt;ipa user-add&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;First name: shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Last name: shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;User login [sshanks]: shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;-------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Added user &quot;shanks&quot;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;-------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; User login: shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; First name: shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Last name: shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Full name: shanks shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Display name: shanks shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Initials: ss&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Home directory: /home/shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; GECOS field: shanks shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Login shell: /bin/sh&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Kerberos principal: shanks@shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Email address: shanks@shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; UID: 1661400001&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; GID: 1661400001&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Password: False&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Member of groups: ipausers&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Kerberos keys available: False&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;[root@rhsauto007 ~]# ipa passwd shanks&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;New Password:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Enter New Password again to verify:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;----------------------------------------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Changed password for &quot;shanks@shanks.COM&quot;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;----------------------------------------------------&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;From client try to login as user shanks and you should be prompted to reset password set on server:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto011 ~]# &lt;i&gt;ssh &amp;nbsp;-l shanks $HOSTNAME&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;shanks@rhsauto011.shanks.com&#39;s password:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Password expired. Change your password now.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;WARNING: Your password has expired.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;You must change your password now and login again!&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Changing password for user shanks.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Current Password:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;New password:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Retype new password:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;passwd: all authentication tokens updated successfully.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Connection to rhsauto011.shanks.com closed.&lt;/i&gt;&lt;br /&gt;
[root@rhsauto011 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto011 ~]# &lt;i&gt;ssh &amp;nbsp;-l shanks $HOSTNAME&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;shanks@rhsauto011.shanks.com&#39;s password:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Last login: Tue Aug 13 17:21:01 2013 from rhsauto011.shanks.com&lt;/i&gt;&lt;br /&gt;
-sh-4.2$ &amp;nbsp;&lt;i&gt;pwd&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/home/shanks&lt;/i&gt;&lt;br /&gt;
-sh-4.2$&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All set on the IPA Server and IPA client side.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Install IPA client on GlusterFS node:&lt;/h4&gt;
# &lt;i&gt;ipa-client-install&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;DNS discovery failed to determine your DNS domain&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Provide the domain name of your IPA server (ex: example.com): shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Provide your IPA server name (ex: ipa.example.com): rhsauto007.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;The failure to use DNS to find your IPA server indicates that your resolv.conf file is not properly configured.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Autodiscovery of servers for failover cannot work with this configuration.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;If you proceed with the installation, services will be configured to always access the discovered server for all operations and will not fail over to other servers in case of failure.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Proceed with fixed values and no DNS discovery? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Hostname: rhsbb1.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Realm: shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;DNS Domain: shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;IPA Server: rhsauto007.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;BaseDN: dc=shanks,dc=com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Continue to configure the system with these values? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;User authorized to enroll computers: admin&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Synchronizing time with KDC...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Unable to sync time with IPA NTP server, assuming the time is in sync. Please check that 123 UDP port is opened.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Password for admin@shanks.COM:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Successfully retrieved CA cert&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; Subject: &amp;nbsp; &amp;nbsp; CN=Certificate Authority,O=shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; Issuer: &amp;nbsp; &amp;nbsp; &amp;nbsp;CN=Certificate Authority,O=shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; Valid From: &amp;nbsp;Tue Aug 13 21:02:53 2013 UTC&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; Valid Until: Sat Aug 13 21:02:53 2033 UTC&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;Enrolled in IPA realm shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Created /etc/ipa/default.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;New SSSD config will be created&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/sssd/sssd.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/krb5.conf for IPA realm shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;trying https://rhsauto007.shanks.com/ipa/xml&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Hostname (rhsbb1.shanks.com) not found in DNS&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Failed to update DNS records.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Adding SSH public key from /etc/ssh/ssh_host_rsa_key.pub&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Adding SSH public key from /etc/ssh/ssh_host_dsa_key.pub&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Forwarding &#39;host_mod&#39; to server u&#39;https://rhsauto007.shanks.com/ipa/xml&#39;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Could not update DNS SSHFP records.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;SSSD enabled&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/openldap/ldap.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;NTP enabled&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/ssh/ssh_config&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/ssh/sshd_config&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Client configuration complete.&lt;/i&gt;&lt;br /&gt;
[root@localhost ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should now be able to find the above added GlusterFS node in IPA server:&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;ipa host-show rhsbb1.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Host name: rhsbb1.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Certificate: MIIESDCCAzCgAwIBAgIBDTANBgkqhkiG9w0BAQsFADBBMR8wHQYDVQQKExZMQUIuRU5HLkJMUi5SRURIQVQuQ09NMR4wHAYDVQQDExVDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMTMwODEzMjEyMzIyWhcNMTUwODE0MjEyMzIyWjBJMR8wHQYDVQQKExZMQUIuRU5HLkJMUi5SRURIQVQuQ09NMSYwJAYDVQQDEx1yaHNiYjEubGFiLmVuZy5ibHIucmVkaGF0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALGFGgrmDT8qDAmL2uRXvJfZ6r+DMQszHxVuQxBJqNMjibuUOYp4GJsjNo525uK9h2WKINBxYxVmnHf+TMvlI2pPeCbyVit/u05TKsSKzRf9742tawUlQXXzpbZLoJntG5hUFFWXiid1xtzQUStYKJru1rBeEed+ofhIK+ZpoYQ10ljepeRAHPur4syHjqZ+7r2syUEstdvsL+TVra450kF3dEuOESKilOYbAcQqj47eNSP1Z/enxL0XadNiO8QafjH/V7WKqsnCUpaCIBF6kC4750zPgJhJ34uCRg9PBgZP0mZ7D9ASnbs6MMAad7FpQrYxwi25D0VnbBh8WTdLfSECAwEAAaOCAUEwggE9MB8GA1UdIwQYMBaAFGA8rBYfLswr1bGMo3j0Y8WAb1t9MEgGCCsGAQUFBwEBBDwwOjA4BggrBgEFBQcwAYYsaHR0cDovL2lwYS1jYS5sYWIuZW5nLmJsci5yZWRoYXQuY29tL2NhL29jc3AwDgYDVR0PAQH/BAQDAgTwMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjCBgQYDVR0fBHoweDB2oD6gPIY6aHR0cDovL2lwYS1jYS5sYWIuZW5nLmJsci5yZWRoYXQuY29tL2lwYS9jcmwvTWFzdGVyQ1JMLmJpbqI0pDIwMDEOMAwGA1UEChMFaXBhY2ExHjAcBgNVBAMTFUNlcnRpZmljYXRlIEF1dGhvcml0eTAdBgNVHQ4EFgQUPzq8RWuhwGm2HiIMjKAYxhNWLxQwDQYJKoZIhvcNAQELBQADggEBAMUbHcITmz99UoJhVGnc8VBJ5Kyy1BDlxcHXD7HxrrLbvVw5Bb5TYDj0DwEjsWcxCTx2s3GlKdhwjoy69swD9X3N6yXwtlSmpFvmdvG5E9uL6bceA46oehYx7ITsDXGRxbURKPsGvp1MSlNWbJ6hAYBKgq6Mc7qTkjCONUW09Hrcx0IFXSva39GsZ4eJttpPzGZpljuAdWHJlDBTbr0ABdePdXSGMftQErWgjIDiNpaGtBOmo+0ozX86ZKkY5CenVmLazwTlckIzbjseUfKdeYyOyv7MmqA/uSKz2wGWdkcfLcn3H+8xRqun154yQDZ0NSmx904gKCleyvkTpU/7DtY=&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Principal name: host/rhsbb1.shanks.com@shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Password: False&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Keytab: True&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Managed by: rhsbb1.shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Subject: CN=rhsbb1.shanks.com,O=shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Serial Number: 13&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Serial Number (hex): 0xD&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Issuer: CN=Certificate Authority,O=shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Not Before: Tue Aug 13 21:23:22 2013 UTC&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Not After: Fri Aug 14 21:23:22 2015 UTC&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Fingerprint (MD5): 4b:a4:4d:e3:ba:fc:f5:51:72:7e:10:97:4c:84:02:ce&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Fingerprint (SHA1): 31:8e:44:56:a9:7d:79:57:22:66:0b:87:0c:be:e1:7d:9b:60:1c:dd&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; SSH public key fingerprint: D0:F4:B9:0B:2B:4E:FD:53:A2:C4:7F:E5:1E:2D:5A:A2 (ssh-dss),&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9C:72:ED:73:2C:C9:BB:85:D3:11:00:60:A2:86:A0:38 (ssh-rsa)&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Create GlusterFS volume&lt;/h3&gt;
# &lt;i&gt;gluster vol create export replica 2 xx.yy.zz.76:/rhs/bricks/export xx.yy.zz.72:/rhs/bricks/export&amp;nbsp;xx.yy.zz.66:/rhs/bricks/export xx.yy.zz.67:/rhs/bricks/export&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;volume create: export: success: please start the volume to access data&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;# gluster vol start export&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;volume start: export: success&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
setup automount with -fstype=nfs&lt;/h3&gt;
Once automount maps and keys are added it should look like:&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;ipa automountlocation-tofiles default&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/etc/auto.master:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/etc/auto.direct&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/home&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/etc/auto.home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;---------------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/etc/auto.direct:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;---------------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/etc/auto.home:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;*&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-fstype=nfs rhsbb1.shanks.com:/export/&amp;amp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;maps not connected to /etc/auto.master:&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In your client machine, execute ipa-client-automount&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto011 ~]# &lt;i&gt;ipa-client-automount --location=home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Searching for IPA server...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;IPA server: DNS discovery&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Location: home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Continue to configure the system with these values? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/nsswitch.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/sysconfig/nfs&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/idmapd.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Started rpcidmapd&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Started rpcgssd&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Restarting sssd, waiting for it to become available.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Started autofs&lt;/i&gt;&lt;br /&gt;
[root@rhsauto011 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Verifying our automount of user home directory using GlusterFS&lt;/h4&gt;
&lt;br /&gt;
&lt;b&gt;On IPA server&lt;/b&gt;&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;ipa user-add user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;First name: user&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Last name: 02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;-------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Added user &quot;user02&quot;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;-------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; User login: user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; First name: user&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Last name: 02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Full name: user 02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Display name: user 02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Initials: u0&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Home directory: /home/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; GECOS field: user 02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Login shell: /bin/sh&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Kerberos principal: user02@shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Email address: user02@shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; UID: 1661400004&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; GID: 1661400004&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Password: False&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Member of groups: ipausers&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Kerberos keys available: False&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 ~]#&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;mount -t nfs rhsbb1.shanks.com:/export/ /home/&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;cd /home/&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 home]# &lt;i&gt;ls&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto007 home]# &lt;i&gt;mkdir user02&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 home]# &lt;i&gt;chown 1661400004.1661400004 user02&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 home]# &lt;i&gt;cp /etc/skel/.* user02/&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;cp: omitting directory ‘/etc/skel/.’&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;cp: omitting directory ‘/etc/skel/..’&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 home]#&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto007 ~]# umount /home&lt;br /&gt;
&lt;br /&gt;
Note: pam_oddjob_mkhomedir (or pam_mkhomedir) fails to create user home directory.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;On the client side&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto011 ~]# su - user02&lt;br /&gt;
-sh-4.2$ &lt;i&gt;df -h&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/dev/mapper/fedora_rhsauto011-root &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45G &amp;nbsp;2.0G &amp;nbsp; 41G &amp;nbsp; 5% /&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;devtmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.0G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;2.0G &amp;nbsp; 0% /dev&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;2.0G &amp;nbsp; 0% /dev/shm&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0G &amp;nbsp;412K &amp;nbsp;2.0G &amp;nbsp; 1% /run&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;2.0G &amp;nbsp; 0% /sys/fs/cgroup&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0G &amp;nbsp; 12K &amp;nbsp;2.0G &amp;nbsp; 1% /tmp&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/dev/vda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 477M &amp;nbsp; 69M &amp;nbsp;379M &amp;nbsp;16% /boot&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;rhsbb1.shanks.com:/export/user02 &amp;nbsp;100G &amp;nbsp; 17G &amp;nbsp; 84G &amp;nbsp;17% /home/user02&lt;/i&gt;&lt;br /&gt;
-sh-4.2$&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In autofs log you should see something the following:&lt;br /&gt;
&lt;i&gt;attempting to mount entry /home/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lookup_mount: lookup(sss): looking up user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lookup_mount: lookup(sss): user02 -&amp;gt; -fstype=nfs rhsbb1.shanks.com:/export/&amp;amp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;parse_mount: parse(sun): expanded entry: -fstype=nfs rhsbb1.shanks.com:/export/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;parse_mount: parse(sun): gathered options: fstype=nfs&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;parse_mount: parse(sun): dequote(&quot;rhsbb1.shanks.com:/export/user02&quot;) -&amp;gt; rhsbb1.shanks.com:/export/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;parse_mount: parse(sun): core of entry: options=fstype=nfs, loc=rhsbb1.shanks.com:/export/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;sun_mount: parse(sun): mounting root /home, mountpoint user02, what rhsbb1.shanks.com:/export/user02, fstype nfs, options&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mount_mount: mount(nfs): root=/home name=user02 what=rhsbb1.shanks.com:/export/user02, fstype=nfs, options=&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mount_mount: mount(nfs): nfs options=&quot;&quot;, nobind=0, nosymlink=0, ro=0&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;get_nfs_info: called with host rhsbb1.shanks.com(xx.yy.zz.76) proto 6 version 0x40&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;get_nfs_info: called with host rhsbb1.shanks.com(xx.yy.zz.76) proto 6 version 0x70&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;get_nfs_info: nfs v3 rpc ping time: 0.000733&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;get_nfs_info: host rhsbb1.shanks.com cost 732 weight 0&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;get_nfs_info: called with host rhsbb1.shanks.com(xx.yy.zz.76) proto 17 version 0x70&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;prune_host_list: selected subset of hosts that support NFS3 over TCP&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mount_mount: mount(nfs): calling mkdir_path /home/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mount_mount: mount(nfs): calling mount -t nfs rhsbb1.shanks.com:/export/user02 /home/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;spawn_mount: mtab link detected, passing -n to mount&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mount_mount: mount(nfs): mounted rhsbb1.shanks.com:/export/user02 on /home/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;dev_ioctl_send_ready: token = 172&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mounted /home/user02&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;st_expire: state 1 path /home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;expire_proc: exp_proc = 140336447108864 path /home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;expire_proc_indirect: expire /home/user02&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
setup automount with -fstype=glusterfs&lt;/h3&gt;
&lt;br /&gt;
Once automount maps and keys are added, it should look like&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;ipa automountlocation-tofiles default&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/etc/auto.master:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/etc/auto.direct&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;---------------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/etc/auto.direct:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/home&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-fstype=glusterfs rhsbb1.shanks.com:/export&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;maps not connected to /etc/auto.master:&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In your client machine, execute ipa-client-automount&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto011 ~]# &lt;i&gt;ipa-client-automount --location=home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Searching for IPA server...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;IPA server: DNS discovery&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Location: home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Continue to configure the system with these values? [no]: yes&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/nsswitch.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/sysconfig/nfs&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Configured /etc/idmapd.conf&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Started rpcidmapd&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Started rpcgssd&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Restarting sssd, waiting for it to become available.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Started autofs&lt;/i&gt;&lt;br /&gt;
[root@rhsauto011 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Verifying our automount of user home directory using GlusterFS&lt;/h4&gt;
&lt;br /&gt;
&lt;b&gt;On IPA server&lt;/b&gt;&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;ipa user-add user03&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;First name: user&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Last name: 03&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;-------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Added user &quot;user03&quot;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;-------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; User login: user03&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; First name: user&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Last name: 03&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Full name: user 03&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Display name: user 03&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Initials: u0&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Home directory: /home/user03&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; GECOS field: user 03&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Login shell: /bin/sh&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Kerberos principal: user03@shanks.COM&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Email address: user03@shanks.com&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; UID: 1661400005&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; GID: 1661400005&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Password: False&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Member of groups: ipausers&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; Kerberos keys available: False&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;mount -t nfs rhsbb1.shanks.com:/export/ /home/&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;cd /home/&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 home]# &lt;i&gt;mkdir user03&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 home]# &lt;i&gt;chown 1661400005.1661400005 user03&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 home]# &lt;i&gt;cp /etc/skel/.* user03/&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;cp: omitting directory ‘/etc/skel/.’&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;cp: omitting directory ‘/etc/skel/..’&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 home]# &lt;i&gt;cd&lt;/i&gt;&lt;br /&gt;
[root@rhsauto007 ~]# &lt;i&gt;umount /home/&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Note: pam_oddjob_mkhomedir (or pam_mkhomedir) fails to create user home directory.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;orphans: 2; widows: 2;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;On the client side&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@rhsauto011 ~]# su - user03&lt;br /&gt;
-sh-4.2$ &lt;i&gt;df -h&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used Avail Use% Mounted on&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/dev/mapper/fedora_rhsauto011-root &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45G &amp;nbsp;2.0G &amp;nbsp; 41G &amp;nbsp; 5% /&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;devtmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.0G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;2.0G &amp;nbsp; 0% /dev&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;2.0G &amp;nbsp; 0% /dev/shm&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0G &amp;nbsp;412K &amp;nbsp;2.0G &amp;nbsp; 1% /run&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;2.0G &amp;nbsp; 0% /sys/fs/cgroup&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0G &amp;nbsp; 12K &amp;nbsp;2.0G &amp;nbsp; 1% /tmp&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/dev/vda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 477M &amp;nbsp; 69M &amp;nbsp;379M &amp;nbsp;16% /boot&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;rhsbb1.shanks.com:/export &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100G &amp;nbsp; 17G &amp;nbsp; 84G &amp;nbsp;17% /home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;-sh-4.2$ pwd&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/home/user03&lt;/i&gt;&lt;br /&gt;
-sh-4.2$&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In autofs logs you should see the following:&lt;br /&gt;
&lt;i&gt;attempting to mount entry /home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lookup_mount: lookup(sss): looking up /home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;lookup_mount: lookup(sss): /home -&amp;gt; -fstype=glusterfs rhsbb1.shanks.com:/export&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;parse_mount: parse(sun): expanded entry: -fstype=glusterfs rhsbb1.shanks.com:/export&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;parse_mount: parse(sun): gathered options: fstype=glusterfs&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;parse_mount: parse(sun): dequote(&quot;rhsbb1.shanks.com:/export&quot;) -&amp;gt; rhsbb1.shanks.com:/export&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;parse_mount: parse(sun): core of entry: options=fstype=glusterfs, loc=rhsbb1.shanks.com:/export&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;sun_mount: parse(sun): mounting root /home, mountpoint /home, what rhsbb1.shanks.com:/export, fstype glusterfs, options&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;do_mount: rhsbb1.shanks.com:/export /home type glusterfs options &amp;nbsp;using module generic&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mount_mount: mount(generic): calling mkdir_path /home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mount_mount: mount(generic): calling mount -t glusterfs rhsbb1.shanks.com:/export /home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;spawn_mount: mtab link detected, passing -n to mount&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;gt;&amp;gt; extra arguments at end (ignored)&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mount_mount: mount(generic): mounted rhsbb1.shanks.com:/export type glusterfs on /home&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;dev_ioctl_send_ready: token = 176&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mounted /home&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Here we are mounting the entire /export on /home instead of per user as in the case of -fstype=nfs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/6358006483132143114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/08/freeipa-integrated-with-glusterfs-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6358006483132143114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6358006483132143114'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/08/freeipa-integrated-with-glusterfs-to.html' title='freeIPA integrated with GlusterFS to automount user home directory'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJQuJo9e-HwW_TeMOPX-sri68odG8rFrBfF6VOMw6Dx5ltPSCI7bCTh_ZIPl-8Ild0HLOP0TdSA6DHGNU6Q6Pay164RUoJZOSJjpElc1K6FTETM5Sl_kmoLKXi481dzH5DdmvZXFYKDmo/s72-c/Screenshot+-+08192013+-+11:35:55+AM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-8708498149852918001</id><published>2013-08-13T15:57:00.000+05:30</published><updated>2013-08-13T15:57:54.166+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs"/><category scheme="http://www.blogger.com/atom/ns#" term="grizzly"/><category scheme="http://www.blogger.com/atom/ns#" term="openstack"/><category scheme="http://www.blogger.com/atom/ns#" term="openstack-cinder"/><category scheme="http://www.blogger.com/atom/ns#" term="openstack-nova"/><title type='text'>Launching a Windows instance in Openstack Grizzly stored on GlusterFS volume and attaching Cinder volume.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This blog is about how to launch Windows instance and attach cinder volume to it. For howto integrate Openstack with GlusterFS, refer&amp;nbsp;&lt;a href=&quot;http://gsr-linux.blogspot.in/2013/07/glusterfs-integration-with-openstack.html&quot;&gt;http://gsr-linux.blogspot.in/2013/07/glusterfs-integration-with-openstack.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;br /&gt;
My setup:&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +--------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+-|-----------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;D &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;I &amp;nbsp; &amp;nbsp; | | GlusterFS Node 1|&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;S &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;T &amp;nbsp; &amp;nbsp; +-|-----------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+---------|-+ &amp;nbsp; &amp;nbsp;R &amp;nbsp; &amp;nbsp; +-|-----------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp;I &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|---------|-| &amp;nbsp; &amp;nbsp;B &amp;nbsp; &amp;nbsp; | | GlusterFS Node 2|&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp;U &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp;T &amp;nbsp; &amp;nbsp; +-|-----------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|openstack| | &amp;nbsp; &amp;nbsp;E &amp;nbsp; &amp;nbsp; +-|-----------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|grizlly &amp;nbsp;| | &amp;nbsp; &amp;nbsp;R &amp;nbsp; &amp;nbsp; | | GlusterFS Node 3|&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp;E &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp;P &amp;nbsp; &amp;nbsp; +-|-----------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp;L &amp;nbsp; &amp;nbsp; +-|-----------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+---------|-+ &amp;nbsp; &amp;nbsp;I &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;C &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; | | GlusterFS Node 4|&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;T &amp;nbsp; &amp;nbsp; | | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;E &amp;nbsp; &amp;nbsp; +-|-----------------+&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+--------------+&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GlusterFS nodes exporting distribute replicate volume to store glance images and cinder volume for Openstack Grizzly&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GlusterFS volume information:&lt;/b&gt;&lt;br /&gt;
# gluster vol info cinder-vol&lt;br /&gt;
Volume Name: cinder-vol&lt;br /&gt;
Type: Distributed-Replicate&lt;br /&gt;
Volume ID: 2f4edaef-678b-492a-b972-bd95c1c490a3&lt;br /&gt;
Status: Created&lt;br /&gt;
Number of Bricks: 2 x 2 = 4&lt;br /&gt;
Transport-type: tcp&lt;br /&gt;
Bricks:&lt;br /&gt;
Brick1: xx.yy.zz.183:/rhs/brick1/cinder-vol&lt;br /&gt;
Brick2: xx.yy.zz.223:/rhs/brick1/cinder-vol&lt;br /&gt;
Brick3: xx.yy.zz.183:/rhs/brick2/cinder-vol&lt;br /&gt;
Brick4: xx.yy.zz.223:/rhs/brick2/cinder-vol&lt;br /&gt;
Options Reconfigured:&lt;br /&gt;
storage.owner-gid: 165&lt;br /&gt;
storage.owner-uid: 165&lt;br /&gt;
network.remote-dio: enable&lt;br /&gt;
cluster.eager-lock: enable&lt;br /&gt;
performance.stat-prefetch: off&lt;br /&gt;
performance.io-cache: off&lt;br /&gt;
performance.read-ahead: off&lt;br /&gt;
performance.quick-read: off&lt;br /&gt;
[root@dhcpzz-183 ~]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# gluster vol info glance-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Volume Name: glance-vol&lt;br /&gt;
Type: Distributed-Replicate&lt;br /&gt;
Volume ID: eedd5254-e0ca-4173-98eb-45eaef738010&lt;br /&gt;
Status: Started&lt;br /&gt;
Number of Bricks: 2 x 2 = 4&lt;br /&gt;
Transport-type: tcp&lt;br /&gt;
Bricks:&lt;br /&gt;
Brick1: xx.yy.zz.183:/rhs/brick3/glance-vol&lt;br /&gt;
Brick2: xx.yy.zz.223:/rhs/brick3/glance-vol&lt;br /&gt;
Brick3: xx.yy.zz.183:/rhs/brick4/glance-vol&lt;br /&gt;
Brick4: xx.yy.zz.223:/rhs/brick4/glance-vol&lt;br /&gt;
Options Reconfigured:&lt;br /&gt;
storage.owner-gid: 161&lt;br /&gt;
storage.owner-uid: 161&lt;br /&gt;
network.remote-dio: enable&lt;br /&gt;
cluster.eager-lock: enable&lt;br /&gt;
performance.stat-prefetch: off&lt;br /&gt;
performance.io-cache: off&lt;br /&gt;
performance.read-ahead: off&lt;br /&gt;
performance.quick-read: off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Downloading and launching instance&lt;/h4&gt;
For this experiment I used Windows Server 2012 image listed at&amp;nbsp;&lt;a href=&quot;http://openstack.redhat.com/Image_resources&quot;&gt;http://openstack.redhat.com/Image_resources&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After downloading the qcow2 image, I upload it to the glance store which is basically a GlusterFS mount:&lt;br /&gt;
&lt;br /&gt;
~(keystone_admin)]# &lt;i&gt;glance image-create --name=&quot;Windows2012&quot; --is-public=true --container-format=bare --disk-format=qcow2 &amp;lt; windows_server_2012_standard_eval_kvm_20130510.qcow2&lt;/i&gt;&lt;br /&gt;
+------------------+--------------------------------------+&lt;br /&gt;
| Property &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+------------------+--------------------------------------+&lt;br /&gt;
| checksum &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 801d232ea89f74810284c88b1512a32a &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| container_format | bare &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| created_at &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2013-08-13T00:07:38 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| deleted &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| False &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| deleted_at &amp;nbsp; &amp;nbsp; &amp;nbsp; | None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| disk_format &amp;nbsp; &amp;nbsp; &amp;nbsp;| qcow2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | cc1170ea-fdc4-4c35-9a29-4bee70d9fa99 |&lt;br /&gt;
| is_public &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| True &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| min_disk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| min_ram &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Windows2012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| owner &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| ac0bd9733a08420ab6830223a8e8252b &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| protected &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| False &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 16337731584 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| status &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | active &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| updated_at &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2013-08-13T00:19:50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+------------------+--------------------------------------+&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Let&#39;s launch this instance.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp;~(keystone_admin)]# &lt;i&gt;nova boot --flavor 3 --image cc1170ea-fdc4-4c35-9a29-4bee70d9fa99 &quot;Windows Server 2012 instance2&quot;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
+-------------------------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| Property &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
+-------------------------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| status &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| BUILD &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| updated &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2013-08-13T03:28:02Z &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| OS-EXT-STS:task_state &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | scheduling &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| OS-EXT-SRV-ATTR:host &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| key_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| image &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Windows2012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| hostId &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| OS-EXT-STS:vm_state &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | building &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| OS-EXT-SRV-ATTR:instance_name &amp;nbsp; &amp;nbsp; &amp;nbsp; | instance-0000000b &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| OS-EXT-SRV-ATTR:hypervisor_hostname | None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| flavor &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| m1.medium &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 330dc6fb-92fa-4d17-9a6f-56891da8fef5 |&lt;/div&gt;
&lt;div&gt;
| security_groups &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | [{u&#39;name&#39;: u&#39;default&#39;}] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| user_id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 00a3bbfa022f4a0abba711a619b88bee &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Windows Server 2012 instance2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| adminPass &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | sVePJ9jY6ZBA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| tenant_id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | ac0bd9733a08420ab6830223a8e8252b &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| created &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2013-08-13T03:28:02Z &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| OS-DCF:diskConfig &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | MANUAL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| metadata &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| {} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| accessIPv4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| accessIPv6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| progress &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| OS-EXT-STS:power_state &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| OS-EXT-AZ:availability_zone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| config_drive &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
+-------------------------------------+--------------------------------------+&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Once the &quot;status&quot; is &quot;active&quot;, access the console to change the password of the &quot;Administrator&quot; user from the Horizon dashboard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Creating and attaching cinder volume&lt;/h4&gt;
Create a cinder volume that should be attached to this Windows instance.&lt;br /&gt;
&lt;br /&gt;
~(keystone_admin)]# &lt;i&gt;cinder create --display-name shanks-windows-vol 5&lt;/i&gt;&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; Property &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; attachments &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp;availability_zone &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; bootable &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp;created_at &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2013-08-13T03:51:15.285543 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| display_description | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; display_name &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shanks-windows-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 9bea8bce-19ff-4a97-81d0-b7619e3d0ca3 |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; metadata &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; snapshot_id &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; source_volid &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; creating &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; volume_type &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Attach Openstack cinder volume to Windows instance&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;~(keystone_admin)]# &lt;i&gt;nova volume-attach 330dc6fb-92fa-4d17-9a6f-56891da8fef5 9bea8bce-19ff-4a97-81d0-b7619e3d0ca3 auto&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
+----------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| Property | Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
+----------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| device &amp;nbsp; | /dev/vdb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| serverId | 330dc6fb-92fa-4d17-9a6f-56891da8fef5 |&lt;/div&gt;
&lt;div&gt;
| id &amp;nbsp; &amp;nbsp; &amp;nbsp; | 9bea8bce-19ff-4a97-81d0-b7619e3d0ca3 |&lt;/div&gt;
&lt;div&gt;
| volumeId | 9bea8bce-19ff-4a97-81d0-b7619e3d0ca3 |&lt;/div&gt;
&lt;div&gt;
+----------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Launch &quot;Computer Management&quot; in the Windows instance and you should see unallocated &quot;Disk 1&quot; which is also offline because of policy set by administrator.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-xpGYacWgIP8/UgoDMB1RTsI/AAAAAAAAGlA/3_vVfl695lc/s1600/Screenshot+-+08132013+-+03:26:56+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-xpGYacWgIP8/UgoDMB1RTsI/AAAAAAAAGlA/3_vVfl695lc/s1600/Screenshot+-+08132013+-+03:26:56+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Launch command prompt in Windows and execute &quot;diskpart&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-lZGPGa1cblM/UgoGBWGakKI/AAAAAAAAGlQ/3PajtUJVUag/s1600/Screenshot+-+08132013+-+03:39:13+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-lZGPGa1cblM/UgoGBWGakKI/AAAAAAAAGlQ/3PajtUJVUag/s1600/Screenshot+-+08132013+-+03:39:13+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Clear the read-only attribute&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-ZdppyeMbmg4/UgoGu5Y62LI/AAAAAAAAGlY/2kgIHSkaXp4/s1600/Screenshot+-+08132013+-+03:42:26+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-ZdppyeMbmg4/UgoGu5Y62LI/AAAAAAAAGlY/2kgIHSkaXp4/s1600/Screenshot+-+08132013+-+03:42:26+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Time to get the disk online&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-zODg90jxGMg/UgoHHxzDw0I/AAAAAAAAGlg/Zs2FzlYN9pQ/s1600/Screenshot+-+08132013+-+03:44:30+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-zODg90jxGMg/UgoHHxzDw0I/AAAAAAAAGlg/Zs2FzlYN9pQ/s1600/Screenshot+-+08132013+-+03:44:30+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Once the disk in online, re-launch &quot;Computer Management&quot; from Administrative Tools and navigate to &quot;Disk Management&quot;, you should see the &quot;Initialize Disk&quot; pop-up.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You should be able to perform a quick format on this disk now.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-LkNXPwa6o_s/UgoIE-BPUvI/AAAAAAAAGls/hkYapUqw5p0/s1600/Screenshot+-+08132013+-+03:48:39+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LkNXPwa6o_s/UgoIE-BPUvI/AAAAAAAAGls/hkYapUqw5p0/s1600/Screenshot+-+08132013+-+03:48:39+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You have a drive that can be used which actually resides on GlusterFS volume.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-PNLEBPwjXFk/UgoJPsebRTI/AAAAAAAAGmA/Z1FI98KRcCM/s1600/Screenshot+-+08132013+-+03:53:35+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-PNLEBPwjXFk/UgoJPsebRTI/AAAAAAAAGmA/Z1FI98KRcCM/s1600/Screenshot+-+08132013+-+03:53:35+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/8708498149852918001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/08/launching-windows-instance-in-openstack.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/8708498149852918001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/8708498149852918001'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/08/launching-windows-instance-in-openstack.html' title='Launching a Windows instance in Openstack Grizzly stored on GlusterFS volume and attaching Cinder volume.'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-xpGYacWgIP8/UgoDMB1RTsI/AAAAAAAAGlA/3_vVfl695lc/s72-c/Screenshot+-+08132013+-+03:26:56+PM.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-4072407960828535961</id><published>2013-08-07T18:01:00.000+05:30</published><updated>2013-08-07T18:02:34.910+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="dmcrypt"/><category scheme="http://www.blogger.com/atom/ns#" term="encryption"/><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs"/><title type='text'>Encryption using dm-crypt/LUKS on disk served for GlusterFS bricks.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Experiment with Linux Unified Key Setup (LUKS) which is a specification for block device encryption. Here we will try to encrypt a logical volume and then have xfs filesystem on it to serve GlusterFS bricks.&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Create block devices you want to encrypt:&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# pvcreate --dataalignment 2560k /dev/vdb&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&amp;nbsp; Physical volume &quot;/dev/vdb&quot; successfully created&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# vgcreate RHS_vg1 /dev/vdb&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&amp;nbsp; Volume group &quot;RHS_vg1&quot; successfully created&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# lvcreate -l 100%FREE -n RHS_lv1 RHS_vg1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&amp;nbsp; Logical volume &quot;RHS_lv1&quot; created&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Format the device as a dm-crypt/LUKS encrypted device&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# cryptsetup luksFormat /dev/mapper/RHS_vg1-RHS_lv1&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;WARNING!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;========&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;This will overwrite data on /dev/mapper/RHS_vg1-RHS_lv1 irrevocably.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Are you sure? (Type uppercase yes): YES&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Enter LUKS passphrase:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Verify passphrase:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]#&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# cryptsetup isLuks /dev/mapper/RHS_vg1-RHS_lv1 &amp;amp;&amp;amp; echo success&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;success&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;To see a summary of the encryption information for the device&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# cryptsetup luksDump /dev/mapper/RHS_vg1-RHS_lv1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;LUKS header information for /dev/mapper/RHS_vg1-RHS_lv1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Cipher name: &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;aes&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Cipher mode: &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cbc-essiv:sha256&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Hash spec: &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;sha1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Payload offset:&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;4096&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;MK bits: &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;256&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;MK digest: &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;37 41 be c4 72 8f 57 a4 35 0d 4b 97 7d de 8e 86 40 a8 bb 99&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;MK salt: &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;12 ab 41 2c ee 8f 96 f7 8b 5d b4 b9 49 99 ad 9d&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;39 3a bd 77 a3 cd 03 d6 3b bf 31 20 2c 01 d9 1a&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;MK iterations: &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;24250&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;UUID: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;6f2db449-7096-4f59-a4f2-ccd3d6b30216&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Key Slot 0: ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Iterations: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;97366&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Salt: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b3 d7 06 16 8b 2e 6a 4b bd 11 60 c7 71 e2 0e 9d&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;34 72 b1 91 24 17 39 fe bc bf 0b b0 a5 05 05 5e&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Key material offset:&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;8&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AF stripes: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;4000&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Key Slot 1: DISABLED&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Key Slot 2: DISABLED&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Key Slot 3: DISABLED&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Key Slot 4: DISABLED&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Key Slot 5: DISABLED&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Key Slot 6: DISABLED&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Key Slot 7: DISABLED&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]#&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# cryptsetup luksOpen /dev/mapper/RHS_vg1-RHS_lv1 bricks&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Enter passphrase for /dev/mapper/RHS_vg1-RHS_lv1:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]#&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# dmsetup info bricks&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Name: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bricks&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;State: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ACTIVE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Read Ahead: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;256&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Tables present: &amp;nbsp; &amp;nbsp;LIVE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Open count: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Event number: &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Major, minor: &amp;nbsp; &amp;nbsp; &amp;nbsp;253, 4&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Number of targets: 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;UUID: CRYPT-LUKS1-6f2db44970964f59a4f2ccd3d6b30216-bricks&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]#&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Formatting the disk with xfs filesystem and mounting on a directory that would serve as a basedir for GlusterFS bricks.&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# mkfs.xfs -i size=512 /dev/mapper/bricks&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# mkdir -p /rhs/bricks&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# mount /dev/mapper/bricks /rhs/bricks/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Mapping information to /etc/crypttab&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/etc/crypttab:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;bricks &lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;mapper&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;RHS_vg1&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;RHS_lv1 none&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Updating /etc/fstab&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;mapper&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;bricks&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;rhs&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;bricks&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;xfs&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;defaults&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Verifying:&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;reboot:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Setting hostname localhost.localdomain: &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;device-mapper: multipath: version 1.5.0 loaded&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Setting up Logical Volume Management: &amp;nbsp; 1 logical volume(s) in volume group &quot;RHS_vg1&quot; now active&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&amp;nbsp; 2 logical volume(s) in volume group &quot;VolGroup&quot; now active&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[ &amp;nbsp;OK &amp;nbsp;]&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Enter passphrase for /dev/mapper/RHS_vg1-RHS_lv1:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;(Enter passphrase to continue)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]# blkid -o full&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/dev/vda1: UUID=&quot;4f42eeb2-3a08-4efe-afd6-749be6e027f2&quot; TYPE=&quot;ext4&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/dev/vda2: UUID=&quot;32e98b72-cd13-4195-b16b-054827775c6c&quot; TYPE=&quot;crypto_LUKS&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/dev/vdb1: UUID=&quot;RdGJcQ-FH9o-oPqo-yBON-0WNy-lOCE-xx0X0w&quot; TYPE=&quot;LVM2_member&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/dev/mapper/luks-32e98b72-cd13-4195-b16b-054827775c6c: UUID=&quot;3sB1VE-go5j-oBMW-U5tV-A0m6-CJtJ-Rg674c&quot; TYPE=&quot;LVM2_member&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/dev/mapper/VolGroup-lv_root: UUID=&quot;68773eaa-0cba-4f1d-ac3e-a5b98c905bcc&quot; TYPE=&quot;ext4&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/dev/mapper/VolGroup-lv_swap: UUID=&quot;0549be15-4779-4c65-a6f1-8d2433d217f8&quot; TYPE=&quot;swap&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/dev/mapper/RHS_vg1-RHS_lv1: UUID=&quot;6f2db449-7096-4f59-a4f2-ccd3d6b30216&quot; TYPE=&quot;crypto_LUKS&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/dev/mapper/bricks: UUID=&quot;fdc1a50d-27af-47d5-8dc9-d5cd11df683e&quot; TYPE=&quot;xfs&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;[root@localhost ~]#&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Automatically unlocking LUKS encrypted drives with a keyfile during boot&lt;/h3&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
[root@localhost ~]# dd if=/dev/urandom of=/root/keyfile-bricks bs=32 count=1&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
1+0 records in&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
1+0 records out&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
32 bytes (32 B) copied, 5.922e-05 s, 540 kB/s&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
[root@localhost ~]#&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
[root@localhost ~]# cryptsetup luksAddKey /dev/mapper/RHS_vg1-RHS_lv1 /root/keyfile-bricks&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
Enter any passphrase: &lt;your passphrase=&quot;&quot;&gt;&lt;/your&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
[root@localhost ~]#&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
[root@localhost ~]# chmod 600 /root/keyfile-bricks&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
Update&amp;nbsp;&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;/etc/crypttab as:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;orphans: 4; widows: 4;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;bricks &lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;mapper&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;RHS_vg1&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;RHS_lv1 &lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;root&lt;span style=&quot;color: #333333;&quot;&gt;/&lt;/span&gt;keyfile&lt;span style=&quot;color: #333333;&quot;&gt;-&lt;/span&gt;bricks luks&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;Create GlusterFS volume as you would normally create&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot;&gt;creating first volume for cinder&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot;&gt;# gluster vol create shanks-vol replica 2 \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot;&gt;xx.yy.zz.183:/rhs/bricks/shanks-vol \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot;&gt;xx.yy.zz.223:/rhs/bricks/shanks-vol \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot;&gt;xx.yy.zz.183:/rhs/bricks/shanks-vol \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot;&gt;xx.yy.zz.223:/rhs/bricks/shanks-vol&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot; /&gt;
&lt;span style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot;&gt;# gluster vol start shanks-vol&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; font-size: 20px; line-height: 31.46875px; orphans: auto; widows: auto;&quot;&gt;volume start: shanks-vol: success&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;line-height: 20.796875px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 20.796875px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/4072407960828535961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/08/encryption-using-dm-cryptluks-on-disk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/4072407960828535961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/4072407960828535961'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/08/encryption-using-dm-cryptluks-on-disk.html' title='Encryption using dm-crypt/LUKS on disk served for GlusterFS bricks.'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-6377725770351304076</id><published>2013-08-01T19:19:00.001+05:30</published><updated>2014-01-30T11:37:22.592+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs openstack-cinder"/><category scheme="http://www.blogger.com/atom/ns#" term="grizzly"/><category scheme="http://www.blogger.com/atom/ns#" term="openstack"/><title type='text'>Multiple GlusterFS backend driver integrated with OpenStack Cinder.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Addressing how to configure multiple GlusterFS backend driver to an existing OpenStack setup.&lt;/h2&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Few assumptions:&lt;/div&gt;
1. that you already have GlusterFS nodes installed.&lt;br /&gt;
2. that you already have an existing Openstack setup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
GlusterFS setup:&lt;/h3&gt;
&lt;br /&gt;
create 2 distributed replicate volumes.&lt;br /&gt;
&lt;br /&gt;
creating first volume for cinder&lt;br /&gt;
# gluster vol create cinder-vol replica 2 \&lt;br /&gt;
xx.yy.zz.183:/rhs/brick1/cinder-vol \&lt;br /&gt;
xx.yy.zz.223:/rhs/brick1/cinder-vol \&lt;br /&gt;
xx.yy.zz.183:/rhs/brick2/cinder-vol \&lt;br /&gt;
xx.yy.zz.223:/rhs/brick2/cinder-vol&lt;br /&gt;
&lt;br /&gt;
# gluster vol set cinder-vol group virt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
# gluster vol set cinder-vol storage.owner-uid 165&lt;br /&gt;
# gluster vol set cinder-vol storage.owner-gid 165 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
# gluster vol info cinder-vol&lt;br /&gt;
Volume Name: cinder-vol&lt;br /&gt;
Type: Distributed-Replicate&lt;br /&gt;
Volume ID: 2f4edaef-678b-492a-b972-bd95c1c490a3&lt;br /&gt;
Status: Created&lt;br /&gt;
Number of Bricks: 2 x 2 = 4&lt;br /&gt;
Transport-type: tcp&lt;br /&gt;
Bricks:&lt;br /&gt;
Brick1: xx.yy.zz.183:/rhs/brick1/cinder-vol&lt;br /&gt;
Brick2: xx.yy.zz.223:/rhs/brick1/cinder-vol&lt;br /&gt;
Brick3: xx.yy.zz.183:/rhs/brick2/cinder-vol&lt;br /&gt;
Brick4: xx.yy.zz.223:/rhs/brick2/cinder-vol&lt;br /&gt;
Options Reconfigured:&lt;br /&gt;
storage.owner-gid: 165&lt;br /&gt;
storage.owner-uid: 165&lt;br /&gt;
network.remote-dio: enable&lt;br /&gt;
cluster.eager-lock: enable&lt;br /&gt;
performance.stat-prefetch: off&lt;br /&gt;
performance.io-cache: off&lt;br /&gt;
performance.read-ahead: off&lt;br /&gt;
performance.quick-read: off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# gluster vol start cinder-vol&lt;br /&gt;
volume start: cinder-vol: success&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Creating second volume for cinder&lt;br /&gt;
# gluster vol create cinder-vol2 replica 2 \&lt;br /&gt;
xx.yy.zz.183:/rhs/brick1/cinder-vol2 \&lt;br /&gt;
xx.yy.zz.223:/rhs/brick1/cinder-vol2 \&lt;br /&gt;
xx.yy.zz.183:/rhs/brick2/cinder-vol2 \&lt;br /&gt;
xx.yy.zz.223:/rhs/brick2/cinder-vol2&lt;br /&gt;
&lt;br /&gt;
# gluster vol set cinder-vol2 group virt&lt;br /&gt;
# gluster vol set cinder-vol2 storage.owner-uid 165&lt;br /&gt;
# gluster vol set cinder-vol2 storage.owner-gid 165&lt;br /&gt;
&lt;br /&gt;
# gluster vol info cinder-vol2&lt;br /&gt;
Volume Name: cinder-vol2&lt;br /&gt;
Type: Distributed-Replicate&lt;br /&gt;
Volume ID: a3d4831a-d754-4072-9a3a-c6641759ec09&lt;br /&gt;
Status: Created&lt;br /&gt;
Number of Bricks: 2 x 2 = 4&lt;br /&gt;
Transport-type: tcp&lt;br /&gt;
Bricks:&lt;br /&gt;
Brick1: xx.yy.zz.183:/rhs/brick1/cinder-vol2&lt;br /&gt;
Brick2: xx.yy.zz.223:/rhs/brick1/cinder-vol2&lt;br /&gt;
Brick3: xx.yy.zz.183:/rhs/brick2/cinder-vol2&lt;br /&gt;
Brick4: xx.yy.zz.223:/rhs/brick2/cinder-vol2&lt;br /&gt;
Options Reconfigured:&lt;br /&gt;
storage.owner-gid: 165&lt;br /&gt;
storage.owner-uid: 165&lt;br /&gt;
network.remote-dio: enable&lt;br /&gt;
cluster.eager-lock: enable&lt;br /&gt;
performance.stat-prefetch: off&lt;br /&gt;
performance.io-cache: off&lt;br /&gt;
performance.read-ahead: off&lt;br /&gt;
performance.quick-read: off&lt;br /&gt;
&lt;br /&gt;
# gluster vol start cinder-vol2&lt;br /&gt;
volume start: cinder-vol2: success&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From your allinone openstack node verify that the volumes are available to rule out any network issue.&lt;br /&gt;
# showmount -e xx.yy.zz.223&lt;br /&gt;
Export list for xx.yy.zz.223:&lt;br /&gt;
/cinder-vol &amp;nbsp;*&lt;br /&gt;
/cinder-vol2 *&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Configuring openstack to use multiple GlusterFS drivers&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;Defining the names of the groups for multiple volume backends&lt;/b&gt;&lt;br /&gt;
# openstack-config --set /etc/cinder/cinder.conf DEFAULT enabled_backends GLUSTERFS_DRIVER1,GLUSTERFS_DRIVER2&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Specifying cinder.volume.drivers.glusterfs options in /etc/cinder/cinder.conf for both the drivers&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GLUSTERFS_DRIVER1:&lt;/b&gt;&lt;br /&gt;
#&amp;nbsp;openstack-config --set /etc/cinder/cinder.conf GLUSTERFS_DRIVER1 volume_driver cinder.volume.drivers.glusterfs.GlusterfsDriver&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp;openstack-config --set /etc/cinder/cinder.conf GLUSTERFS_DRIVER1 glusterfs_shares_config /etc/cinder/cinder-volume1.conf&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp;openstack-config --set /etc/cinder/cinder.conf GLUSTERFS_DRIVER1 glusterfs_mount_point_base /var/lib/cinder/cinder-volume1&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp;openstack-config --set /etc/cinder/cinder.conf GLUSTERFS_DRIVER1 volume_backend_name GLUSTERFS_cinder_volume1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GLUSTERFS_DRIVER2:&lt;/b&gt;&lt;br /&gt;
# openstack-config --set /etc/cinder/cinder.conf GLUSTERFS_DRIVER2 volume_driver cinder.volume.drivers.glusterfs.GlusterfsDriver&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp;openstack-config --set /etc/cinder/cinder.conf GLUSTERFS_DRIVER2 glusterfs_shares_config /etc/cinder/cinder-volume2.conf&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp;openstack-config --set /etc/cinder/cinder.conf GLUSTERFS_DRIVER2 glusterfs_mount_point_base /var/lib/cinder/cinder-volume2&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp;openstack-config --set /etc/cinder/cinder.conf GLUSTERFS_DRIVER2 volume_backend_name GLUSTERFS_cinder_volume2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Adding GlusterFS volumes in shares config&lt;/b&gt;&lt;br /&gt;
# cat &amp;gt; /etc/cinder/cinder-volume1.conf &amp;lt;&amp;lt; EOF&lt;br /&gt;
&amp;gt; xx.yy.zz.183:cinder-vol&lt;br /&gt;
&amp;gt; EOF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cat &amp;gt; /etc/cinder/cinder-volume2.conf &amp;lt;&amp;lt; EOF&lt;br /&gt;
&amp;gt; xx.yy.zz.223:cinder-vol&lt;br /&gt;
&amp;gt; EOF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Just restart cinder-volume service&lt;br /&gt;
# service openstack-cinder-volume restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# mount | grep cinder&lt;br /&gt;
xx.yy.zz.183:cinder-vol on /var/lib/cinder/cinder-volume1/586c24173ac3ab5d1d43aed1f113d9f6 type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)&lt;br /&gt;
xx.yy.zz.223:cinder-vol2 on /var/lib/cinder/cinder-volume2/2277a5d6ce46f3cd52771e1314f74ce5 type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)&lt;br /&gt;
&lt;br /&gt;
All set!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cinder-manage host list&lt;br /&gt;
host &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;zone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
2013-08-01 18:02:29 &amp;nbsp; &amp;nbsp;DEBUG [cinder.utils] backend &amp;lt;module &#39;cinder.db.sqlalchemy.api&#39; from &#39;/usr/lib/python2.6/site-packages/cinder/db/sqlalchemy/api.pyc&#39;&amp;gt;&lt;br /&gt;
dhcpzz-146.shanks.com&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
dhcpzz-146.shanks.com@GLUSTERFS_DRIVER1&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
dhcpzz-146.shanks.com@GLUSTERFS_DRIVER2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: The volume_type must be defined in the volume_type table in the database. When creating a volume for a particular backend (or group of &amp;gt; 1 backends) the volume_type is passed in. There can be &amp;gt; 1 backend per volume_type, and the capacity scheduler kicks in and keeps the backends of a particular volume_type even. In order to group a volume_type to a backend, you must define extra specs for the type. src: https://wiki.openstack.org/wiki/Cinder-multi-backend#Volume_Type&lt;br /&gt;
&lt;br /&gt;
# cinder type-create GLUSTERFS_cinder_volume1&lt;br /&gt;
# cinder type-create&amp;nbsp;GLUSTERFS_cinder_volume2&lt;br /&gt;
&lt;br /&gt;
(Thanks to Shilpa M Jagannath for point out an error above which is now fixed.)&lt;br /&gt;
&lt;br /&gt;
# cinder type-key glusterfs_cinder_volume1 set volume_backend_name=glusterfs_cinder_volume1&lt;br /&gt;
# cinder type-key glusterfs_cinder_volume2 set volume_backend_name=glusterfs_cinder_volume2&lt;br /&gt;
&lt;br /&gt;
# cinder extra-specs-list&lt;br /&gt;
+--------------------------------------+--------------------------+-------------------------------------------------------+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;extra_specs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+--------------------------------------+--------------------------+-------------------------------------------------------+&lt;br /&gt;
| 50b7f795-29c0-4fe8-8ca3-cf66e2f34886 | glusterfs_cinder_volume1 | {u&#39;volume_backend_name&#39;: u&#39;glusterfs_cinder_volume1&#39;} |&lt;br /&gt;
| cea39f0e-cb83-4c13-b712-ae29551da19f | glusterfs_cinder_volume2 | {u&#39;volume_backend_name&#39;: u&#39;glusterfs_cinder_volume2&#39;} |&lt;br /&gt;
+--------------------------------------+--------------------------+-------------------------------------------------------+&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Usage and tests&lt;/h3&gt;
(keystone_admin)]# cinder create --display-name shanks-vol1 --volume-type glusterfs_cinder_volume1 3&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; Property &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; attachments &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp;availability_zone &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; bootable &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp;created_at &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2013-08-01T13:22:16.810225 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| display_description | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; display_name &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; shanks-vol1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 312d61b8-9abc-4c7c-915a-7e9dfff0b098 |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; metadata &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; snapshot_id &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; source_volid &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; creating &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; volume_type &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; glusterfs_cinder_volume1 &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# ll -h /var/lib/cinder/cinder-volume1/586c24173ac3ab5d1d43aed1f113d9f6/volume-312d61b8-9abc-4c7c-915a-7e9dfff0b098&lt;br /&gt;
-rw-rw-rw-. 1 root root 3.0G Aug &amp;nbsp;1 18:52 /var/lib/cinder/cinder-volume1/586c24173ac3ab5d1d43aed1f113d9f6/volume-312d61b8-9abc-4c7c-915a-7e9dfff0b098&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# getfattr -d -etext -m. -n trusted.glusterfs.pathinfo &amp;nbsp;/var/lib/cinder/cinder-volume1/586c24173ac3ab5d1d43aed1f113d9f6/volume-312d61b8-9abc-4c7c-915a-7e9dfff0b098&lt;br /&gt;
getfattr: Removing leading &#39;/&#39; from absolute path names&lt;br /&gt;
# file: var/lib/cinder/cinder-volume1/586c24173ac3ab5d1d43aed1f113d9f6/volume-312d61b8-9abc-4c7c-915a-7e9dfff0b098&lt;br /&gt;
trusted.glusterfs.pathinfo=&quot;(&amp;lt;DISTRIBUTE:cinder-vol-dht&amp;gt; (&amp;lt;REPLICATE:cinder-vol-replicate-1&amp;gt; &amp;lt;POSIX(/rhs/brick2/cinder-vol):dhcpzz-183.shanks.com:/rhs/brick2/cinder-vol/volume-312d61b8-9abc-4c7c-915a-7e9dfff0b098&amp;gt; &amp;lt;POSIX(/rhs/brick2/cinder-vol):dhcpzz-223.shanks.com:/rhs/brick2/cinder-vol/volume-312d61b8-9abc-4c7c-915a-7e9dfff0b098&amp;gt;))&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(keystone_admin)]# cinder create --display-name shanks-vol2 --volume-type glusterfs_cinder_volume2 4&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; Property &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; attachments &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp;availability_zone &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; bootable &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp;created_at &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2013-08-01T13:23:47.948160 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| display_description | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; display_name &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; shanks-vol2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 152fcb35-31ca-4e66-a87e-4b921e3171aa |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; metadata &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; snapshot_id &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; source_volid &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; creating &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; volume_type &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; glusterfs_cinder_volume2 &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+---------------------+--------------------------------------+&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# ls -lh /var/lib/cinder/cinder-volume2/2277a5d6ce46f3cd52771e1314f74ce5/volume-152fcb35-31ca-4e66-a87e-4b921e3171aa&lt;br /&gt;
-rw-rw-rw-. 1 root root 4.0G Aug &amp;nbsp;1 18:53 /var/lib/cinder/cinder-volume2/2277a5d6ce46f3cd52771e1314f74ce5/volume-152fcb35-31ca-4e66-a87e-4b921e3171aa&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# getfattr -d -etext -m. -n trusted.glusterfs.pathinfo &amp;nbsp;/var/lib/cinder/cinder-volume2/2277a5d6ce46f3cd52771e1314f74ce5/volume-152fcb35-31ca-4e66-a87e-4b921e3171aa&lt;br /&gt;
getfattr: Removing leading &#39;/&#39; from absolute path names&lt;br /&gt;
# file: var/lib/cinder/cinder-volume2/2277a5d6ce46f3cd52771e1314f74ce5/volume-152fcb35-31ca-4e66-a87e-4b921e3171aa&lt;br /&gt;
trusted.glusterfs.pathinfo=&quot;(&amp;lt;DISTRIBUTE:cinder-vol2-dht&amp;gt; (&amp;lt;REPLICATE:cinder-vol2-replicate-1&amp;gt; &amp;lt;POSIX(/rhs/brick2/cinder-vol2):dhcpzz-223.shanks.com:/rhs/brick2/cinder-vol2/volume-152fcb35-31ca-4e66-a87e-4b921e3171aa&amp;gt; &amp;lt;POSIX(/rhs/brick2/cinder-vol2):dhcpzz-183.shanks.com:/rhs/brick2/cinder-vol2/volume-152fcb35-31ca-4e66-a87e-4b921e3171aa&amp;gt;))&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/6377725770351304076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/08/multiple-glusterfs-backend-driver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6377725770351304076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6377725770351304076'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/08/multiple-glusterfs-backend-driver.html' title='Multiple GlusterFS backend driver integrated with OpenStack Cinder.'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-4450704523351643109</id><published>2013-07-31T18:45:00.000+05:30</published><updated>2013-08-02T16:25:09.308+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs"/><category scheme="http://www.blogger.com/atom/ns#" term="grizzly"/><category scheme="http://www.blogger.com/atom/ns#" term="openstack"/><category scheme="http://www.blogger.com/atom/ns#" term="openstack-cinder"/><title type='text'>Add more GlusterFS integrated OpenStack Cinder nodes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Add more GlusterFS integrated OpenStack Cinder nodes to an existing OpenStack setup.&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
GlusterFS setup&lt;/h3&gt;
&lt;div&gt;
Continuing from&amp;nbsp;&lt;a href=&quot;http://gsr-linux.blogspot.in/2013/07/glusterfs-integration-with-openstack.html&quot;&gt;http://gsr-linux.blogspot.in/2013/07/glusterfs-integration-with-openstack.html&lt;/a&gt;. I wanted to scale out OpenStack Cinder nodes integrated with new GlusterFS volume.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Creating a new distributed-replicate volume to store cinder images.&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
~]# &lt;i&gt;gluster vol create cinder-vol2 replica 2 \&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;xx.yy.zz.183:/rhs/brick1/cinder-vol2 \&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;xx.yy.zz.223:/rhs/brick1/cinder-vol2 \&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;xx.yy.zz.183:/rhs/brick2/cinder-vol2 \&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;xx.yy.zz.223:/rhs/brick2/cinder-vol2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;volume create: cinder-vol2: success: please start the volume to access data&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
~]# &lt;i&gt;gluster vol set cinder-vol2 group virt&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
volume set: success&lt;/div&gt;
&lt;div&gt;
~]# &lt;i&gt;gluster vol set cinder-vol2 storage.owner-uid 165&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
volume set: success&lt;/div&gt;
&lt;div&gt;
~]# &lt;i&gt;gluster vol set cinder-vol2 storage.owner-gid 165&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
volume set: success&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Verifying newly created cinder volume (cinder-vol2)&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
~]# &lt;i&gt;gluster vol info cinder-vol2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
Volume Name: cinder-vol2&lt;/div&gt;
&lt;div&gt;
Type: Distributed-Replicate&lt;/div&gt;
&lt;div&gt;
Volume ID: a3d4831a-d754-4072-9a3a-c6641759ec09&lt;/div&gt;
&lt;div&gt;
Status: Created&lt;/div&gt;
&lt;div&gt;
Number of Bricks: 2 x 2 = 4&lt;/div&gt;
&lt;div&gt;
Transport-type: tcp&lt;/div&gt;
&lt;div&gt;
Bricks:&lt;/div&gt;
&lt;div&gt;
Brick1:&amp;nbsp;xx.yy.zz.183:/rhs/brick1/cinder-vol2&lt;/div&gt;
&lt;div&gt;
Brick2:&amp;nbsp;xx.yy.zz.223:/rhs/brick1/cinder-vol2&lt;/div&gt;
&lt;div&gt;
Brick3:&amp;nbsp;xx.yy.zz.183:/rhs/brick2/cinder-vol2&lt;/div&gt;
&lt;div&gt;
Brick4:&amp;nbsp;xx.yy.zz.223:/rhs/brick2/cinder-vol2&lt;/div&gt;
&lt;div&gt;
Options Reconfigured:&lt;/div&gt;
&lt;div&gt;
storage.owner-gid: 165&lt;/div&gt;
&lt;div&gt;
storage.owner-uid: 165&lt;/div&gt;
&lt;div&gt;
network.remote-dio: enable&lt;/div&gt;
&lt;div&gt;
cluster.eager-lock: enable&lt;/div&gt;
&lt;div&gt;
performance.stat-prefetch: off&lt;/div&gt;
&lt;div&gt;
performance.io-cache: off&lt;/div&gt;
&lt;div&gt;
performance.read-ahead: off&lt;/div&gt;
&lt;div&gt;
performance.quick-read: off&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
~]#&amp;nbsp;&lt;i&gt;gluster vol&amp;nbsp;start cinder-vol2&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
volume start: cinder-vol2: success&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-style: italic;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
~]# &lt;i&gt;gluster vol status cinder-vol2&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: italic;&quot;&gt;
Status of volume: cinder-vol2&lt;/div&gt;
&lt;div style=&quot;font-style: italic;&quot;&gt;
Gluster process&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;Port&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Online&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Pid&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;-----------------------------------------------------------------&lt;/span&gt;&lt;i&gt;-------------&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Brick&amp;nbsp;&lt;/i&gt;xx.yy.zz&lt;i&gt;.183:/rhs/brick1/cinder-vol2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;49156&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Y&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;16793&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Brick&amp;nbsp;&lt;/i&gt;xx.yy.zz&lt;i&gt;.223:/rhs/brick1/cinder-vol2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;49156&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Y&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;10807&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Brick&amp;nbsp;&lt;/i&gt;xx.yy.zz&lt;i&gt;.183:/rhs/brick2/cinder-vol2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;49157&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Y&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;16804&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Brick&amp;nbsp;&lt;/i&gt;xx.yy.zz&lt;i&gt;.223:/rhs/brick2/cinder-vol2&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;49157&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Y&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;10818&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;NFS Server on localhost&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;2049&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Y&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;16816&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Self-heal Daemon on localhost&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;N/A&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Y&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;16824&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;NFS Server on&amp;nbsp;&lt;/i&gt;xx.yy.zz&lt;i&gt;.223&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;2049&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Y&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;10830&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;Self-heal Daemon on&amp;nbsp;&lt;/i&gt;xx.yy.zz&lt;i&gt;.223&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;N/A&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Y&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;10837&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-style: italic;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-style: italic;&quot;&gt;
There are no active volume tasks&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Configuring OpenStack Cinder to user new GlusterFS volume&lt;/h3&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;On the new Cinder node do:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
~]# &lt;i&gt;yum install openstack-utils openstack-cinder openstack-selinux&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
~]# &lt;i&gt;yum install glusterfs glusterfs-fuse&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
~]# &lt;i&gt;openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.glusterfs.GlusterfsDriver&lt;/i&gt;&lt;br /&gt;
~]# &lt;i&gt;openstack-config --set /etc/cinder/cinder.conf DEFAULT glusterfs_shares_config /etc/cinder/shares.conf&lt;/i&gt;&lt;br /&gt;
~]# &lt;i&gt;openstack-config --set /etc/cinder/cinder.conf DEFAULT glusterfs_mount_point_base /var/lib/cinder/volumes&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
~]# &lt;i&gt;cat &amp;gt; /etc/cinder/shares.conf &amp;lt;&amp;lt; EOF&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;gt;&amp;nbsp;xx.yy.zz.183:cinder-vol2&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;gt; EOF&lt;/i&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Configuring to connect to exiting Cinder database&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Configuration to connect this new node to an existing cinder database and also to an existing AMQP broker.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
~]# &lt;i&gt;openstack-config --set /etc/cinder/cinder.conf DEFAULT rpc_backend cinder.openstack.common.rpc.impl_qpid&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
~]# &lt;i&gt;openstack-config --set /etc/cinder/cinder.conf DEFAULT qpid_hostname&amp;nbsp;xx.yy.zz.146&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
Note: Here&amp;nbsp;xx.yy.zz.146 is my OpenStack setup installed using &quot;packstack --allinone&quot; option.&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
~]# openstack-config --set /etc/cinder/cinder.conf DEFAULT qpid_username guest&lt;/div&gt;
&lt;div&gt;
~]# openstack-config --set /etc/cinder/cinder.conf DEFAULT qpid_password notused&lt;/div&gt;
&lt;div&gt;
~]# openstack-config --set /etc/cinder/cinder.conf DEFAULT sql_connection mysql://cinder:794153107f0a44d7@xx.yy.zz.146/cinder&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Note: sql_connection value can be found in your /etc/cinder/cinder.conf of default cinder node.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
All set!!!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
~]# &lt;i&gt;service openstack-cinder-volume start&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Verifying your addition of new GlusterFS integrated OpenStack Cinder node&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@dhcpzz-211 ~(keystone_admin)]# &lt;i&gt;mount&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
/dev/mapper/vg_dhcpzz211-lv_root on / type ext4 (rw)&lt;/div&gt;
&lt;div&gt;
proc on /proc type proc (rw)&lt;/div&gt;
&lt;div&gt;
sysfs on /sys type sysfs (rw)&lt;/div&gt;
&lt;div&gt;
devpts on /dev/pts type devpts (rw,gid=5,mode=620)&lt;/div&gt;
&lt;div&gt;
tmpfs on /dev/shm type tmpfs (rw,rootcontext=&quot;system_u:object_r:tmpfs_t:s0&quot;)&lt;/div&gt;
&lt;div&gt;
/dev/vda1 on /boot type ext4 (rw)&lt;/div&gt;
&lt;div&gt;
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.183:cinder-vol2 on /var/lib/cinder/volumes/c1c93c8c420380b0c5bdea9f2eacd8b8 type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)&lt;/div&gt;
&lt;div&gt;
[root@dhcpzz-211 ~(keystone_admin)]#&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The logs should indicate (provided verbose=true in cinder.conf) that qpid is connected to AMQP server as:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;==&amp;gt; /var/log/cinder/volume.log &amp;lt;==&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:15:31 &amp;nbsp; &amp;nbsp; INFO [cinder.service] Starting 1 workers&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:15:31 &amp;nbsp; &amp;nbsp; INFO [cinder.service] Started child 3338&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:15:31 &amp;nbsp; &amp;nbsp;AUDIT [cinder.service] Starting cinder-volume node (version 2013.1.2)&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:15:32 &amp;nbsp; &amp;nbsp; INFO [cinder.volume.manager] Updating volume status&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:15:32 &amp;nbsp; &amp;nbsp; INFO [cinder.openstack.common.rpc.impl_qpid] Connected to AMQP server on xx.yy.zz.146:5672&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:15:32 &amp;nbsp; &amp;nbsp; INFO [cinder.openstack.common.rpc.impl_qpid] Connected to AMQP server on xx.yy.zz.146:5672&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now cinder-manage should list both the nodes:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
~(keystone_admin)]# &lt;i&gt;cinder-manage host list&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
host &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;zone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
dhcpzz-146.shanks.com&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
dhcpzz-211.shanks.com&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;nova &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Lets test by creating cinder volumes&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@dhcpzz-146 ~(keystone_admin)]# &lt;i&gt;cinder create --display-name vol1 20&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
+---------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; Property &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
+---------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; attachments &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp;availability_zone &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; bootable &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp;created_at &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2013-07-31T11:43:30.979520 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| display_description | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; display_name &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vol1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 0a3bf28b-0313-4f8f-b49d-d1337bcddac8 |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; metadata &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; snapshot_id &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; source_volid &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; creating &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; volume_type &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
+---------------------+--------------------------------------+&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In ==&amp;gt; /var/log/cinder/volume.log &amp;lt;== of your first/default cinder node you should see (provided verbose=true in cinder.conf):&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:23:03 &amp;nbsp; &amp;nbsp; INFO [cinder.volume.manager] volume volume-35e1f918-9c82-4e13-86c4-affe1d9f7091: creating&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:23:03 &amp;nbsp; &amp;nbsp; INFO [cinder.volume.drivers.glusterfs] &lt;b&gt;&lt;u&gt;casted to xx.yy.zz.183:cinder-vol&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:23:03 &amp;nbsp; &amp;nbsp; INFO [cinder.volume.manager] volume volume-35e1f918-9c82-4e13-86c4-affe1d9f7091: created successfully&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@dhcpzz-146 ~(keystone_admin)]# getfattr -d -etext -m. -n trusted.glusterfs.pathinfo /var/lib/cinder/volumes/586c24173ac3ab5d1d43aed1f113d9f6/volume-35e1f918-9c82-4e13-86c4-affe1d9f7091&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
getfattr: Removing leading &#39;/&#39; from absolute path names&lt;/div&gt;
&lt;div&gt;
# file: var/lib/cinder/volumes/586c24173ac3ab5d1d43aed1f113d9f6/volume-35e1f918-9c82-4e13-86c4-affe1d9f7091&lt;/div&gt;
&lt;div&gt;
trusted.glusterfs.pathinfo=&quot;(&amp;lt;DISTRIBUTE:cinder-vol-dht&amp;gt; (&amp;lt;REPLICATE:cinder-vol-replicate-1&amp;gt; &amp;lt;POSIX(/rhs/brick2/cinder-vol):dhcpzz-183.shanks.com:/rhs/brick2/cinder-vol/volume-35e1f918-9c82-4e13-86c4-affe1d9f7091&amp;gt; &amp;lt;POSIX(/rhs/brick2/cinder-vol):dhcpzz-223.shanks.com:/rhs/brick2/cinder-vol/volume-35e1f918-9c82-4e13-86c4-affe1d9f7091&amp;gt;))&quot;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@dhcpzz-211 ~(keystone_admin)]# &lt;i&gt;cinder create --display-name vol2 20&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
+---------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; Property &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
+---------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; attachments &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp;availability_zone &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nova &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; bootable &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp;created_at &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2013-07-31T11:54:00.245068 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| display_description | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; display_name &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vol2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | c384cc7b-f888-43e5-979c-915898fc70e8 |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; metadata &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; snapshot_id &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; source_volid &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; creating &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| &amp;nbsp; &amp;nbsp; volume_type &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
+---------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In ==&amp;gt; /var/log/cinder/volume.log &amp;lt;== of your newly added GlusterFS integrated OpenStack Cinder node you should see (provided verbose=true in cinder.conf):&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:24:03 &amp;nbsp; &amp;nbsp; INFO [cinder.volume.manager] volume volume-c384cc7b-f888-43e5-979c-915898fc70e8: creating&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:24:03 &amp;nbsp; &amp;nbsp; INFO [cinder.volume.drivers.glusterfs] &lt;b&gt;&lt;u&gt;casted to xx.yy.zz.183:cinder-vol2&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
2013-07-31 17:24:04 &amp;nbsp; &amp;nbsp; INFO [cinder.volume.manager] volume volume-c384cc7b-f888-43e5-979c-915898fc70e8: created successfully&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@dhcpzz-211&amp;nbsp;~(keystone_admin)]# getfattr -d -etext -m. -n trusted.glusterfs.pathinfo /var/lib/cinder/volumes/c1c93c8c420380b0c5bdea9f2eacd8b8/volume-c384cc7b-f888-43e5-979c-915898fc70e8&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
getfattr: Removing leading &#39;/&#39; from absolute path names&lt;/div&gt;
&lt;div&gt;
# file: var/lib/cinder/volumes/c1c93c8c420380b0c5bdea9f2eacd8b8/volume-c384cc7b-f888-43e5-979c-915898fc70e8&lt;/div&gt;
&lt;div&gt;
trusted.glusterfs.pathinfo=&quot;(&amp;lt;DISTRIBUTE:cinder-vol2-dht&amp;gt; (&amp;lt;REPLICATE:cinder-vol2-replicate-0&amp;gt; &amp;lt;POSIX(/rhs/brick1/cinder-vol2):dhcpzz-223.shanks.com:/rhs/brick1/cinder-vol2/volume-c384cc7b-f888-43e5-979c-915898fc70e8&amp;gt; &amp;lt;POSIX(/rhs/brick1/cinder-vol2):dhcpzz-183.shanks.com:/rhs/brick1/cinder-vol2/volume-c384cc7b-f888-43e5-979c-915898fc70e8&amp;gt;))&quot;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/4450704523351643109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/07/add-more-glusterfs-integrated-openstack.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/4450704523351643109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/4450704523351643109'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/07/add-more-glusterfs-integrated-openstack.html' title='Add more GlusterFS integrated OpenStack Cinder nodes'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-5498549363163784039</id><published>2013-07-30T16:54:00.000+05:30</published><updated>2013-08-02T16:25:38.811+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="glusterfs"/><category scheme="http://www.blogger.com/atom/ns#" term="grizzly"/><category scheme="http://www.blogger.com/atom/ns#" term="openstack"/><category scheme="http://www.blogger.com/atom/ns#" term="openstack-cinder"/><title type='text'>GlusterFS integration with openstack-cinder and openstack-glance (Grizzly) using packstack --allinone</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Setup GlusterFS server and integrate with openstack-cinder and openstack-glance (Grizzly) :&amp;nbsp;&lt;/b&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;GlusterFS setup:&lt;/b&gt;&lt;/h3&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Creating a distributed-replicate gluster volume for cinder&lt;/h4&gt;
# &lt;i&gt;gluster vol create cinder-vol replica 2 \&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;xx.yy.zz.183:/rhs&lt;/i&gt;&lt;i&gt;/brick1/cinder-vol \&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;xx.yy.zz&lt;/i&gt;&lt;i&gt;.223:/rhs/brick1/cinder-vol \&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;xx.yy.zz&lt;/i&gt;&lt;i&gt;.183:/rhs/brick2/cinder-vol \&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;xx.yy.zz&lt;/i&gt;&lt;i&gt;.223:/rhs/brick2/cinder-vol&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
volume create: cinder-vol: success: please start the volume to access data&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Creating a distributed-replicate gluster volume for glance&lt;/h4&gt;
# &lt;i&gt;gluster vol create glance-vol replica 2&amp;nbsp;&lt;/i&gt;&lt;i&gt;xx.yy.zz&lt;/i&gt;&lt;i&gt;.183:/rhs&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;/brick3/glance-vol&amp;nbsp;&lt;/i&gt;&lt;i&gt;xx.yy.zz&lt;/i&gt;&lt;i&gt;.223:/rhs/brick3/glance-vol&amp;nbsp;&lt;/i&gt;&lt;i&gt;xx.yy.zz&lt;/i&gt;&lt;i&gt;.183:/rhs/brick&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;4/glance-vol&amp;nbsp;&lt;/i&gt;&lt;i&gt;xx.yy.zz&lt;/i&gt;&lt;i&gt;.223:/rhs/brick4/glance-vol &amp;nbsp; &amp;nbsp;&lt;/i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
volume create: glance-vol: success: please start the volume to access data&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Setting appropriate volume options for cinder and glance volume&lt;/h4&gt;
&lt;b&gt;cinder-vol:&lt;/b&gt;&lt;br /&gt;
# &lt;i&gt;gluster vol set cinder-vol group virt &amp;nbsp;&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
volume set: success&lt;br /&gt;
&lt;br /&gt;
# &lt;i&gt;gluster vol set cinder-vol storage.owner-uid 165&lt;/i&gt;&lt;br /&gt;
volume set: success&lt;br /&gt;
&lt;br /&gt;
# &lt;i&gt;gluster vol set cinder-vol storage.owner-gid 165&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
volume set: success&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;glance-vol:&lt;/b&gt;&lt;br /&gt;
#&amp;nbsp;&lt;i&gt;gluster vol set glance-vol group virt &amp;nbsp;&lt;/i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
volume set: success&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp;&lt;i&gt;gluster vol set glance-vol storage.owner-uid 161&lt;/i&gt;&lt;br /&gt;
volume set: success&lt;br /&gt;
&lt;br /&gt;
#&amp;nbsp;&lt;i&gt;gluster vol set glance-vol storage.owner-gid 161&lt;/i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
volume set: success&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Verifying the volume before starting it&lt;/h4&gt;
# &lt;i&gt;gluster vol info cinder-vol&lt;/i&gt;&lt;br /&gt;
Volume Name: cinder-vol&lt;br /&gt;
Type: Distributed-Replicate&lt;br /&gt;
Volume ID: 2f4edaef-678b-492a-b972-bd95c1c490a3&lt;br /&gt;
Status: Created&lt;br /&gt;
Number of Bricks: 2 x 2 = 4&lt;br /&gt;
Transport-type: tcp&lt;br /&gt;
Bricks:&lt;br /&gt;
Brick1:&amp;nbsp;xx.yy.zz.183:/rhs/brick1/cinder-vol&lt;br /&gt;
Brick2:&amp;nbsp;xx.yy.zz.223:/rhs/brick1/cinder-vol&lt;br /&gt;
Brick3:&amp;nbsp;xx.yy.zz.183:/rhs/brick2/cinder-vol&lt;br /&gt;
Brick4:&amp;nbsp;xx.yy.zz.223:/rhs/brick2/cinder-vol&lt;br /&gt;
Options Reconfigured:&lt;br /&gt;
storage.owner-gid: 165&lt;br /&gt;
storage.owner-uid: 165&lt;br /&gt;
network.remote-dio: enable&lt;br /&gt;
cluster.eager-lock: enable&lt;br /&gt;
performance.stat-prefetch: off&lt;br /&gt;
performance.io-cache: off&lt;br /&gt;
performance.read-ahead: off&lt;br /&gt;
performance.quick-read: off&lt;br /&gt;
[root@dhcpzz-183 ~]#&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
# &lt;i&gt;gluster vol info glance-vol &amp;nbsp;&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Volume Name: glance-vol&lt;br /&gt;
Type: Distributed-Replicate&lt;br /&gt;
Volume ID: eedd5254-e0ca-4173-98eb-45eaef738010&lt;br /&gt;
Status: Started&lt;br /&gt;
Number of Bricks: 2 x 2 = 4&lt;br /&gt;
Transport-type: tcp&lt;br /&gt;
Bricks:&lt;br /&gt;
Brick1:&amp;nbsp;xx.yy.zz.183:/rhs/brick3/glance-vol&lt;br /&gt;
Brick2:&amp;nbsp;xx.yy.zz.223:/rhs/brick3/glance-vol&lt;br /&gt;
Brick3:&amp;nbsp;xx.yy.zz.183:/rhs/brick4/glance-vol&lt;br /&gt;
Brick4:&amp;nbsp;xx.yy.zz.223:/rhs/brick4/glance-vol&lt;br /&gt;
Options Reconfigured:&lt;br /&gt;
storage.owner-gid: 161&lt;br /&gt;
storage.owner-uid: 161&lt;br /&gt;
network.remote-dio: enable&lt;br /&gt;
cluster.eager-lock: enable&lt;br /&gt;
performance.stat-prefetch: off&lt;br /&gt;
performance.io-cache: off&lt;br /&gt;
performance.read-ahead: off&lt;br /&gt;
performance.quick-read: off&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Starting both the volumes&lt;/h4&gt;
&lt;div&gt;
# &lt;i&gt;gluster vol start cinder-vol&lt;/i&gt;&lt;br /&gt;
#&amp;nbsp;&lt;i&gt;gluster vol start glance-vol&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Verifying the cinder volume status&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
# &lt;i&gt;gluster vol status cinder-vol&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Status of volume: cinder-vol&lt;/div&gt;
&lt;div&gt;
Gluster process &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Port &amp;nbsp; &amp;nbsp;Online &amp;nbsp;Pid&lt;/div&gt;
&lt;div&gt;
------------------------------------------------------------------------------&lt;/div&gt;
&lt;div&gt;
Brick&amp;nbsp;xx.yy.zz&amp;nbsp;183:/rhs/brick1/cinder-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49152 &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3824&lt;/div&gt;
&lt;div&gt;
Brick&amp;nbsp;xx.yy.zz&amp;nbsp;223:/rhs/brick1/cinder-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49152 &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3689&lt;/div&gt;
&lt;div&gt;
Brick&amp;nbsp;xx.yy.zz&amp;nbsp;183:/rhs/brick2/cinder-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49153 &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3835&lt;/div&gt;
&lt;div&gt;
Brick&amp;nbsp;xx.yy.zz&amp;nbsp;223:/rhs/brick2/cinder-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49153 &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3700&lt;/div&gt;
&lt;div&gt;
NFS Server on localhost &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2049 &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3916&lt;/div&gt;
&lt;div&gt;
Self-heal Daemon on localhost &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N/A &amp;nbsp; &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3924&lt;/div&gt;
&lt;div&gt;
NFS Server on&amp;nbsp;xx.yy.zz&amp;nbsp;223 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2049 &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3779&lt;/div&gt;
&lt;div&gt;
Self-heal Daemon on&amp;nbsp;xx.yy.zz&amp;nbsp;223 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N/A &amp;nbsp; &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3786&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
There are no active volume tasks&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h4&gt;
Verifying the glance volume status&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
# gluster vol status glance-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Status of volume: glance-vol&lt;br /&gt;
Gluster process &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Port &amp;nbsp; &amp;nbsp;Online &amp;nbsp;Pid&lt;br /&gt;
------------------------------------------------------------------------------&lt;br /&gt;
Brick&amp;nbsp;xx.yy.zz&amp;nbsp;183:/rhs/brick3/glance-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49154 &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3893&lt;br /&gt;
Brick&amp;nbsp;xx.yy.zz&amp;nbsp;223:/rhs/brick3/glance-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49154 &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3756&lt;br /&gt;
Brick&amp;nbsp;xx.yy.zz&amp;nbsp;183:/rhs/brick4/glance-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49155 &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3904&lt;br /&gt;
Brick&amp;nbsp;xx.yy.zz&amp;nbsp;223:/rhs/brick4/glance-vol &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49155 &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3767&lt;br /&gt;
NFS Server on localhost &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2049 &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3916&lt;br /&gt;
Self-heal Daemon on localhost &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N/A &amp;nbsp; &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3924&lt;br /&gt;
NFS Server on&amp;nbsp;xx.yy.zz&amp;nbsp;223 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2049 &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3779&lt;br /&gt;
Self-heal Daemon on&amp;nbsp;xx.yy.zz&amp;nbsp;223 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; N/A &amp;nbsp; &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; 3786&lt;br /&gt;
&lt;br /&gt;
There are no active volume tasks&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Configuring Openstack Cinder to use GlusterFS volume:&lt;/b&gt;&lt;/h3&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Installing required packages&lt;/b&gt;&lt;/h4&gt;
&lt;div&gt;
# &lt;i&gt;yum install -y openstack-utils openstack-cinder openstack-glance&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
#&lt;i&gt;&amp;nbsp;yum install -y glusterfs-fuse glusterfs&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Setting glusterfs default config parameters in cinder.conf&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
#&lt;i&gt; openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.glusterfs.GlusterfsDriver&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
#&lt;i&gt; openstack-config --set /etc/cinder/cinder.conf DEFAULT glusterfs_shares_config /etc/cinder/shares.conf&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
#&lt;i&gt; openstack-config --set /etc/cinder/cinder.conf DEFAULT glusterfs_mount_point_base /var/lib/cinder/volumes&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;Creating /etc/cinder/shares.conf with gluster volume details:&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;# cat &amp;gt; /etc/cinder/shares.conf &amp;lt;&amp;lt; EOF&lt;/i&gt;&lt;br /&gt;
xx.yy.zz.183:cinder-vol&lt;br /&gt;
&lt;b&gt;
&lt;/b&gt;
&lt;i&gt;EOF&lt;/i&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Configuring Openstack Glance to use GlusterFS volume:&lt;/b&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
Ensure filesystem_store_datadir is specified as:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;snip&amp;gt;&lt;/div&gt;
&lt;div&gt;
# ============ Filesystem Store Options ========================&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
# Directory that the Filesystem backend store&lt;/div&gt;
&lt;div&gt;
# writes image data to&lt;/div&gt;
&lt;div&gt;
filesystem_store_datadir = /var/lib/glance/images/&lt;/div&gt;
&lt;div&gt;
&amp;lt;/snip&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Create directory under glance as images:&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;mkdir /var/lib/glance/images&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Mount gluster volume on filesystem_store_datadir:&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;mount -t glusterfs&amp;nbsp;xx.yy.zz.183:/glance-vol /var/lib/glance/images&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Update /etc/fstab for persistent mount of glance volume across reboot.&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Installing openstack using packstack with --allinone option&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
# packstack --allinone --debug&lt;/div&gt;
&lt;div&gt;
Welcome to Installer setup utility&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Installing:&lt;/div&gt;
&lt;div&gt;
Clean Up... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Setting up ssh keys... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
OS support check... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding pre install manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding MySQL manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding QPID manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Keystone manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Glance Keystone manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Glance manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Cinder Keystone manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Installing dependencies for Cinder... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Checking if the Cinder server has a cinder-volumes vg...[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Cinder manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nova API manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nova Keystone manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nova Cert manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nova Conductor manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nova Compute manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nova Scheduler manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nova VNC Proxy manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nova Common manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Openstack Network-related Nova manifest entries...[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Quantum API manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Quantum Keystone manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Quantum L3 manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Quantum L2 Agent manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Quantum DHCP Agent manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Quantum Metadata Agent manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding OpenStack Client manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Horizon manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Swift Keystone manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Swift builder manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Swift proxy manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Swift storage manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Swift common manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Preparing servers... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nagios server manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding Nagios host manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Adding post install manifest entries... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Installing Dependencies... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Copying Puppet modules and manifests... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying Puppet manifests...&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_prescript.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_prescript.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_mysql.pp&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_qpid.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_mysql.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_qpid.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_keystone.pp&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_glance.pp&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_cinder.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_keystone.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_glance.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_cinder.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_api_nova.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_api_nova.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_nova.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_nova.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_quantum.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_quantum.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_osclient.pp&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_horizon.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_osclient.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_horizon.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_ring_swift.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_ring_swift.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_swift.pp&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_nagios.pp&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_nagios_nrpe.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_swift.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_nagios.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_nagios_nrpe.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ DONE ]&lt;/div&gt;
&lt;div&gt;
Applying&amp;nbsp;xx.yy.zz.146_postscript.pp&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.146_postscript.pp : &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ DONE ]&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;**** Installation completed successfully ******&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Verifying that glusterfs mount was successful&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
# &lt;i&gt;mount | grep gluster&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;/i&gt;&lt;br /&gt;
xx.yy.zz.183:/glance-vol on /var/lib/glance/images type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)&lt;/div&gt;
&lt;div&gt;
xx.yy.zz.183:cinder-vol on /var/lib/cinder/volumes/586c24173ac3ab5d1d43aed1f113d9f6 type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Verifying cinder volume is mounted on glusterfs volume&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
~(keystone_admin)]# &lt;i&gt;getfattr -d -etext -m. -n trusted.glusterfs.pathinfo /var/lib/cinder/volumes/586c24173ac3ab5d1d43aed1f113d9f6&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
getfattr: Removing leading &#39;/&#39; from absolute path names &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
# file: var/lib/cinder/volumes/586c24173ac3ab5d1d43aed1f113d9f6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
trusted.glusterfs.pathinfo=&quot;((&amp;lt;DISTRIBUTE:cinder-vol-dht&amp;gt; (&amp;lt;REPLICATE:cinder-vol-replicate-0&amp;gt; &amp;lt;POSIX(/rhs/brick1/cinder-vol):dhcpzz-183.shanks.com:/rhs/brick1/cinder-vol/&amp;gt; &amp;lt;POSIX(/rhs/brick1/cinder-&lt;br /&gt;
vol):dhcpzz-223.shanks.com:/rhs/brick1/cinder-vol/&amp;gt;) (&amp;lt;REPLICATE:cinder-vol-replicate-1&amp;gt; &amp;lt;POSIX(/rhs/brick2/cinder-vol):dhcpzz-223.shanks.com:/rhs/brick2/cinder-vol/&amp;gt; &amp;lt;POSIX(/rhs/brick2/&lt;br /&gt;
cinder-vol):dhcpzz-183.shanks.com:/rhs/brick2/cinder-vol/&amp;gt;)) (cinder-vol-dht-layout (cinder-vol-replicate-0 0 2147483646) (cinder-vol-replicate-1 2147483647 4294967295)))&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Verifying glance image is created on glusterfs volume&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp;~(keystone_admin)]# &lt;i&gt;glance image-create --name=&quot;test&quot; --is-public=true --container-format=ovf --disk-format=qcow2 &amp;lt; f17-x86_64-openstack-sda.qcow2&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
+------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| Property &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
+------------------+--------------------------------------+&lt;/div&gt;
&lt;div&gt;
| checksum &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 1f104b5667768964d5df8c4ad1d7cd27 &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| container_format | ovf &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| created_at &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2013-07-30T12:56:05 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| deleted &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| False &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| deleted_at &amp;nbsp; &amp;nbsp; &amp;nbsp; | None &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| disk_format &amp;nbsp; &amp;nbsp; &amp;nbsp;| qcow2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | a66213ee-1a76-4d4a-959d-5df3f8f320ac |&lt;/div&gt;
&lt;div&gt;
| is_public &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| True &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| min_disk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| min_ram &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | test &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| owner &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 84e2f0fac93d402287a8eb97b6ba9711 &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| protected &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| False &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 251985920 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
| status &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | active &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/div&gt;
&lt;div&gt;
| updated_at &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2013-07-30T12:56:49 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/div&gt;
&lt;div&gt;
+------------------+--------------------------------------+&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
~(keystone_admin)]# &lt;i&gt;ls -l /var/lib/glance/images/&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
total 246080&lt;/div&gt;
&lt;div&gt;
-rw-r-----. 1 glance glance 251985920 Jul 30 18:26 a66213ee-1a76-4d4a-959d-5df3f8f320ac&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
~(keystone_admin)]# &lt;i&gt;getfattr -d -etext -m. -n trusted.glusterfs.pathinfo /var/lib/glance/images/a66213ee-1a76-4d4a-959d-5df3f8f320ac&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
getfattr: Removing leading &#39;/&#39; from absolute path names &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # file: var/lib/glance/images/a66213ee-1a76-4d4a-959d-5df3f8f320ac&lt;/div&gt;
&lt;div&gt;
trusted.glusterfs.pathinfo=&quot;(&amp;lt;DISTRIBUTE:glance-vol-dht&amp;gt; (&amp;lt;REPLICATE:glance-vol-replicate-1&amp;gt; &amp;lt;POSIX(/rhs/brick4/glance-vol):dhcpzz-223.shanks.com:/rhs/brick4/glance-vol/a66213ee-1a76-4d4a-959d-5df3f&lt;/div&gt;
&lt;div&gt;
8f320ac&amp;gt; &amp;lt;POSIX(/rhs/brick4/glance-vol):dhcpzz-183.shanks.com:/rhs/brick4/glance-vol/a66213ee-1a76-4d4a-959d-5df3f8f320ac&amp;gt;))&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/5498549363163784039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/07/glusterfs-integration-with-openstack.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/5498549363163784039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/5498549363163784039'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/07/glusterfs-integration-with-openstack.html' title='GlusterFS integration with openstack-cinder and openstack-glance (Grizzly) using packstack --allinone'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-5313908003311974298</id><published>2013-01-24T21:55:00.000+05:30</published><updated>2013-01-24T21:57:57.313+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="virt qemu"/><title type='text'>virt-install example with qcow2 disks</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
qemu-img create -f qcow2 /home/vms/vm-disk/vm-disk.img 20G&lt;br /&gt;
qemu-img create -f qcow2 /home/vms/vm-disk/vm-1-disk.img 100G&lt;br /&gt;
qemu-img create -f qcow2 /home/vms/vm-disk/vm-2-disk.img 100G&lt;br /&gt;
qemu-img create -f qcow2 /home/vms/vm-disk/vm-3-disk.img 100G&lt;br /&gt;
qemu-img create -f qcow2 /home/vms/vm-disk/vm-4-disk.img 100G&lt;br /&gt;
&lt;br /&gt;
virt-install --connect=qemu:///system \&lt;br /&gt;
--network=bridge:br0 \&lt;br /&gt;
--extra-args=&quot;ks=http://kickstart-server.com/kickstart/20-virtio.ks console=tty0 console=ttyS0,115200&quot; \&lt;br /&gt;
--name vm-disk \&lt;br /&gt;
--disk path=&quot;/home/vms/vm-disk/vm-disk.img,device=disk,bus=virtio&quot; \&lt;br /&gt;
--disk path=&quot;/home/vms/vm-disk/vm-1-disk.img,device=disk,bus=virtio&quot; \&lt;br /&gt;
--disk path=&quot;/home/vms/vm-disk/vm-2-disk.img,device=disk,bus=virtio&quot; \&lt;br /&gt;
--disk path=&quot;/home/vms/vm-disk/vm-3-disk.img,device=disk,bus=virtio&quot; \&lt;br /&gt;
--disk path=&quot;/home/vms/vm-disk/vm-4-disk.img,device=disk,bus=virtio&quot; \&lt;br /&gt;
--ram 4096 \&lt;br /&gt;
--vcpus=4 \&lt;br /&gt;
--check-cpu \&lt;br /&gt;
--accelerate \&lt;br /&gt;
--location=http://OS-location.com/ \&lt;br /&gt;
--hvm \&lt;br /&gt;
--nographics&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/5313908003311974298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/01/virt-install-example-with-qcow2-disks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/5313908003311974298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/5313908003311974298'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/01/virt-install-example-with-qcow2-disks.html' title='virt-install example with qcow2 disks'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-2551931989148348026</id><published>2013-01-23T18:57:00.000+05:30</published><updated>2013-01-23T19:04:41.001+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="lvm"/><category scheme="http://www.blogger.com/atom/ns#" term="resize partition"/><title type='text'>Resize root partition online</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;# pvscan &lt;/b&gt;&lt;br /&gt;
&amp;nbsp; PV /dev/sda2&amp;nbsp;&amp;nbsp; VG vg_rhsgpsrv10&amp;nbsp;&amp;nbsp; lvm2 [29.32 GiB / 0&amp;nbsp;&amp;nbsp;&amp;nbsp; free]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# df -h&lt;/b&gt;&lt;br /&gt;
Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp; Used Avail Use% Mounted on&lt;br /&gt;
/dev/mapper/vg_rhsgpsrv10-lv_root&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.7G&amp;nbsp; 1.8G&amp;nbsp; 3.6G&amp;nbsp; 34% /&lt;br /&gt;
tmpfs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 24G&amp;nbsp;&amp;nbsp; 0% /dev/shm&lt;br /&gt;
/dev/sda1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 485M&amp;nbsp;&amp;nbsp; 38M&amp;nbsp; 422M&amp;nbsp;&amp;nbsp; 9% /boot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# fdisk -l | grep sdb&lt;/b&gt;&lt;br /&gt;
Disk /dev/sdb: 32.0 GB, 32017047552 bytes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# fdisk /dev/sdb &lt;/b&gt;&lt;br /&gt;
WARNING: DOS-compatible mode is deprecated. It&#39;s strongly recommended to&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch off the mode (command &#39;c&#39;) and change display units to&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sectors (command &#39;u&#39;).&lt;br /&gt;
Command (m for help): n&lt;br /&gt;
Command action&lt;br /&gt;
&amp;nbsp;&amp;nbsp; e&amp;nbsp;&amp;nbsp; extended&lt;br /&gt;
&amp;nbsp;&amp;nbsp; p&amp;nbsp;&amp;nbsp; primary partition (1-4)&lt;br /&gt;
p&lt;br /&gt;
Partition number (1-4): 1&lt;br /&gt;
First cylinder (1-3892, default 1): &lt;br /&gt;
Using default value 1&lt;br /&gt;
Last cylinder, +cylinders or +size{K,M,G} (1-3892, default 3892): &lt;br /&gt;
Using default value 3892&lt;br /&gt;
Command (m for help): w&lt;br /&gt;
The partition table has been altered!&lt;br /&gt;
Calling ioctl() to re-read partition table.&lt;br /&gt;
Syncing disks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# pvcreate /dev/sdb1 &lt;/b&gt;&lt;br /&gt;
&amp;nbsp; Physical volume &quot;/dev/sdb1&quot; successfully created&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# vgextend -v vg_rhsgpsrv10&amp;nbsp; /dev/sdb1 &lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Checking for volume group &quot;vg_rhsgpsrv10&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Archiving volume group &quot;vg_rhsgpsrv10&quot; metadata (seqno 3).&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Wiping cache of LVM-capable devices&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Adding physical volume &#39;/dev/sdb1&#39; to volume group &#39;vg_rhsgpsrv10&#39;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Volume group &quot;vg_rhsgpsrv10&quot; will be extended by 1 new physical volumes&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Creating volume group backup &quot;/etc/lvm/backup/vg_rhsgpsrv10&quot; (seqno 4).&lt;br /&gt;
&amp;nbsp; Volume group &quot;vg_rhsgpsrv10&quot; successfully extended&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# pvscan &lt;/b&gt;&lt;br /&gt;
&amp;nbsp; PV /dev/sda2&amp;nbsp;&amp;nbsp; VG vg_rhsgpsrv10&amp;nbsp;&amp;nbsp; lvm2 [29.32 GiB / 0&amp;nbsp;&amp;nbsp;&amp;nbsp; free]&lt;br /&gt;
&amp;nbsp; PV /dev/sdb1&amp;nbsp;&amp;nbsp; VG vg_rhsgpsrv10&amp;nbsp;&amp;nbsp; lvm2 [29.81 GiB / 29.81 GiB free]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# lvresize -r -L +29G /dev/mapper/vg_rhsgpsrv10-lv_root &lt;/b&gt;&lt;br /&gt;
&amp;nbsp; Extending logical volume lv_root to 34.70 GiB&lt;br /&gt;
&amp;nbsp; Logical volume lv_root successfully resized&lt;br /&gt;
resize2fs 1.41.12 (17-May-2010)&lt;br /&gt;
Filesystem at /dev/mapper/vg_rhsgpsrv10-lv_root is mounted on /; on-line resizing required&lt;br /&gt;
old desc_blocks = 1, new_desc_blocks = 3&lt;br /&gt;
Performing an on-line resize of /dev/mapper/vg_rhsgpsrv10-lv_root to 9096192 (4k) blocks.&lt;br /&gt;
The filesystem on /dev/mapper/vg_rhsgpsrv10-lv_root is now 9096192 blocks long.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# df -hT&lt;/b&gt;&lt;br /&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp; Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/vg_rhsgpsrv10-lv_root&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ext4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 35G&amp;nbsp; 1.9G&amp;nbsp;&amp;nbsp; 31G&amp;nbsp;&amp;nbsp; 6% /&lt;br /&gt;tmpfs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tmpfs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 24G&amp;nbsp;&amp;nbsp; 0% /dev/shm&lt;br /&gt;/dev/sda1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ext4&amp;nbsp;&amp;nbsp;&amp;nbsp; 485M&amp;nbsp;&amp;nbsp; 38M&amp;nbsp; 422M&amp;nbsp;&amp;nbsp; 9% /boot&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/2551931989148348026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2013/01/resize-root-partition-online.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/2551931989148348026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/2551931989148348026'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2013/01/resize-root-partition-online.html' title='Resize root partition online'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-4481375015623648115</id><published>2012-09-23T17:35:00.000+05:30</published><updated>2012-09-23T17:35:08.641+05:30</updated><title type='text'>GlusterFS: {path} or a prefix of it is already part of a volume </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
For the directory that was formerly part of a volume:&lt;br /&gt;

&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;setfattr -x trusted.glusterfs.volume-id $brick-path
setfattr -x trusted.gfid $brick-path
rm -rf $brick-path/.glusterfs&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/4481375015623648115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/09/glusterfs-path-or-prefix-of-it-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/4481375015623648115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/4481375015623648115'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/09/glusterfs-path-or-prefix-of-it-is.html' title='GlusterFS: {path} or a prefix of it is already part of a volume '/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-4168772682013120674</id><published>2012-08-07T12:16:00.002+05:30</published><updated>2012-08-07T12:16:54.485+05:30</updated><title type='text'>Remove Comments and Empty Lines With Grep</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;&lt;code&gt;$ grep -v -e ^# -e ^$ file.txt&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/4168772682013120674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/08/remove-comments-and-empty-lines-with.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/4168772682013120674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/4168772682013120674'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/08/remove-comments-and-empty-lines-with.html' title='Remove Comments and Empty Lines With Grep'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-2340181927676895535</id><published>2012-07-19T12:42:00.000+05:30</published><updated>2012-07-19T12:42:21.724+05:30</updated><title type='text'>Install Google Chrome with YUM on Fedora 17</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Create yum repository:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;cat /etc/yum.repos.d/google-chrome.repo &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;[google-chrome]&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;name=google-chrome&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;enabled=1&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;gpgcheck=1&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
shanks ~]$ &lt;i&gt;sudo yum install google-chrome-stable&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/2340181927676895535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/07/install-google-chrome-with-yum-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/2340181927676895535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/2340181927676895535'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/07/install-google-chrome-with-yum-on.html' title='Install Google Chrome with YUM on Fedora 17'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-1045847167125427544</id><published>2012-07-07T14:30:00.002+05:30</published><updated>2012-07-07T14:30:23.601+05:30</updated><title type='text'>Boot hangs at &quot;starting udev&quot; - Cannot use 2 vCPUs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;border: 0px; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px; outline: 0px; padding: 0px;&quot;&gt;
Try adding the following to your grub command line or /etc/grub.conf:&lt;/div&gt;
&lt;pre class=&quot;jive-pre&quot; style=&quot;background-image: url(http://communities.vmware.com/4.0.13/images/jive-bg-pre.gif); background-repeat: repeat repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-style: solid; border-width: 1px 1px 1px 2px; color: #333333; font-size: 1.2em; margin: 10px 20px; outline: 0px; overflow: auto; padding: 10px; width: auto;&quot;&gt;&lt;code class=&quot;jive-code&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 1em; margin: 0px; outline: 0px; padding: 0px;&quot;&gt;
clocksource=acpi_pm&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/1045847167125427544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/07/boot-hangs-at-starting-udev-cannot-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/1045847167125427544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/1045847167125427544'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/07/boot-hangs-at-starting-udev-cannot-use.html' title='Boot hangs at &quot;starting udev&quot; - Cannot use 2 vCPUs'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-391064697628482946</id><published>2012-06-29T16:04:00.000+05:30</published><updated>2012-06-29T16:04:02.958+05:30</updated><title type='text'>yum versionlock</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
versionlock plugin for YUM is for you to prevent YUM from updating the 
versions or &quot;lock the version&quot; of some selected packages.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;yum install yum-plugin-versionlock&lt;br /&gt;yum versionlock 389-ds-base{,-devel,-libs}&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This updates /etc/yum/pluginconf.d/versionlock.list file. Once this plugin is installed, every time when YUM
 starts, it checks for the existence of 
/etc/yum/pluginconf.d/versionlock.list file. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/391064697628482946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/06/yum-versionlock.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/391064697628482946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/391064697628482946'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/06/yum-versionlock.html' title='yum versionlock'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-5485936334278873677</id><published>2012-06-29T13:40:00.000+05:30</published><updated>2012-06-29T13:40:04.303+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora17"/><category scheme="http://www.blogger.com/atom/ns#" term="httpd"/><title type='text'>(28)No space left on device: Parent could not create lock file /etc/httpd/ipa Configuration Failed</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
[Fri Jun 29 03:46:59 2012] [crit] (28)No space left on device: Parent could not create lock file /etc/httpd/ipa&lt;br /&gt;Configuration Failed&lt;br /&gt;
&lt;br /&gt;
Above message was detected in /var/log/httpd/error_log and there was definitely enough space.&lt;br /&gt;
&lt;br /&gt;
Problem:  There were lots of semaphore arrays owned by apache.&lt;br /&gt;
&lt;b&gt;&lt;i&gt;# ipcs -s | grep apache&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Solution: &lt;b&gt;&lt;i&gt;for semId in $(ipcs -s | grep apache | cut -f 2 -d &#39; &#39;); do ipcrm -s $semId; done &lt;/i&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/5485936334278873677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/06/28no-space-left-on-device-parent-could.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/5485936334278873677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/5485936334278873677'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/06/28no-space-left-on-device-parent-could.html' title='(28)No space left on device: Parent could not create lock file /etc/httpd/ipa Configuration Failed'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-6517963343311914319</id><published>2012-06-08T01:13:00.000+05:30</published><updated>2012-06-08T01:13:47.750+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="fedora17"/><category scheme="http://www.blogger.com/atom/ns#" term="preupgrade"/><title type='text'>Fedora 16 to 17</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
For the first time ever with fingers crossed I used &quot;preupgrade&quot; to move from Fedora 16 to Fedora 17.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@shanks ~]# yum install preupgrade&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
[root@shanks ~]# preupgrade&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Follow the instructions and stand-by. The total time depends on the speed of your internet connection.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Once the preupgrade is done, it prompts you for a reboot.&lt;/li&gt;
&lt;li&gt;Select the &quot;upgrade&quot; option from the grub menu.&lt;/li&gt;
&lt;li&gt;The packages get installed&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
And Fedora 17 is ready!!! :) Wow!!! that was as smooth as a breeze.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/6517963343311914319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/06/fedora-16-to-17.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6517963343311914319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6517963343311914319'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/06/fedora-16-to-17.html' title='Fedora 16 to 17'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-6712699712323670266</id><published>2012-05-25T20:06:00.001+05:30</published><updated>2012-05-25T20:06:27.174+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="battery-action"/><category scheme="http://www.blogger.com/atom/ns#" term="Fedora"/><title type='text'>Suspend laptop on lid close in fedora</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre&gt;root@qemu$ gsettings list-schemas | grep -i power


root@qemu$ gsettings list-keys org.gnome.settings-daemon.plugins.power | grep batter
critical-battery-action
idle-dim-battery
lid-close-battery-action
sleep-display-battery
sleep-inactive-battery
sleep-inactive-battery-timeout
sleep-inactive-battery-type
root@qemu$ 


root@qemu$ gsettings get org.gnome.settings-daemon.plugins.power lid-close-battery-action
&#39;suspend&#39;
root@qemu$ 
&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/6712699712323670266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/05/suspend-laptop-on-lid-close-in-fedora.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6712699712323670266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6712699712323670266'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/05/suspend-laptop-on-lid-close-in-fedora.html' title='Suspend laptop on lid close in fedora'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-6343109110163506055</id><published>2012-05-03T20:00:00.001+05:30</published><updated>2012-05-03T20:00:48.309+05:30</updated><title type='text'>find files larger than 1GB</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;find . -type f -size +1G -exec ls -lht {} \;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/6343109110163506055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2012/05/find-files-larger-than-1gb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6343109110163506055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/6343109110163506055'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2012/05/find-files-larger-than-1gb.html' title='find files larger than 1GB'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-1394397160616777468</id><published>2011-11-25T19:07:00.002+05:30</published><updated>2011-11-25T19:07:29.070+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IPA winsync AD"/><title type='text'>No IPA winsync without &quot;surname&quot; in AD.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 17px; line-height: 27px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: arial, sans-serif; line-height: 15px;&quot;&gt;Nice:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: arial, sans-serif; line-height: 15px;&quot;&gt;&lt;br /&gt;
- Windows server LDAP schema has objectclass Person which does not have &#39;surname&#39; attribute as mandatory. I.e. you can have users without surnames.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: arial, sans-serif; line-height: 15px;&quot;&gt;&lt;br /&gt;
- RFC4519 defines Person object class that&amp;nbsp;&lt;b&gt;MUST&lt;/b&gt;&amp;nbsp;have &#39;sn&#39; attribute (surname). I.e. all traditional LDAP database persons must have surnames.&lt;br /&gt;
&lt;br /&gt;
As result, if you sync users between the two with, say, FreeIPA winsync plugin, those users without surnames will not be synced.&lt;br /&gt;
&lt;br /&gt;
No unnamed soldiers.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/1394397160616777468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2011/11/no-ipa-winsync-without-surname-in-ad.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/1394397160616777468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/1394397160616777468'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2011/11/no-ipa-winsync-without-surname-in-ad.html' title='No IPA winsync without &quot;surname&quot; in AD.'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-7645452479914684349</id><published>2011-09-15T15:26:00.001+05:30</published><updated>2011-09-15T15:27:20.772+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="Shell - Scrip(t)ips"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b style=&quot;color: blue;&quot;&gt;#!/bin/bash&lt;br /&gt;# Author: Gowrishankar Rajaiyan&lt;br /&gt;# Email: gowrishankar.rajaiyan@gmail.com&lt;br /&gt;# Date: Thu Sep 15 11:46:01 EDT 2011&lt;br /&gt;# Purpose: Script to check if IPv6 is supported in your OS.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
test -f /proc/net/if_inet6 &amp;amp;&amp;amp; echo &quot;Running kernel is IPv6 ready&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Running kernel is not IPv6 ready&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;
&lt;br /&gt;
lsmod |grep -w &#39;ipv6&#39; &amp;amp;&amp;amp; echo &quot;IPv6 module successfully loaded&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;IPv6 module is not loaded&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;execute: modprobe ipv6&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;
&lt;br /&gt;
/sbin/ifconfig -? 2&amp;gt;&amp;amp; 1|grep -qw &#39;inet6&#39; &amp;amp;&amp;amp; echo &quot;utility &#39;ifconfig&#39; is IPv6-ready&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;utility &#39;ifconfig&#39; is not IPv6-ready&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;
&lt;br /&gt;
/sbin/route -? 2&amp;gt;&amp;amp; 1|grep -qw &#39;inet6&#39; &amp;amp;&amp;amp; echo &quot;utility &#39;route&#39; is IPv6-ready&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;utility &#39;route&#39; is not IPv6-ready&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;
&lt;br /&gt;
/sbin/ip 2&amp;gt;&amp;amp;1 |grep -qw &#39;inet6&#39; &amp;amp;&amp;amp; echo &quot;utility &#39;ip&#39; is IPv6-ready&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;utility &#39;ip&#39; is not IPv6-ready&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: blue;&quot;&gt;# EOF&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/7645452479914684349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2011/09/binbash-author-gowrishankar-rajaiyan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/7645452479914684349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/7645452479914684349'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2011/09/binbash-author-gowrishankar-rajaiyan.html' title=''/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-8882541518900700180</id><published>2011-09-15T15:14:00.000+05:30</published><updated>2011-09-15T15:14:05.573+05:30</updated><title type='text'>URL for IPv6 testing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.kame.net/&quot; target=&quot;_top&quot;&gt;http://www.kame.net/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If the turtle on this page is animated, the connection is via IPv6, otherwise the turtle is static.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/8882541518900700180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2011/09/url-for-ipv6-testing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/8882541518900700180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/8882541518900700180'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2011/09/url-for-ipv6-testing.html' title='URL for IPv6 testing'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-7370512183871331731</id><published>2011-08-29T16:19:00.000+05:30</published><updated>2011-08-29T16:19:50.719+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="Perl - Scrip(t)ips"/><title type='text'>Memory utilization chart using sar and perl.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: black; font-family: &#39;courier new&#39;, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Author: Vikrant Telkar.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Memory utilization chart using sar -r and perl script.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Required Perl module:-&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;use Net::SSH::Expect;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;use GD::Graph::lines;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Steps:-&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;1.&lt;/b&gt;&amp;nbsp;Copy following code in cpugraph.html file and put it under apache RootDocument so that you can access it through webbrowser.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;cpugraph.html:-&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Test&amp;lt;/&lt;wbr&gt;&lt;/wbr&gt;title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.19120&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;meta content=&quot;text/html; charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;body bgcolor=&quot;#ffffff&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;p&amp;gt;Please enter userid on server, hostname(or IPaddress) and its password to&amp;nbsp;view graphical view of memory utilization (sar -r)&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;form method=&quot;post&quot; name=&quot;form&quot; action=&quot;/cgi-bin/&lt;a href=&quot;http://connect_to_server.pl/&quot; target=&quot;_blank&quot;&gt;connect_to_&lt;wbr&gt;&lt;/wbr&gt;server.pl&lt;/a&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;target=_top&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;p&amp;gt;userid&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;&lt;wbr&gt;&lt;/wbr&gt;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;&lt;wbr&gt;&lt;/wbr&gt;nbsp; &amp;lt;input&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;name=userid&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;p&amp;gt;hostname&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;input name=&quot;hostname&quot;&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;p&amp;gt;password&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;input type=&quot;password&quot; name=&quot;pwd&quot;&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;p&amp;gt;&amp;lt;input value=&quot;Submit&quot; type=&quot;submit&quot; name=&quot;submit&quot;&amp;gt;&amp;lt;input value=&quot;Reset&quot; type=&quot;reset&quot; name=&quot;reset&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;lt;/form&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&amp;nbsp;Install&amp;nbsp;&lt;b&gt;Net::SSH::Expect&lt;/b&gt;&amp;nbsp;Perl moudule so that you can login to required server using usreid and password which you will mentioned in cpugraph.html page&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;perl -MCPAN -e shell&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;cpan&amp;gt; install Net::SSH::Expect&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;3.&lt;/b&gt;&amp;nbsp;Install use&amp;nbsp;&lt;b&gt;GD::Graph&lt;/b&gt;&amp;nbsp;module which will genrate png image which will give graphical presentation of &quot;sar -r&quot; command.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;perl -MCPAN -e shell&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;cpan&amp;gt; install GD::Graph&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;4. Once both the perl modules are installed you are half done as these perl modules play major role. Now copy following code into&amp;nbsp;&lt;a href=&quot;http://connect_to_server.pl/&quot; target=&quot;_blank&quot;&gt;connect_to_server.pl&lt;/a&gt;&amp;nbsp;script, put it under /var/www/cgi-bin/ directory and make it excutetable.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;connect_to_server.pl:-&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;#!/usr/bin/perl&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Author: Vikrant Telkar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Purpose: To connect to remote server and generate report.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;div&gt;# Copyright (C) &amp;lt;2011&amp;gt; &amp;nbsp;&amp;lt;Vikrant Telkar&amp;gt;&lt;/div&gt;&lt;div&gt;#&lt;/div&gt;&lt;div&gt;# This program is free software: you can redistribute it and/or&lt;/div&gt;&lt;div&gt;# modify&amp;nbsp;it under the terms of the GNU General Public License&amp;nbsp;&lt;/div&gt;&lt;div&gt;# as published by&amp;nbsp;the Free Software Foundation, either version 3&lt;/div&gt;&lt;div&gt;# of the License, or&amp;nbsp;&amp;nbsp;(at your option) any later version.&lt;/div&gt;&lt;div&gt;#&lt;/div&gt;&lt;div&gt;# This program is distributed in the hope that it will be useful,&lt;/div&gt;&lt;div&gt;#&amp;nbsp;but WITHOUT ANY WARRANTY; without even the implied&lt;/div&gt;&lt;div&gt;# warranty of&amp;nbsp;MERCHANTABILITY or FITNESS FOR A&amp;nbsp;&lt;/div&gt;&lt;div&gt;# PARTICULAR PURPOSE. &amp;nbsp;See the&amp;nbsp;GNU General Public&amp;nbsp;&lt;/div&gt;&lt;div&gt;# License for more details.&lt;/div&gt;&lt;div&gt;# You should have received a copy of the GNU General Public&amp;nbsp;&lt;/div&gt;&lt;div&gt;# License&amp;nbsp;along with this program. &amp;nbsp;If not, see&amp;nbsp;&lt;/div&gt;&lt;div&gt;# &amp;lt;http://www.gnu.org/licenses/&amp;gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;use Net::SSH::Expect;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;use CGI &#39;:standard&#39;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; local ($buffer, @pairs, $pair, $name, $value, %FORM);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; # Read in text&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; $ENV{&#39;REQUEST_METHOD&#39;} =~ tr/a-z/A-Z/;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; if ($ENV{&#39;REQUEST_METHOD&#39;} eq &quot;POST&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; read(STDIN, $buffer, $ENV{&#39;CONTENT_LENGTH&#39;});&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; }else {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $buffer = $ENV{&#39;QUERY_STRING&#39;};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; # Split information into name/value pairs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; @pairs = split(/&amp;amp;/, $buffer);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; foreach $pair (@pairs)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ($name, $value) = split(/=/, $pair);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $value =~ tr/+/ /;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $value =~ s/%(..)/pack(&quot;C&quot;, hex($1))/eg;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $FORM{$name} = $value;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;#hostname, userid and password extracted from webpage.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;my $HOST = $FORM{hostname};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;my $USER = $FORM{userid};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;my $PWD = $FORM{pwd};&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;open OUT, &quot;&amp;gt; /var/www/cgi-bin/out.txt&quot; or dir $!;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; my $ssh = Net::SSH::Expect-&amp;gt;new (&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; host =&amp;gt; &quot;$HOST&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; password=&amp;gt; &quot;$PWD&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user =&amp;gt; &quot;$USER&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raw_pty =&amp;gt; 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;#Connect to server&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ssh-&amp;gt;login();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;my $sar_r = $ssh-&amp;gt;exec(&quot;sar -r &quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;Content-type:text/html\r\n\r\&lt;wbr&gt;&lt;/wbr&gt;n&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;&amp;lt;html&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;&amp;lt;head&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;&amp;lt;title&amp;gt;Hello - Second CGI Program&amp;lt;/title&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;&amp;lt;/head&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;&amp;lt;body&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;#Print output of sar -r in OUT file&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &amp;nbsp;OUT $sar_r;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;&amp;lt;meta http-equiv=&#39;Refresh&#39; content=&#39;5;url=&lt;a href=&quot;http://3.239.40.100/cgi-bin/cpugraph.pl&quot; target=&quot;_blank&quot;&gt;http://webserver/cgi-bin/cpugraph.pl&lt;/a&gt;&#39; /&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;&amp;lt;/body&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;&amp;lt;/html&amp;gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;5.&lt;/b&gt;&amp;nbsp;create out.txt file under /var/www/cgi-bin directory and give appropriate permission so that create in step 4 should be able to write and read the file.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;6.&lt;/b&gt;&amp;nbsp;So far we connected to server of which we want memory utilization and collected the &quot;sar -r&quot; data also. We in this step will draw graph using sar -r output. So copy following code in&amp;nbsp;cpugraph.pl&amp;nbsp;script, make it excuteable and put it under /var/www/cgi-bin/ directory.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;cpugraph.pl&lt;/b&gt;&amp;nbsp;:-&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;#!/usr/bin/perl -w&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Author:- Vikrant Telkar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Purpose: To connect to remote server and generate report.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;div&gt;# Copyright (C) &amp;lt;2011&amp;gt; &amp;nbsp;&amp;lt;Vikrant Telkar&amp;gt;&lt;/div&gt;&lt;div&gt;#&lt;/div&gt;&lt;div&gt;# This program is free software: you can redistribute it and/or&lt;/div&gt;&lt;div&gt;# modify&amp;nbsp;it under the terms of the GNU General Public License&amp;nbsp;&lt;/div&gt;&lt;div&gt;# as published by&amp;nbsp;the Free Software Foundation, either version 3&lt;/div&gt;&lt;div&gt;# of the License, or&amp;nbsp;&amp;nbsp;(at your option) any later version.&lt;/div&gt;&lt;div&gt;#&lt;/div&gt;&lt;div&gt;# This program is distributed in the hope that it will be useful,&lt;/div&gt;&lt;div&gt;#&amp;nbsp;but WITHOUT ANY WARRANTY; without even the implied&lt;/div&gt;&lt;div&gt;# warranty of&amp;nbsp;MERCHANTABILITY or FITNESS FOR A&amp;nbsp;&lt;/div&gt;&lt;div&gt;# PARTICULAR PURPOSE. &amp;nbsp;See the&amp;nbsp;GNU General Public&amp;nbsp;&lt;/div&gt;&lt;div&gt;# License for more details.&lt;/div&gt;&lt;div&gt;# You should have received a copy of the GNU General Public&amp;nbsp;&lt;/div&gt;&lt;div&gt;# License&amp;nbsp;along with this program. &amp;nbsp;If not, see&amp;nbsp;&lt;/div&gt;&lt;div&gt;# &amp;lt;http://www.gnu.org/licenses/&amp;gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Requirement:- This script requires GD::Graph module to be install.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# How to run:- Start your apache server with cgi-bin module.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Save this file in /var/www/cgi-bin directory with&amp;nbsp;graph.pl&amp;nbsp;file&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# extension and access this file as http://localhost/cgi-bin/graph.pl&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;#use CGI &#39;:standard&#39;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;use GD::Graph::lines;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;use GD::Graph::hbars;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;use strict;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;my (@data,@time,@utl) ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;my $i = 0 ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;open FILE, &quot;cat /var/www/cgi-bin/out.txt |&quot; || die $!;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Both the arrays should same number of entries.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;while(&amp;lt;FILE&amp;gt;) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;next if($_ =~ /^\D/);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;next if($_ =~ m/@/);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;my @word = split(/\s+/, $_ );&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;next if ($word[5] =~ m/^%/);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;$time[$i] = $word[0] ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;$utl[$i] = $word[4] ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;$i++ ;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;@data = ([@time], [@utl]);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;my $mygraph = GD::Graph::lines-&amp;gt;new(1200, 600);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;$mygraph-&amp;gt;set(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;y_label =&amp;gt; &#39;Memory Utilization in percentage&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;x_label =&amp;gt; &#39;Time&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;title =&amp;gt; &#39;Memory Utilization chart&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Draw datasets in &#39;solid&#39;, &#39;dashed&#39; and &#39;dotted-dashed&#39; lines&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;line_types =&amp;gt; [1, 2, 4],&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Set the thickness of line&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;line_width =&amp;gt; 2,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;# Set colors for datasets&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;dclrs =&amp;gt; [&#39;red&#39;],&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;x_label_skip =&amp;gt; 3,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;show_values =&amp;gt; 1,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;values_format =&amp;gt; &quot;%55555f&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;) or warn $mygraph-&amp;gt;error;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;$mygraph-&amp;gt;set(&#39;x_labels_&lt;wbr&gt;&lt;/wbr&gt;vertical&#39;=&amp;gt; 1);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;$mygraph-&amp;gt;set_legend_font(GD::&lt;wbr&gt;&lt;/wbr&gt;gdMediumBoldFont);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;$mygraph-&amp;gt;set_legend(&#39;Sar Output&#39;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;my $myimage = $mygraph-&amp;gt;plot(\@data) or die $mygraph-&amp;gt;error;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print &quot;Content-type: image/png\n\n&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;print $myimage-&amp;gt;png;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;7. Now last and best step. excute the script.&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://servername/cpugraph.html&quot; target=&quot;_blank&quot;&gt;http://servername/cpugraph.&lt;wbr&gt;&lt;/wbr&gt;html&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Note:-&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;1. Make sure you have install perl_mod.so to excute perl script with apache.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;2. Make sure perl scripts are excutelable and all scripts are under proper path.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;3. Make sure out.txt file is read and write by apache or webserver user.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #00cc00; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/7370512183871331731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2011/08/memory-utilization-chart-using-sar-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/7370512183871331731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/7370512183871331731'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2011/08/memory-utilization-chart-using-sar-and.html' title='Memory utilization chart using sar and perl.'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1270313629955347900.post-7118717670905872053</id><published>2011-08-19T03:25:00.002+05:30</published><updated>2011-08-19T03:25:55.494+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Command tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Fedora"/><title type='text'>Permanently delete files in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;jive-blog-post-subject&quot;&gt;&lt;div class=&quot;jive-blog-post-subject-header jive-blog-post-subject-header-withavatar&quot;&gt;&lt;div&gt;&lt;div class=&quot;jive-blog-post-subject-stats&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;jive-blog-post-body&quot;&gt;                     &lt;div class=&quot;jive-blog-post-message&quot;&gt;                          &lt;div class=&quot;jive-rendered-content&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;how to delete a file in linux securely and permanently, so it can never be recovered?&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;height: 8pt; min-height: 8pt; padding: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;strong style=&quot;font-size: 14pt;&quot;&gt;&lt;em&gt;$ yum install srm&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;font-size: 14pt;&quot;&gt;&lt;em&gt;$ srm myfile.txt&lt;/em&gt;&lt;em&gt;&lt;br /&gt;
&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div style=&quot;height: 8pt; min-height: 8pt; padding: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;srm removes each specified file by overwriting, renaming, and truncating it before unlinking.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 14pt;&quot;&gt;This prevents other people from undeleting or recovering any information about the file from the command line. &lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;height: 8pt; min-height: 8pt; padding: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;Instead  of just overwriting your files with random data, it uses a special  process – a combination of random data, zeros, and special values  developed by cryptographer Peter Gutmann – to really, really make sure  your files are irrecoverable.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gsr-linux.blogspot.com/feeds/7118717670905872053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gsr-linux.blogspot.com/2011/08/permanently-delete-files-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/7118717670905872053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1270313629955347900/posts/default/7118717670905872053'/><link rel='alternate' type='text/html' href='http://gsr-linux.blogspot.com/2011/08/permanently-delete-files-in-linux.html' title='Permanently delete files in Linux'/><author><name>shanks</name><uri>http://www.blogger.com/profile/17499183476510376978</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Fb9TiJl5e03NqsSQt1Ku2HAB_bOnSUYVt5y-t-fz95zPpO69J-c3yL7RQqmMOZSlMZGu1Um8sxM6-JS5-YnCojrPjPqhnWF1mMdIRu-YCLoV_naaTdXDv45J08y4rA/s220/14022010219.jpg'/></author><thr:total>0</thr:total></entry></feed>