in reply to Re^2: sorted HoA, now what?
in thread sorted HoA, now what?

See my update 2 in original response.

Replies are listed 'Best First'.
Re^4: sorted HoA, now what?
by stevieb (Canon) on Nov 20, 2015 at 23:08 UTC

    Hey u65, just a pointer... if you want to reference a post (in this case your own), the canonical (and proper) way to do it is simply grab the id of the post, and tag it like this: [id://1148186]. This produces: Re: sorted HoA, now what?.

    You can change the name of the link by using the | (pipe) separator: [id://1148186|this post], and it'll appear like: this post.

    Using this kind of linking allows monks to click on it without being taken to the site and being (potentially) logged out of PM. Having clickable access to nodes is a very desired effect ;)

      Thanks, stevieb!

      BTW, my wife and I visited the Banff National Park area last year and had a great time--beautiful country!.

        Nice!

        Because of my travels of the mountains (I took a half-year off of work last year to explore), people call me a 'travel guide'. I'm honoured by the suggestion, but I'm no Ben Gadd ;)

        I'm slowly desiring to go back home to where my family is (Toronto, ON, Canada), but its a sore spot leaving the mountains.

        If you take another trip up this way, msg me first. I'll show you the good spots ;)

        -stevieb

Re^4: sorted HoA, now what?
by teamassociated (Sexton) on Nov 21, 2015 at 17:41 UTC
    Yes Tom you are correct. Thank you!! I am comparing two log files, fairly large ~2000 lines, but I only show little here. What could be different but never should be is the backing device. I should always have 2 twcsapxrqdb1_x1 in each log file but sometimes the OS puts them where it wants to. The problem with my previous code was when I added a new LUN to the VIOS, it would assign where the last vtscsi ID gap existed. Here is a visual of what it currently does using grep -p. Error warning from Test::More. got archive_d1f but expected archive_r1a.
    # Failed test 'vios16a-vios16b-map-compare' # at stgpool_lun_compare.plx line 204. # Structures begin differing at: # $got->{0x0000000a}[1] = 'archive_d1f.12dd194548df82b3aa92de +094112214c' # $expected->{0x0000000a}[1] = 'archive_r1a.91f0e02e3948dc9f783597 +0a2d79ddaa' *** LOG 1 *** # grep -p archive /opt/r2configs/vios16a/2015/11/19/lsmap-all.out VTD vtscsi12 Status Available LUN 0x8800000000000000 Backing device archive_d1f.12dd194548df82b3aa92de094112214c Physloc Mirrored N/A VTD vtscsi73 Status Available LUN 0x8100000000000000 Backing device archive_r1a.91f0e02e3948dc9f7835970a2d79ddaa Physloc Mirrored N/A VTD vtscsi74 Status Available LUN 0x8200000000000000 Backing device archive_r1b.e812830370e17478eb79d3b7b10b7e9d Physloc Mirrored N/A VTD vtscsi75 Status Available LUN 0x8300000000000000 Backing device archive_d1a.2e1bd9b5a21aee5120c7b4205e967567 Physloc Mirrored N/A VTD vtscsi76 Status Available LUN 0x8400000000000000 Backing device archive_d1b.e24dedc7fd9a4fddfd2464cce6b20a18 Physloc Mirrored N/A VTD vtscsi77 Status Available LUN 0x8500000000000000 Backing device archive_d1c.cb45fea8aed10491e0df5e9578c9a726 Physloc Mirrored N/A VTD vtscsi78 Status Available LUN 0x8600000000000000 Backing device archive_d1d.b4277aa6b6c4b737084913f78104a90c Physloc Mirrored N/A VTD vtscsi79 Status Available LUN 0x8700000000000000 Backing device archive_d1e.2a7a12d38d59d5ae415d64d5869b1144 Physloc Mirrored N/A *** LOG 2 *** root@r2nim01(/usr/local/scripts)$ # grep -p archive /opt/r2configs/vios16b/2015/11/19/lsmap-all.out VTD vtscsi62 Status Available LUN 0x8100000000000000 Backing device archive_r1a.91f0e02e3948dc9f7835970a2d79ddaa Physloc Mirrored N/A VTD vtscsi66 Status Available LUN 0x8800000000000000 Backing device archive_d1f.12dd194548df82b3aa92de094112214c Physloc Mirrored N/A VTD vtscsi69 Status Available LUN 0x8200000000000000 Backing device archive_r1b.e812830370e17478eb79d3b7b10b7e9d Physloc Mirrored N/A VTD vtscsi70 Status Available LUN 0x8300000000000000 Backing device archive_d1a.2e1bd9b5a21aee5120c7b4205e967567 Physloc Mirrored N/A VTD vtscsi71 Status Available LUN 0x8400000000000000 Backing device archive_d1b.e24dedc7fd9a4fddfd2464cce6b20a18 Physloc Mirrored N/A VTD vtscsi72 Status Available LUN 0x8500000000000000 Backing device archive_d1c.cb45fea8aed10491e0df5e9578c9a726 Physloc Mirrored N/A VTD vtscsi73 Status Available LUN 0x8600000000000000 Backing device archive_d1d.b4277aa6b6c4b737084913f78104a90c Physloc Mirrored N/A VTD vtscsi74 Status Available LUN 0x8700000000000000 Backing device archive_d1e.2a7a12d38d59d5ae415d64d5869b1144 Physloc Mirrored N/A