<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RAW devices in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567334#M60797</link>
    <description>admin1979,&lt;BR /&gt;&lt;BR /&gt;Your post does not really portray much what is it you want us to do or enlighten you with.&lt;BR /&gt;&lt;BR /&gt;I have some inkling however so here it goes:&lt;BR /&gt;&lt;BR /&gt;You can simulate the above (I think) using one machine. You can create a "raw file" to simulate you have a raw disk:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of /somepath/rawdisk bs=1024k count=1024&lt;BR /&gt;&lt;BR /&gt;Then you can simulate writing code to do a dual or multinode r/w access on the same file.  Am not 100% sure thiugh if it is good enough simulation of a shared storage.&lt;BR /&gt;&lt;BR /&gt;BUT, if you have a decent enough PC with say 4 GB of Memory, you can have your hown simulated SAN/shared storage environmet cum Laboratory.&lt;BR /&gt;&lt;BR /&gt;- Install LINUX&lt;BR /&gt;- Install your favourite virtualization -- vMware, KVM or VBOX/XEN&lt;BR /&gt;- Carve up 3 Virtual Sdervers: an OpenFiler NAS, 2 Linux Virtual Servers&lt;BR /&gt;- Your OpenFIlerNAS will provide iSCSI storage to your 2 Linux Virtual Servers&lt;BR /&gt;&lt;BR /&gt;Then you can have a truly shaerd storage environment for your cluster adventures...&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 18 Jun 2010 13:42:13 GMT</pubDate>
    <dc:creator>Alzhy</dc:creator>
    <dc:date>2010-06-18T13:42:13Z</dc:date>
    <item>
      <title>RAW devices</title>
      <link>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567331#M60794</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;We are suppose to write a C program wherein,&lt;BR /&gt;&lt;BR /&gt;in the setup of 2 hosts with shared disks array, we have following requirement.&lt;BR /&gt;&lt;BR /&gt;The program should take host number ( 1 or 2 ) , device name as input parameters.&lt;BR /&gt;&lt;BR /&gt;In the first step :&lt;BR /&gt;&lt;BR /&gt;The program should write the current timestamp to the first or second block (2k) of the raw device. &lt;BR /&gt;Please note that writes to a raw device need to be aligned to sector borders an need to be in 512 byte chunks in aligned memory. &lt;BR /&gt;(The dd command can not be used for testing unfortunately since it "does not currently align its buffers correctly and so cannot be used on raw devices.") (man 8 raw).&lt;BR /&gt;&lt;BR /&gt;In the second step :&lt;BR /&gt;create a loop to execute the following every second:&lt;BR /&gt;- write a current timestamp&lt;BR /&gt;- read and output the current timestamp written by the other node.&lt;BR /&gt;&lt;BR /&gt;Please excuse as I am a newbie.&lt;BR /&gt;&lt;BR /&gt;Any response would be appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanx,&lt;BR /&gt;Admin</description>
      <pubDate>Wed, 20 Jan 2010 07:01:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567331#M60794</guid>
      <dc:creator>admin1979</dc:creator>
      <dc:date>2010-01-20T07:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: RAW devices</title>
      <link>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567332#M60795</link>
      <description>Looks like you're on a cluster programming course, and have received the first introductory exercise. &lt;BR /&gt;&lt;BR /&gt;It seems to me you're expected to already have a basic/intermediate level understanding of programming in general, and the C programming language should be familiar to you.&lt;BR /&gt;&lt;BR /&gt;There does not seem to be anything indicating that you might have solved at least a part of the exercise on your own. You also make the excuse of being a newbie. The overall feel is that you've just chosen a programming course at random, and are just now discovering that you're bitten off way more than you can chew.&lt;BR /&gt;&lt;BR /&gt;If that's the case, you should go to talk with your teacher/lecturer and apologize for choosing a course that is beyond your current level of programming skills. You might ask him/her to recommend a suitable programming course for you: he/she can probably verify your skill level by a few quick questions.&lt;BR /&gt;&lt;BR /&gt;If you've never done any programming in any language, learning the fundamentals is a major effort in itself. As long as your understanding of the basics is incomplete, you will miss important details in the lectures of your current course. &lt;BR /&gt;&lt;BR /&gt;If you have other people do the exercises for you, you will also lose the effect of solving them yourself. &lt;BR /&gt;&lt;BR /&gt;By then, you've lost just about all that makes being on a programming course more effective than just studying alone from a book - so why are you on that course at all?&lt;BR /&gt;&lt;BR /&gt;A good programming course will also include a test or two, where other people cannot help you. If you have other people solving your exercises for you and then go to a test, you're setting yourself up for a failure.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 20 Jan 2010 08:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567332#M60795</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-01-20T08:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: RAW devices</title>
      <link>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567333#M60796</link>
      <description>I know the world is full of arrogant people. Now I believe it.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2010 13:01:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567333#M60796</guid>
      <dc:creator>admin1979</dc:creator>
      <dc:date>2010-06-18T13:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: RAW devices</title>
      <link>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567334#M60797</link>
      <description>admin1979,&lt;BR /&gt;&lt;BR /&gt;Your post does not really portray much what is it you want us to do or enlighten you with.&lt;BR /&gt;&lt;BR /&gt;I have some inkling however so here it goes:&lt;BR /&gt;&lt;BR /&gt;You can simulate the above (I think) using one machine. You can create a "raw file" to simulate you have a raw disk:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of /somepath/rawdisk bs=1024k count=1024&lt;BR /&gt;&lt;BR /&gt;Then you can simulate writing code to do a dual or multinode r/w access on the same file.  Am not 100% sure thiugh if it is good enough simulation of a shared storage.&lt;BR /&gt;&lt;BR /&gt;BUT, if you have a decent enough PC with say 4 GB of Memory, you can have your hown simulated SAN/shared storage environmet cum Laboratory.&lt;BR /&gt;&lt;BR /&gt;- Install LINUX&lt;BR /&gt;- Install your favourite virtualization -- vMware, KVM or VBOX/XEN&lt;BR /&gt;- Carve up 3 Virtual Sdervers: an OpenFiler NAS, 2 Linux Virtual Servers&lt;BR /&gt;- Your OpenFIlerNAS will provide iSCSI storage to your 2 Linux Virtual Servers&lt;BR /&gt;&lt;BR /&gt;Then you can have a truly shaerd storage environment for your cluster adventures...&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2010 13:42:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/raw-devices/m-p/4567334#M60797</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2010-06-18T13:42:13Z</dc:date>
    </item>
  </channel>
</rss>

