<?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: lvm and virtual array on multiple hosts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891994#M633488</link>
    <description>To all:&lt;BR /&gt;Thanks for the explanations; I understand the SAN-NAS analogy, and I can live with the limitations on sharing luns between hosts.&lt;BR /&gt;&lt;BR /&gt;My goal is to automate disaster recovery using one host(2) as backup/restore, the other (1) as a db server. The backup/restore host can pinch-hit for db-server host, if needed.&lt;BR /&gt;  My strategy then is:&lt;BR /&gt;(1) create a lun #3, vg, lvol, fs for reload of the db on host 2&lt;BR /&gt;(2) Restore from tape.&lt;BR /&gt;(3) Unmount fs, deactivate vg on host 2 after restore.&lt;BR /&gt;(4) On host 1, (1) create a vg, lvol, fs for the same lun (#3) we reloaded the db on host 2.&lt;BR /&gt;(5) cp db files back to original fs (on separate lun (#1)) on host 1.&lt;BR /&gt;(6) Unmount fs, deactivate vg on lun #3 on host 1 after copy.&lt;BR /&gt;&lt;BR /&gt;I tried this (my reply to A Clay) I still can't get the fs mounted on the reload lun(#3) without newfs'ing that vg. I'm doing something wrong, I don't know whether it's conceptual or Homer Simpsonesque!&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Jan 2003 17:13:11 GMT</pubDate>
    <dc:creator>Randy Tarrier</dc:creator>
    <dc:date>2003-01-29T17:13:11Z</dc:date>
    <item>
      <title>lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891986#M633480</link>
      <description>Can anyone enlighten me on how the va7400 works with multiple hosts? &lt;BR /&gt; My system is an rp8400 w/2 hdw partitions connected to the va7400 via 2 brocade switches. Each host has redundant connections to each switch; each switch has 2 connections to each controller. Everything displays ok w/various arm cmds. I do not have the Secure Mgr option on my system.&lt;BR /&gt;&lt;BR /&gt;I'm having a major brain cramp with the concept of sharing luns between hosts. I tried vgexport/vgimport with the -s -m options to get one host to "see" volume groups created on the other. Unfortunately, that requires identical hdw paths. So far, when I do vgexport/vgimport without -s, I get a brand new vg, which means I have to newfs it to mount it. &lt;BR /&gt;   It looks to me like there is no way for 2 hosts to "see" the same filesystems created on the va (unless you resort to nfs). I'm guessing this is because the phys vol's are on different hdw paths, so LVM doesn't realize it's the same patch of real estate. &lt;BR /&gt;   I'm thinking that the safest way to access the same data from either host is to define it in separate luns- waste of space! At least this works with Business Copy for backups, but why am I able to see the data from host 1 on a bc lun on host 2?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any virtual bufferins!&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jan 2003 15:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891986#M633480</guid>
      <dc:creator>Randy Tarrier</dc:creator>
      <dc:date>2003-01-29T15:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891987#M633481</link>
      <description>Actually you can vgimport without -s and specify the pv_paths as appropriate to each host. They don't have to be identical BUT that's not your problem. If you are going to share a filesystem between hosts then both MUST be read-only. The buffer cache of hostA will have no idea what's going on in hostB's buffer cache and absolute chaos is guaranteed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Veritas does make a product called 'File Replicator' that you might interest you.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jan 2003 15:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891987#M633481</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-29T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891988#M633482</link>
      <description>Randy,&lt;BR /&gt;&lt;BR /&gt;You have discovered one of the major drawbacks of a SAN Device as opposed to a NAS device; SAN just makes disks available, whereas NAS shares File Systems on top of the Disks.&lt;BR /&gt;&lt;BR /&gt;As long as you ensure that only 1 server has the disks in a volume group, you can swap them back and forth between servers at will.&lt;BR /&gt;&lt;BR /&gt;While it may be possible to mount a disk on 2 servers as read only, I would not do it myself personally, but would take the hit on using NFS. How dynamic is the data? Why not 2 copies of the same data?&lt;BR /&gt;&lt;BR /&gt;Can you provide more information on what you are trying to achieve? It sounds like a Split-Mirror backup solution.&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Wed, 29 Jan 2003 15:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891988#M633482</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-01-29T15:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891989#M633483</link>
      <description>Clay,&lt;BR /&gt;I understand the issues with respect to changes to data; what I was thinking was host 1 would see it as read-only, and periodically export/import the vg to see the latest changes wrought by host 2.&lt;BR /&gt;   My problem is that I can't get host 1 to see anything at all that is present on host 2's file system. &lt;BR /&gt;&lt;BR /&gt;For sake of example, host 2 has Omniback, host 1 has the Oracle db. If I do a business copy of host 1's Oracle lun on host 2, then vgimport host 1's vg &amp;amp; lvols (from a mapfile), I'm defining host 1's on a separate lun for LVM, and it works. Now, if I want to recover my db from a backup to host 2, then vgexport/vgimport it back to host 1, I can't get host 1 to see the files on its vg, defined to the same lun that host 2 has. &lt;BR /&gt;&lt;BR /&gt;   My process on host 1:&lt;BR /&gt;ioscan -fnC disk&lt;BR /&gt;disk      7  1/0/8/0/0.1.1.42.0.0.1   sdisk    CLAIMED     DEVICE       HP      A6189A&lt;BR /&gt;                            /dev/dsk/c4t0d1   /dev/rdsk/c4t0d1&lt;BR /&gt;&lt;BR /&gt;disk      4  1/0/10/0/0.1.1.39.0.0.1  sdisk    CLAIMED     DEVICE       HP      A6189A&lt;BR /&gt;                            /dev/dsk/c6t0d1   /dev/rdsk/c6t0d1&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/rdsk/c4t0d1&lt;BR /&gt;pvcreate -f /dev/rdsk/c6t0d1&lt;BR /&gt;insf -C disk&lt;BR /&gt;mkdir /dev/vgora&lt;BR /&gt;mknod /dev/vgora/group c 64 0x010000&lt;BR /&gt;insf -C disk&lt;BR /&gt;vgimport -v -m /dev/lvmconf/vgora.mapfile /dev/vgora /dev/dsk/c4t0d1 /dev/dsk/c6t0d1&lt;BR /&gt;Physical Volume "/dev/dsk/c4t0d1" is not part of a Volume Group&lt;BR /&gt;Physical Volume "/dev/dsk/c6t0d1" is not part of a Volume Group&lt;BR /&gt;I get this error if I didn't do a vgcreate before, so...&lt;BR /&gt;vgcreate -g pvora /dev/vgora /dev/dsk/c4t0d1&lt;BR /&gt;vgchange -a y vgora&lt;BR /&gt;vgextend /dev/vgora /dev/dsk/c4t0d1&lt;BR /&gt;lvcreate -L 3000 -n lvora vgora&lt;BR /&gt;lvcreate -L 7000 -n lvnetfs vgora&lt;BR /&gt;# fsck /dev/vgora/lvora&lt;BR /&gt;file system is larger than device&lt;BR /&gt;vxfs fsck: cannot initialize aggregate&lt;BR /&gt;file system check failure, aborting ...&lt;BR /&gt;so........&lt;BR /&gt;newfs -F vxfs -o largefiles /dev/vgora/rlvora&lt;BR /&gt;newfs -F vxfs -o largefiles /dev/vgora/rlvnetfs&lt;BR /&gt;mount /dev/vgora/lvora /oracle&lt;BR /&gt;mount /dev/vgora/lvnetfs /netfiles&lt;BR /&gt;&lt;BR /&gt;.... and this will show a new file system on host 1 sitting on the same lun as host 2, with all the liabilities previously mentioned. What am I doing wrong?</description>
      <pubDate>Wed, 29 Jan 2003 16:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891989#M633483</guid>
      <dc:creator>Randy Tarrier</dc:creator>
      <dc:date>2003-01-29T16:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891990#M633484</link>
      <description>Randy: as mentioned, this is emminently possible, but there are major issues.  Actually, this is routinely done with clustering SW.&lt;BR /&gt;&lt;BR /&gt;As has been mentioned, you can get the VGs to be recognized on the 2nd host (vgimport, vgscan, etc), but the issue is in keeping both systems from walking on each other's data, since there is no global authority as to who can write, locking of files, etc.&lt;BR /&gt;&lt;BR /&gt;This is resolved with MC/Serviceguard, which defines shared VGs as part of one or more "packages", which can run on one and ONLY one node in the cluster at any given time.  Now, MCSG is the global authority, and makes sure that multiple hosts can't write to the VG.&lt;BR /&gt;&lt;BR /&gt;It is possible to mount a FS R/W to one host, and to then mount it R/O to other hosts.  Per my LVM class, this is even supported by HP, although I've never needed to test this or try it, except in class.  Multiple hosts can mount the FS as R/O, no limit specified.  I can't think of any cases (in my sphere of responsibility) where doing this would be useful.&lt;BR /&gt;&lt;BR /&gt;While it's possible to share LUNs, VGs, FSs, etc, between hosts, I would suggest that maybe you are attempting SAN functions that you really don't need to do... perhaps you are just trying this for your own knowledge, in which case, good luck and get back to us when the smoke clears...&lt;BR /&gt;&lt;BR /&gt;In reality, for SAN-connected arrays, LUNs get assigned to one and only one host, and other LUNs get assigned to other hosts, as needed for your storage requirements.  When you do this right, you accrue great benefits of performance, scalability, and security.  When you do it in unusual ways, you accrue great pain and aggravation, but sometimes you have to do it to meet your goals and requirments.&lt;BR /&gt;&lt;BR /&gt;If you can tell us what you are trying to accomplish, maybe we can suggest useful alternatives that will work better for you.&lt;BR /&gt;&lt;BR /&gt;Best Regards, --bmr</description>
      <pubDate>Wed, 29 Jan 2003 16:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891990#M633484</guid>
      <dc:creator>Brian M Rawlings</dc:creator>
      <dc:date>2003-01-29T16:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891991#M633485</link>
      <description>2 quick points without detracting from Clays impending answer,...&lt;BR /&gt;&lt;BR /&gt;1. 'pvcreate' is trashing the contents of the disks. No chance of seeing the data afterwards.&lt;BR /&gt;&lt;BR /&gt;2. mknod - make sure the minor number is the same on both Servers, or use the 'vgchgid' command.&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jan 2003 16:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891991#M633485</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-01-29T16:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891992#M633486</link>
      <description>This is not related to your problem, but as I see from ioscan output: Why VA is working in public loop with 3xxx brocade switch? It should be in fabric login. Use arm* VA command to change topology.&lt;BR /&gt;Note: after changing topology device files will change!&lt;BR /&gt;Eugeny</description>
      <pubDate>Wed, 29 Jan 2003 17:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891992#M633486</guid>
      <dc:creator>Eugeny Brychkov</dc:creator>
      <dc:date>2003-01-29T17:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891993#M633487</link>
      <description>Sorry, missed your last post, which adds lots of detail and clears up what you are trying to do.  Sort of ignore my previous post.&lt;BR /&gt;&lt;BR /&gt;It sounds like you are having the more or less traditional problem of mounting up a business copy LUN.  I have seen this handled several ways, either with 'vgscan' to read the VGID of the BC LUN volumes, and allowing this 'new' VG to be imported, or via vgexport/vgimport as you are suggesting, with map files and so forth.&lt;BR /&gt;&lt;BR /&gt;The same problem exists with 'snapshot' LUNs, which once again have the same VGID as the original.  How to mount the snapshot up to the same host for testing, decision support, backups, and so forth?  How to mount it up to a different host for same?  It looks like you are very close, I can't see an obvious problem with your approach.  I've made it work before, but it took several itterations of try/reconsider/change/repeat.  EMC actually has a command to change the VGID for their Timefinder operations, everyone has this problem as they try to effectively use their SAN arrays.&lt;BR /&gt;&lt;BR /&gt;Regards, --bmr</description>
      <pubDate>Wed, 29 Jan 2003 17:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891993#M633487</guid>
      <dc:creator>Brian M Rawlings</dc:creator>
      <dc:date>2003-01-29T17:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: lvm and virtual array on multiple hosts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891994#M633488</link>
      <description>To all:&lt;BR /&gt;Thanks for the explanations; I understand the SAN-NAS analogy, and I can live with the limitations on sharing luns between hosts.&lt;BR /&gt;&lt;BR /&gt;My goal is to automate disaster recovery using one host(2) as backup/restore, the other (1) as a db server. The backup/restore host can pinch-hit for db-server host, if needed.&lt;BR /&gt;  My strategy then is:&lt;BR /&gt;(1) create a lun #3, vg, lvol, fs for reload of the db on host 2&lt;BR /&gt;(2) Restore from tape.&lt;BR /&gt;(3) Unmount fs, deactivate vg on host 2 after restore.&lt;BR /&gt;(4) On host 1, (1) create a vg, lvol, fs for the same lun (#3) we reloaded the db on host 2.&lt;BR /&gt;(5) cp db files back to original fs (on separate lun (#1)) on host 1.&lt;BR /&gt;(6) Unmount fs, deactivate vg on lun #3 on host 1 after copy.&lt;BR /&gt;&lt;BR /&gt;I tried this (my reply to A Clay) I still can't get the fs mounted on the reload lun(#3) without newfs'ing that vg. I'm doing something wrong, I don't know whether it's conceptual or Homer Simpsonesque!&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jan 2003 17:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-and-virtual-array-on-multiple-hosts/m-p/2891994#M633488</guid>
      <dc:creator>Randy Tarrier</dc:creator>
      <dc:date>2003-01-29T17:13:11Z</dc:date>
    </item>
  </channel>
</rss>

