<?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: dd command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737694#M387002</link>
    <description>unmounted lvol01 means no running system there.&lt;BR /&gt;can you issue the command:&lt;BR /&gt;# bdf&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Jan 2011 07:38:36 GMT</pubDate>
    <dc:creator>Hakki Aydin Ucar</dc:creator>
    <dc:date>2011-01-13T07:38:36Z</dc:date>
    <item>
      <title>dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737690#M386998</link>
      <description>Hi,&lt;BR /&gt;I use dd command to copy file system, &lt;BR /&gt;why it is successful to run dd when file system is un-mount, but file system is mount that dd is no effect, why? Thanks!</description>
      <pubDate>Thu, 13 Jan 2011 06:43:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737690#M386998</guid>
      <dc:creator>study unix</dc:creator>
      <dc:date>2011-01-13T06:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737691#M386999</link>
      <description>This is not really true, but if unmounted there are no changes possible during the copy.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IMHO there are better methods for such copy (without knowing your reason for doing this).</description>
      <pubDate>Thu, 13 Jan 2011 06:50:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737691#M386999</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2011-01-13T06:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737692#M387000</link>
      <description>I am not sure why you used "dd" for this&lt;BR /&gt; why didn`t you created a mirror copy or used&lt;BR /&gt; a backup utility to do so.&lt;BR /&gt;&lt;BR /&gt; Can you please share what exactly you want to&lt;BR /&gt; achieve.&lt;BR /&gt;&lt;BR /&gt; Thanks&lt;BR /&gt;&lt;BR /&gt; Manix</description>
      <pubDate>Thu, 13 Jan 2011 06:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737692#M387000</guid>
      <dc:creator>Manix</dc:creator>
      <dc:date>2011-01-13T06:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737693#M387001</link>
      <description>HI,&lt;BR /&gt;thanks for your response!&lt;BR /&gt;I only need copy the whole logical volume to another logical volume, the same output as below between mount and un-mount file system, but it uses bdf to indentify that is sucessfully to complete "dd" for un-mount system &lt;BR /&gt; # dd if=/dev/vg01/rlv01 of=/dev/vg02/rlv02 bs=1024&lt;BR /&gt;&lt;BR /&gt;409600+0 records in&lt;BR /&gt;409600+0 records out&lt;BR /&gt;&lt;BR /&gt;Another question, when bs=512 found error,why?&lt;BR /&gt;# dd if=/dev/vg01/rlv01 of=/dev/vg02/rlv02 bs=512&lt;BR /&gt;dd: /dev/vg01/rlv01 Use a blocksize &amp;gt;= the logical block size 1024&lt;BR /&gt;root@bandao:/&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Jan 2011 07:29:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737693#M387001</guid>
      <dc:creator>study unix</dc:creator>
      <dc:date>2011-01-13T07:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737694#M387002</link>
      <description>unmounted lvol01 means no running system there.&lt;BR /&gt;can you issue the command:&lt;BR /&gt;# bdf&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Jan 2011 07:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737694#M387002</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-01-13T07:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737695#M387003</link>
      <description>Hi,&lt;BR /&gt;bdf output as below, &lt;BR /&gt;# bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    1048576  235760  806592   23% /&lt;BR /&gt;/dev/vg00/lvol1    1835008  183184 1639008   10% /stand&lt;BR /&gt;/dev/vg00/lvol8    4915200 1305672 3583744   27% /var&lt;BR /&gt;/dev/vg00/lvol7    8388608 3038968 5307920   36% /usr&lt;BR /&gt;/dev/vg00/lvol6    1048576   20848 1019704    2% /tmp&lt;BR /&gt;/dev/vg00/lvol5    16007168 4612880 11305352   29% /opt&lt;BR /&gt;/dev/vg00/lvol4    8388608   21064 8302176    0% /home&lt;BR /&gt;/dev/vg01/lv01      409600    2384  381767    1% /test01&lt;BR /&gt;/dev/vg02/lv02      409600    2384  381767    1% /test02</description>
      <pubDate>Thu, 13 Jan 2011 07:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737695#M387003</guid>
      <dc:creator>study unix</dc:creator>
      <dc:date>2011-01-13T07:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737696#M387004</link>
      <description>&lt;P&gt;&lt;BR /&gt;I would expect that it's because the LVM block size is 1K. Even though it's a raw volume, it's *still* an LVM controlled device &amp;amp; is an LV in a VG. It just has no filesystem on it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do a man scsi_disk. It will explain that the smallest possible I/O quantity is one logical block. That value is set by the value BLKDEV_IOSIZE which must be &amp;gt;= DEV_BSIZE and &amp;lt;= MAXBSIZE. DEV_BSIZE in /usr/include/sys/param.h is defined as 1024 and that is your answer. Man 7 disk for more details. Remember, logical volume I/O whether conventional LVM or VxVM must ultimately be passed on the to underlying disk I/O routines and thus SCSI I/O defines the limits.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/LVM-and-VxVM/cannot-write-chunk-less-than-1024-bytes-into-raw-veritas-volume/m-p/3325544#M21178" target="_blank"&gt;http://h30499.www3.hp.com/t5/LVM-and-VxVM/cannot-write-chunk-less-than-1024-bytes-into-raw-veritas-volume/m-p/3325544#M21178&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 17:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737696#M387004</guid>
      <dc:creator>Manix</dc:creator>
      <dc:date>2011-11-10T17:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737697#M387005</link>
      <description>HI Manix,&lt;BR /&gt;You are right,and find it from param.h,&lt;BR /&gt;but if you can explain when I use dd for mount and un-mount the same file system separately ,and then it uses bdf the outupt is different, why ? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# grep DEV_BSIZE param.h&lt;BR /&gt;#define BSIZE   DEV_BSIZE&lt;BR /&gt; * Note that the blocked devices are assumed to have DEV_BSIZE&lt;BR /&gt; *      DEV_BSIZE &amp;lt;= BLKDEV_IOSIZE &amp;lt;= MAXBSIZE&lt;BR /&gt;#ifndef DEV_BSIZE&lt;BR /&gt;#define DEV_BSIZE       1024&lt;BR /&gt;#define DEV_BSHIFT      10              /* log2(DEV_BSIZE) */&lt;BR /&gt;#define DEV_BMASK       (DEV_BSIZE-1)   /* For doing modulo functions */&lt;BR /&gt;#endif /* DEV_BSIZE */&lt;BR /&gt;#  define btodb(bytes)                  /* calculates (bytes / DEV_BSIZE) */ \&lt;BR /&gt;# define dbtob(db)                      /* calculates (db * DEV_BSIZE) */ \&lt;BR /&gt;#  define btodb(bytes)                  /* calculates (bytes / DEV_BSIZE) */ \&lt;BR /&gt;# define dbtob(db)                      /* calculates (db * DEV_BSIZE) */ \&lt;BR /&gt;        (((uint64_t)(bytes) + (DEV_BSIZE-1)) &amp;gt;&amp;gt; DEV_BSHIFT) : \&lt;BR /&gt;        (unsigned)(((uint64_t)(unsigned)(bytes) + (DEV_BSIZE-1)) &amp;gt;&amp;gt; DEV_BSHIFT))&lt;BR /&gt;        (((unsigned)(bytes) + (DEV_BSIZE-1)) &amp;gt;&amp;gt; DEV_BSHIFT)&lt;BR /&gt; * just use DEV_BSIZE.&lt;BR /&gt;#define bdbtofsb(bn)    ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE))</description>
      <pubDate>Fri, 14 Jan 2011 01:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dd-command/m-p/4737697#M387005</guid>
      <dc:creator>study unix</dc:creator>
      <dc:date>2011-01-14T01:56:50Z</dc:date>
    </item>
  </channel>
</rss>

