<?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: INIT/SHADOW vs INIT off by one error? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047578#M86085</link>
    <description>Jon,&lt;BR /&gt;&lt;BR /&gt;I've now repeated your test on V8.2 and ... the error is still there !&lt;BR /&gt;&lt;BR /&gt;$ ld create disk1.dsk/size=10000/contig/nobackup&lt;BR /&gt;$ ld create disk2.dsk/size=11000/contig/nobackup&lt;BR /&gt;$ ld conn disk1.dsk lda1/share&lt;BR /&gt;$ ld conn disk2.dsk lda2/share&lt;BR /&gt;$ init/shad=(lda1:,lda2:)/erase itrc/cluster=1/system/index=begin&lt;BR /&gt;%INIT-I-LIMITCHANGED, value for /LIMIT increased to 1048576&lt;BR /&gt;%INIT-I-LIMITCHANGED, value for /LIMIT increased to 1048576&lt;BR /&gt;$ mou/sys/noassist dsa999: /shadow=($1$lda1:,$1$lda2:) itrc&lt;BR /&gt;%MOUNT-I-MOUNTED, ITRC mounted on _DSA999:&lt;BR /&gt;%MOUNT-I-SHDWMEMSUCC, _$1$LDA1: (AXPVMS) is now a valid member of the shadow set&lt;BR /&gt;%MOUNT-I-SHDWMEMSUCC, _$1$LDA2: (AXPVMS) is now a valid member of the shadow set&lt;BR /&gt;$ sho dev/full dsa999&lt;BR /&gt;&lt;BR /&gt;Disk DSA999:, device type Foreign disk type 1, is online, mounted, file-oriented&lt;BR /&gt;    device, shareable, available to cluster, error logging is enabled, device&lt;BR /&gt;    supports bitmaps (no bitmaps active).&lt;BR /&gt;&lt;BR /&gt;    Error count                    0    Operations completed                 25&lt;BR /&gt;    Owner process                 ""    Owner UIC                      [SYSTEM]&lt;BR /&gt;    Owner process ID        00000000    Dev Prot            S:RWPL,O:RWPL,G:R,W&lt;BR /&gt;    Reference count                1    Default buffer size                 512&lt;BR /&gt;    Total blocks               10000    Sectors per track                    10&lt;BR /&gt;    Total cylinders              100    Tracks per cylinder                  10&lt;BR /&gt;    Logical Volume Size         9999    Expansion Size Limit            1048576&lt;BR /&gt;&lt;BR /&gt;So this problem is introduced by some combination and values of qualifiers:&lt;BR /&gt;&lt;BR /&gt;If I just do an INIT/SHADOW=(LDA1:), then I get the correct Logical Volume Size !&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
    <pubDate>Wed, 01 Aug 2007 05:35:51 GMT</pubDate>
    <dc:creator>Volker Halle</dc:creator>
    <dc:date>2007-08-01T05:35:51Z</dc:date>
    <item>
      <title>INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047571#M86078</link>
      <description>I am using Alpha VMS 7.3-2 with updates current as of May 6, 2007.&lt;BR /&gt;&lt;BR /&gt;I was initializing two devices to be used as a HBVS shadowset, and used the following command:&lt;BR /&gt;&lt;BR /&gt;$ init /shadow=($4$dkc207:,$1$dga3207:)/erase/system/header=1000/cluster=8/limit/index=begin/user=ils/own=[1,1] syslog_22&lt;BR /&gt;&lt;BR /&gt;$4$dkc207: is an RZ29B (4.3 GB) on an HSZ40 controller pair, $1$DGA3207: is a 5 GB vdisk on an EVA6000.&lt;BR /&gt;&lt;BR /&gt;I expected the logical volume size of the shadowset to be the size of the smaller device, in this case the RZ29B.&lt;BR /&gt;&lt;BR /&gt;However, the logical volume size is 1 block smaller than the size of the RZ29B.&lt;BR /&gt;&lt;BR /&gt;If I use init on the RZ29B without /shadow, then create a shadowset with the member, it is the full size.&lt;BR /&gt;&lt;BR /&gt;Is this an off by one coding error in INIT/SHADOW (using the highest LBN instead of number of blocks) when setting the size of the device?&lt;BR /&gt;&lt;BR /&gt;I am not worried about the loss of one block of disk space; in fact with a clustersize of 8 it makes no difference in number of available clusters, since 8378028 is not a multiple of 8.&lt;BR /&gt;However, it seems odd to me that the logical volume size is different based on whether /shadow is used.&lt;BR /&gt;&lt;BR /&gt;And I tried the obvious solution:&lt;BR /&gt;&lt;BR /&gt;Neither&lt;BR /&gt;&lt;BR /&gt;$ set volume/size dsa3207:&lt;BR /&gt;&lt;BR /&gt;nor&lt;BR /&gt;&lt;BR /&gt;$ set volume/size=8378028 dsa3207:&lt;BR /&gt;&lt;BR /&gt;changed the logical size from 8378027 to 8378028, even with dismounting/remounting.&lt;BR /&gt;&lt;BR /&gt;So it looks to me like there are two inconsistencies, as the set volume meets all the requirements listed in the help for set volume/size.  I noticed this earlier in another adventure with V7.3-2 BACKUP (id "AXP72R001") not preserving /limit or /size, when using backup/image/noinit.&lt;BR /&gt;&lt;BR /&gt;I am attaching log file demonstrating my findings.</description>
      <pubDate>Wed, 01 Aug 2007 03:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047571#M86078</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-01T03:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047572#M86079</link>
      <description>Jon,&lt;BR /&gt;&lt;BR /&gt;it looks odd, but I can well live with it, except&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;I noticed this earlier in another adventure with V7.3-2 BACKUP (id "AXP72R001") not preserving /limit or /size, when using backup/image/noinit. &lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;Do you mean, you INITed the volume /LIMIT=..&lt;BR /&gt;and then BACKUP/NOINIT does _NOT_ leave your /LIMIT in the target;&lt;BR /&gt;or do you mean&lt;BR /&gt;you have a BACKUP/INIT of a volume with /LIMIT, and upon restore /NOINIT that value gets lost?&lt;BR /&gt;I have not yet been in a position to do either, but if it is confirmed, that would be a nasty, and potentially troublesome bug indeed!!&lt;BR /&gt;&lt;BR /&gt;Please clarify.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Aug 2007 03:48:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047572#M86079</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-08-01T03:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047573#M86080</link>
      <description>Jon,&lt;BR /&gt;&lt;BR /&gt;I've tried this on a simple LD device with OpenVMS Alpha V8.2 and I don't see this behaviour:&lt;BR /&gt;&lt;BR /&gt;$ LD CONN file LDA1:&lt;BR /&gt;$ INIT LDA1: TEST/LIMIT&lt;BR /&gt;$ MOUNT/OVER=ID LDA1:&lt;BR /&gt;$ SHOW DEV/FULL LDA1:&lt;BR /&gt;&lt;BR /&gt;and same sequence with&lt;BR /&gt;&lt;BR /&gt;$ INIT TEST/SHAD=(LDA1:)/LIMIT&lt;BR /&gt;&lt;BR /&gt;In both cases, the Total Blocks and Logical Volume Size exactly match the size of the LD container file.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 01 Aug 2007 04:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047573#M86080</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2007-08-01T04:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047574#M86081</link>
      <description>Could it have siomething to do with the /erase ? You didn't use /erase on the single disk init. And there is an error on the disk. Could it be a bad block that is subtracted from the size while erasing ?&lt;BR /&gt;&lt;BR /&gt;Wim (without anything higher than 7.3, so no test env)</description>
      <pubDate>Wed, 01 Aug 2007 04:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047574#M86081</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-08-01T04:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047575#M86082</link>
      <description>Volker,&lt;BR /&gt;&lt;BR /&gt;If it works in 8.2 then it must have been fixed.&lt;BR /&gt;&lt;BR /&gt;Here's a small reproducer with LD v9 on 7.3-2&lt;BR /&gt;&lt;BR /&gt;$ ld create disk$archive:[000000]disk1.dsk/size=10000/contig/nobackup&lt;BR /&gt;$ ld create disk$archive:[000000]disk2.dsk/size=11000/contig/nobackup&lt;BR /&gt;$ ld conn disk$archive:[000000]disk1.dsk lda1/share&lt;BR /&gt;$ ld conn disk$archive:[000000]disk2.dsk lda2/share&lt;BR /&gt;$ sho dev ld&lt;BR /&gt;&lt;BR /&gt;Device                  Device           Error    Volume         Free  Trans Mnt&lt;BR /&gt; Name                   Status           Count     Label        Blocks Count Cnt&lt;BR /&gt;$4$LDA0:       (SIGMA)  Online               0&lt;BR /&gt;$4$LDA1:       (SIGMA)  Online               0&lt;BR /&gt;$4$LDA2:       (SIGMA)  Online               0&lt;BR /&gt;$ init/shad=($4$lda1:,$4$lda2:)/erase itrc/cluster=1/system/index=begin/own=[1,1]/user=itrc&lt;BR /&gt;$ mou/sys/noassist dsa999: /shadow=($4$lda1:,$4$lda2:) itrc&lt;BR /&gt;%MOUNT-I-MOUNTED, ITRC mounted on _DSA999:&lt;BR /&gt;%MOUNT-I-SHDWMEMSUCC, _$4$LDA1: (SIGMA) is now a valid member of the shadow set&lt;BR /&gt;%MOUNT-I-SHDWMEMSUCC, _$4$LDA2: (SIGMA) is now a valid member of the shadow set&lt;BR /&gt;$ sho dev/ful dsa999 &lt;BR /&gt;&lt;BR /&gt;Disk DSA999:, device type Generic SCSI disk, is online, mounted, file-oriented&lt;BR /&gt;    device, shareable, available to cluster, error logging is enabled, device&lt;BR /&gt;    supports bitmaps (no bitmaps active).&lt;BR /&gt;&lt;BR /&gt;    Error count                    0    Operations completed                 25&lt;BR /&gt;    Owner process                 ""    Owner UIC                      [SYSTEM]&lt;BR /&gt;    Owner process ID        00000000    Dev Prot            S:RWPL,O:RWPL,G:R,W&lt;BR /&gt;    Reference count                1    Default buffer size                 512&lt;BR /&gt;    Total blocks               10000    Sectors per track                    10&lt;BR /&gt;    Total cylinders              100    Tracks per cylinder                  10&lt;BR /&gt;    Logical Volume Size         9999    Expansion Size Limit              12288&lt;BR /&gt;&lt;BR /&gt;    Volume label              "ITRC"    Relative volume number                0&lt;BR /&gt;    Cluster size                   1    Transaction count                     1&lt;BR /&gt;    Free blocks                 9966    Maximum files allowed              2750&lt;BR /&gt;    Extend quantity                5    Mount count                           1&lt;BR /&gt;    Mount status              System    Cache name        "_$4$DKA407:XQPCACHE"&lt;BR /&gt;    Extent cache size             64    Maximum blocks in extent cache      996&lt;BR /&gt;    File ID cache size            64    Blocks in extent cache                0&lt;BR /&gt;    Quota cache size               0    Maximum buffers in FCP cache       4475&lt;BR /&gt;    Volume owner UIC        [FILSYS]    Vol Prot    S:RWCD,O:RWCD,G:RWCD,W:RWCD&lt;BR /&gt;&lt;BR /&gt;  Volume Status:  ODS-2, subject to mount verification, erase on delete, file&lt;BR /&gt;      high-water marking, write-back caching enabled.&lt;BR /&gt;&lt;BR /&gt;Disk $4$LDA1:, device type Generic SCSI disk, is online, member of shadow set&lt;BR /&gt;    DSA999:, shadow set virtual unit.&lt;BR /&gt;&lt;BR /&gt;    Error count                    0    Shadow member operation count       141&lt;BR /&gt;    Allocation class               4&lt;BR /&gt;&lt;BR /&gt;Disk $4$LDA2:, device type Generic SCSI disk, is online, member of shadow set&lt;BR /&gt;    DSA999:, shadow set virtual unit.&lt;BR /&gt;&lt;BR /&gt;    Error count                    0    Shadow member operation count       145&lt;BR /&gt;    Allocation class               4&lt;BR /&gt;&lt;BR /&gt;$</description>
      <pubDate>Wed, 01 Aug 2007 04:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047575#M86082</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-01T04:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047576#M86083</link>
      <description>Jan,&lt;BR /&gt;&lt;BR /&gt;In VMS 7.3-2 you can initialize a volume with a /SIZE less than the physical size of the device.  You would normally do this so you could shadow with a smaller device.  In my case, I wanted to shadow an EVA vdisk that has 1GB size granularity with an RZ29B, so I initialized the vdisk with /SIZE=8378028 and /LIMIT.  I then did a backup/image/noinit from the RZ29 to the vdisk, planning to convert the vdisk into a shadowset, and then add the RZ29 back into the shadowset with copy.&lt;BR /&gt;&lt;BR /&gt;However, that backup (with VMS 7.3-2) results in the warning&lt;BR /&gt;%BACKUP-I-LOGNOTPRES, logical volume size of volume $1$DGA3205: not preserved&lt;BR /&gt;%BACKUP-I-LIMITNOTPRES, expansion size limit of volume $1$DGA3205: not preserved&lt;BR /&gt;&lt;BR /&gt;I came up with a work around, thanks to Jur's LDDRIVER&lt;BR /&gt;&lt;BR /&gt;$ ld connect $1$DGA3205 /LBN=(start:0,size:8378028) LDA3205:&lt;BR /&gt;&lt;BR /&gt;Followed by init of LDA3205 with clustersize, etc. followed by  backup/image/noinit to LD3205: (still doesn't preserve SIZE, but now SIZE is preserved by LDDRIVER).  After backup is complete, dismount LDA3205, mount LDA3205 private, set volume/limit lda3205, dismount LDA3205:; disconnect LDA3205: Mount DGA3205 and it is nearly how you would like it.  You are still limited in how large a value MAX_FILES can be set to.&lt;BR /&gt;&lt;BR /&gt;The best solution is to upgrade to 8.3, where BACKUP has been taught about dynamic volume expansion.  However, we still have some products that aren't ready for 8.3.&lt;BR /&gt;&lt;BR /&gt;I am attaching a log file showing a reproducer using the LDA1 and LDA2 from my response to Volker.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Aug 2007 05:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047576#M86083</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-01T05:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047577#M86084</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;I don't believe is has anything to do with errors on the SCSI devices.  Same thing happens on an LD device, see my response to Volker.&lt;BR /&gt;&lt;BR /&gt;The errors on the SCSI devices have to do with shared SCSI and the HSZ contollers, they are "normal" for us especially when we shutdown/reboot a node on the shared SCSI bus.&lt;BR /&gt;&lt;BR /&gt;BTW, I just inited the device without /shadow and then added in the other device and let the shadowing synchronize.  These were "small" 4.3 GB devices, so it doesn't take two days.</description>
      <pubDate>Wed, 01 Aug 2007 05:18:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047577#M86084</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-01T05:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047578#M86085</link>
      <description>Jon,&lt;BR /&gt;&lt;BR /&gt;I've now repeated your test on V8.2 and ... the error is still there !&lt;BR /&gt;&lt;BR /&gt;$ ld create disk1.dsk/size=10000/contig/nobackup&lt;BR /&gt;$ ld create disk2.dsk/size=11000/contig/nobackup&lt;BR /&gt;$ ld conn disk1.dsk lda1/share&lt;BR /&gt;$ ld conn disk2.dsk lda2/share&lt;BR /&gt;$ init/shad=(lda1:,lda2:)/erase itrc/cluster=1/system/index=begin&lt;BR /&gt;%INIT-I-LIMITCHANGED, value for /LIMIT increased to 1048576&lt;BR /&gt;%INIT-I-LIMITCHANGED, value for /LIMIT increased to 1048576&lt;BR /&gt;$ mou/sys/noassist dsa999: /shadow=($1$lda1:,$1$lda2:) itrc&lt;BR /&gt;%MOUNT-I-MOUNTED, ITRC mounted on _DSA999:&lt;BR /&gt;%MOUNT-I-SHDWMEMSUCC, _$1$LDA1: (AXPVMS) is now a valid member of the shadow set&lt;BR /&gt;%MOUNT-I-SHDWMEMSUCC, _$1$LDA2: (AXPVMS) is now a valid member of the shadow set&lt;BR /&gt;$ sho dev/full dsa999&lt;BR /&gt;&lt;BR /&gt;Disk DSA999:, device type Foreign disk type 1, is online, mounted, file-oriented&lt;BR /&gt;    device, shareable, available to cluster, error logging is enabled, device&lt;BR /&gt;    supports bitmaps (no bitmaps active).&lt;BR /&gt;&lt;BR /&gt;    Error count                    0    Operations completed                 25&lt;BR /&gt;    Owner process                 ""    Owner UIC                      [SYSTEM]&lt;BR /&gt;    Owner process ID        00000000    Dev Prot            S:RWPL,O:RWPL,G:R,W&lt;BR /&gt;    Reference count                1    Default buffer size                 512&lt;BR /&gt;    Total blocks               10000    Sectors per track                    10&lt;BR /&gt;    Total cylinders              100    Tracks per cylinder                  10&lt;BR /&gt;    Logical Volume Size         9999    Expansion Size Limit            1048576&lt;BR /&gt;&lt;BR /&gt;So this problem is introduced by some combination and values of qualifiers:&lt;BR /&gt;&lt;BR /&gt;If I just do an INIT/SHADOW=(LDA1:), then I get the correct Logical Volume Size !&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 01 Aug 2007 05:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047578#M86085</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2007-08-01T05:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047579#M86086</link>
      <description>Jon,&lt;BR /&gt;&lt;BR /&gt;same problem on OpenVMS Alpha V8.3 with ALL current patches installed.&lt;BR /&gt;&lt;BR /&gt;So it seems to be some bug in the INIT/SHADOW code. Worth a low-priority call to HP...&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 01 Aug 2007 05:43:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047579#M86086</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2007-08-01T05:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047580#M86087</link>
      <description>Jon,&lt;BR /&gt;&lt;BR /&gt;thanks for finding this out!&lt;BR /&gt;&lt;BR /&gt;Now that I know about it, we can deal around it if neede, but I REALLY would hate to have to find out in a real recovery situation!&lt;BR /&gt;For the foreseeable future we are stuck on 7.3-2, so will have to keep this int the back of our heads.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Wed, 01 Aug 2007 05:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047580#M86087</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-08-01T05:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047581#M86088</link>
      <description>Please formally log a call with HP.&lt;BR /&gt;&lt;BR /&gt;I'm pretty sure that the shadowing engineer has already fixed this problem for V8.3-1H1, but I'm not sure if it has made it back into older versions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Rob</description>
      <pubDate>Wed, 01 Aug 2007 09:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047581#M86088</guid>
      <dc:creator>Robert Brooks_1</dc:creator>
      <dc:date>2007-08-01T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047582#M86089</link>
      <description>---------------------------&lt;BR /&gt;Volker&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;So this problem is introduced by some combination and values of qualifiers: &lt;BR /&gt;&lt;BR /&gt;If I just do an INIT/SHADOW=(LDA1:), then I get the correct Logical Volume Size ! &lt;BR /&gt;&lt;BR /&gt;Volker&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;---------------------------&lt;BR /&gt;&lt;BR /&gt;I just repeated the reproducer but used two LD device that were the same size.&lt;BR /&gt;&lt;BR /&gt;In this case, the logical volume size is created correctly.  So it seems that the trigger is the dissimilar size; instead of having more than a single device in the /shadow list.&lt;BR /&gt;&lt;BR /&gt;$ ld create disk$archive:[000000]disk1.dsk/cont/size=10000/noback&lt;BR /&gt;$ ld create disk$archive:[000000]disk2.dsk/cont/size=10000/noback&lt;BR /&gt;$ ld connect disk$archive:[000000]disk1.dsk lda1:/share&lt;BR /&gt;$ ld connect disk$archive:[000000]disk2.dsk lda2:/share&lt;BR /&gt;$ init/shadow=(lda1:,lda2:)/erase/cluster=1/own=[1,1]/index=begin/limit=100000/headers=1000 itrc&lt;BR /&gt;$ mou/system dsa999: /shadow=($4$lda1:,$4$lda2:) itrc&lt;BR /&gt;%MOUNT-I-MOUNTED, ITRC mounted on _DSA999:&lt;BR /&gt;%MOUNT-I-SHDWMEMSUCC, _$4$LDA1: (SIGMA) is now a valid member of the shadow set&lt;BR /&gt;%MOUNT-I-SHDWMEMSUCC, _$4$LDA2: (SIGMA) is now a valid member of the shadow set&lt;BR /&gt;$ sho dev/ful dsa999&lt;BR /&gt;&lt;BR /&gt;Disk DSA999:, device type Generic SCSI disk, is online, mounted, file-oriented&lt;BR /&gt;    device, shareable, available to cluster, error logging is enabled, device&lt;BR /&gt;    supports bitmaps (no bitmaps active).&lt;BR /&gt;&lt;BR /&gt;    Error count                    0    Operations completed                 25&lt;BR /&gt;    Owner process                 ""    Owner UIC                      [SYSTEM]&lt;BR /&gt;    Owner process ID        00000000    Dev Prot            S:RWPL,O:RWPL,G:R,W&lt;BR /&gt;    Reference count                1    Default buffer size                 512&lt;BR /&gt;    Total blocks               10000    Sectors per track                    10&lt;BR /&gt;    Total cylinders              100    Tracks per cylinder                  10&lt;BR /&gt;    Logical Volume Size        10000    Expansion Size Limit              12288&lt;BR /&gt;&lt;BR /&gt;Rest removed by Jon&lt;BR /&gt;&lt;BR /&gt;Another annoyance is that the volumes are processed sequentially, but are not allocated at the start.  So the following can happen:&lt;BR /&gt;&lt;BR /&gt;$ sho dev ld&lt;BR /&gt;&lt;BR /&gt;Device                  Device           Error    Volume         Free  Trans Mnt&lt;BR /&gt; Name                   Status           Count     Label        Blocks Count Cnt&lt;BR /&gt;$4$LDA0:       (SIGMA)  Online               0&lt;BR /&gt;$4$LDA1:       (SIGMA)  ShadowSetMember      0  (member of DSA999:)&lt;BR /&gt;$4$LDA2:       (SIGMA)  ShadowSetMember      0  (member of DSA999:)&lt;BR /&gt;$ dism dsa999&lt;BR /&gt;$ mou $4$lda2:/ov=id&lt;BR /&gt;%MOUNT-W-VOLSHDWMEM, mounting a shadow set member volume; volume write locked&lt;BR /&gt;%MOUNT-I-MOUNTED, ITRC mounted on _$4$LDA2: (SIGMA)&lt;BR /&gt;$ init/shadow=(lda1:,lda2:)/erase/cluster=1/own=[1,1]/index=begin/limit=100000/headers=1000 itrc2&lt;BR /&gt;%SYSTEM-F-DEVMOUNT, device is already mounted&lt;BR /&gt;$ mou/ov=id lda1 &lt;BR /&gt;%MOUNT-W-VOLSHDWMEM, mounting a shadow set member volume; volume write locked&lt;BR /&gt;%MOUNT-I-MOUNTED, ITRC2 mounted on _$4$LDA1: (SIGMA)&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Note that the the error did not occur until after the first device had been erased/initialized (evidenced by the changed label).&lt;BR /&gt;&lt;BR /&gt;The problem is that it still erased and inited the first volume, and didn't fail immediately.  So for example if the devices were 1 TB in size instead of 10000 blocks, you wouldn't know about the problem until a long time after the init command had been issued.  In fact, it appears that you could even start using a device in the list, for something else, and in the worst case, could finish using it and dismount it before the device was initiallized.&lt;BR /&gt;&lt;BR /&gt;Example data loss scenario.&lt;BR /&gt;&lt;BR /&gt;Proc1$ init/shadow=('TBdev1','TBdev2')/erase BIGHBVS 'other_init_qualifiers'&lt;BR /&gt;&lt;BR /&gt;While 'TBdev1' is being initialized/erased something else starts to use 'TBdev2'.  The worst case is if data is written to it, and then the device is dismounted, all while 'TBdev1' is still being erased.&lt;BR /&gt;&lt;BR /&gt;Example follows:&lt;BR /&gt;&lt;BR /&gt;Proc2$ init 'TBdev2' archive&lt;BR /&gt;Proc2$ mou/ov=id 'TBdev2'&lt;BR /&gt;Proc2$ backup disk1:[000000.important...] disk$archive:[*...]*.*;*/own=orig/ver/delete&lt;BR /&gt;Proc2$ dismount 'TBdev2'&lt;BR /&gt;&lt;BR /&gt;Some time later, the init/erase of 'TBdev1' completes, and the init/erase of 'TBdev2' starts.  All the data written to the 'TBdev2' is overwritten.&lt;BR /&gt;&lt;BR /&gt;While the above is not a likely scenareo, it shouldn't be possible, i.e. the init command should allocate every device in the list, and fail if it cannot, before it starts to do any writing.</description>
      <pubDate>Wed, 01 Aug 2007 19:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047582#M86089</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-01T19:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047583#M86090</link>
      <description>Jon,&lt;BR /&gt;&lt;BR /&gt;the INIT/SHADOW problem, where the logical volume size was off by one, has been solved in V7.3-2 and higher. The solutions will appear in some future ECO kit.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 15 Aug 2007 11:39:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047583#M86090</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2007-08-15T11:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047584#M86091</link>
      <description>FWIW, and now largely lost in the mists of time, this particular (mis?)feature was deliberately introduced, and intended to allow volumes initialized with /SHADOW to be differentiated from other volumes.  It's obviously not particularly useful.  And yes, I know who implemented this.</description>
      <pubDate>Wed, 15 Aug 2007 12:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047584#M86091</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-08-15T12:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047585#M86092</link>
      <description>It's obviously not particularly useful. And yes, I know who implemented this.&lt;BR /&gt;&lt;BR /&gt;====&lt;BR /&gt;&lt;BR /&gt;I have an idea who did it, and if I'd known about it at the time, I'd have "appealed to a higher authority" to have it removed . . .&lt;BR /&gt;&lt;BR /&gt;-- Rob</description>
      <pubDate>Fri, 17 Aug 2007 18:27:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047585#M86092</guid>
      <dc:creator>Robert Brooks_1</dc:creator>
      <dc:date>2007-08-17T18:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047586#M86093</link>
      <description>"this particular (mis?)feature was deliberately introduced, and intended to allow volumes initialized with /SHADOW to be differentiated from other volumes."&lt;BR /&gt;&lt;BR /&gt;Since it isn't a particuarly harmful feature, I can see how it has remained dormant for a while.  What I don't understand is why it only "flags" the volumes when they are different sizes.  Volker discovered that when he was not able to reproduce my problem when he used two identically sized LD devices.  My point is that it doesn't seem to indicate that the /SHADOW qualifier was used, it seems to imply that an INIT /SHADOW was used to initialize a set of disk that did not all have the same MAXBLOCK value.&lt;BR /&gt;&lt;BR /&gt;If knowing that the devices were initialized with INIT/SHADOW is useful (How?), then I would have expected a flag bit in something in the homeblock or storage control block.  For example a bit in HM2$W_VOLCHAR.</description>
      <pubDate>Fri, 17 Aug 2007 19:30:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047586#M86093</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-17T19:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047587#M86094</link>
      <description>The max-1 technique is non-volatile and it is propagated past volume dismount and remount (and reboot), and it doesn't require having the shadowing driver have knowledge of the file structure.&lt;BR /&gt;&lt;BR /&gt;More recent disks can have non-volatile storage out in the drive reserved for the driver or the OS (or for malware); storage outside of the file system.  Something which would obviate the max-1, but does require devices to have the storage -- and not all do.  Both SAS and SCSI devices can -- but not necessarily do -- have this storage.  There's a mechanism that can allow this on IDE widgets per the T10 specs, but it's not transportable.&lt;BR /&gt;&lt;BR /&gt;There are drivers that know the innards of the volume structure, and this is a design decision.  In some ways it makes the driver somewhat easier, but it also means the driver has to have added knowledge.  &lt;BR /&gt;&lt;BR /&gt;There are cases of this "carnal volume knowledge" within the EFI console that show these basic trade-offs; where the console "knows" the disk structures, and strange and (initially) mysterious changes can ensue.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Aug 2007 12:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047587#M86094</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-08-19T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047588#M86095</link>
      <description>Ok, I'll take the bait.  Where is this max-1 value stored if not in SCB$L_VOLSIZE?  I thought the driver was able to determine the MAXBLOCK from the hardware, for example on a SCSI device with READ CAPACITY and sector size; but where could the driver get the "logical size" information if not from the SCB?  Is this max-1 technique doing something different that initialize /size does?&lt;BR /&gt;&lt;BR /&gt;If I initialize a 100,000 block LD device using the command:&lt;BR /&gt;&lt;BR /&gt;$ init lda2: fifty /cluster=1 /size=50000 /system &lt;BR /&gt;&lt;BR /&gt;then mount/over=id, I see the following in output of show device /full lda2:&lt;BR /&gt;&lt;BR /&gt;    Total blocks              100000    Sectors per track                    18&lt;BR /&gt;    Total cylinders              327    Tracks per cylinder                  17&lt;BR /&gt;    Logical Volume Size        50000    Expansion Size Limit             102400&lt;BR /&gt;&lt;BR /&gt;If I mount the same device /foreign, and do a show device/full it has no notion of logical volume size, since that is defined by ODS in the storage control block (SCB).&lt;BR /&gt;&lt;BR /&gt;As far as I know, the SCB is "non-volatile and it is propagated past volume dismount and remount (and reboot)", but it DOES "require having the shadowing driver have knowledge of the file structure." at least to the extent of knowing how to find the SCB.&lt;BR /&gt;&lt;BR /&gt;And the shadowing driver already has to know about the SCB, since it keeps things like SCB$Q_GENERNUM there.  In fact, I don't even think the shadowing driver will allow you to mount a DSA device/foreign, given that to do an image restore you must restore to a member, then reform a single member shadow set with the restored device as the master member, followed by the addition of other shadow set members with full copy.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Aug 2007 02:47:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047588#M86095</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-21T02:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: INIT/SHADOW vs INIT off by one error?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047589#M86096</link>
      <description>[V83.INIT.LIS]INIVOLEXEC.LIS has this comment:&lt;BR /&gt;&lt;BR /&gt;"If dissimilar devices are specified with /SHADOW, make sure that /SIZE is less than UCB$L_MAXBLOCKS so that INIDSK will always create the same geometry for all the members."&lt;BR /&gt;&lt;BR /&gt;Evidently, a work around for the potential geometry problem has been found since October 2003.&lt;BR /&gt;---------&lt;BR /&gt;My other observation was that the devices were not all allocated before starting the initializations.&lt;BR /&gt;&lt;BR /&gt;Can anyone think of a reason that you would not want all the devices allocated for the duration of the init?&lt;BR /&gt;&lt;BR /&gt;As far as the allocation of all the devices before initializing, it appears the only work around to safely use init/shadow is to encapsulate the init with a bunch of explicit allocate commands, the initialize, then explicit deallocate commands.&lt;BR /&gt;&lt;BR /&gt;for example:&lt;BR /&gt;&lt;BR /&gt;$ allocate dev1&lt;BR /&gt;$ allocate dev2&lt;BR /&gt;$ allocate dev3&lt;BR /&gt;$ allocate dev4&lt;BR /&gt;$ allocate dev5&lt;BR /&gt;$ allocate dev6&lt;BR /&gt;$ initialize /shadow=(dev1,dev2,dev3,dev4,dev5,dev6) /erase ...&lt;BR /&gt;$ deallocate dev1&lt;BR /&gt;$ deallocate dev2&lt;BR /&gt;$ deallocate dev3&lt;BR /&gt;$ deallocate dev4&lt;BR /&gt;$ deallocate dev5&lt;BR /&gt;$ deallocate dev6&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Aug 2007 06:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/init-shadow-vs-init-off-by-one-error/m-p/4047589#M86096</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-25T06:07:47Z</dc:date>
    </item>
  </channel>
</rss>

