<?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: New disk problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418259#M626643</link>
    <description>I did all those command and i have copied and pasted them into a word document&lt;BR /&gt;&lt;BR /&gt;thanks</description>
    <pubDate>Wed, 10 Nov 2004 05:24:25 GMT</pubDate>
    <dc:creator>Damien Brown</dc:creator>
    <dc:date>2004-11-10T05:24:25Z</dc:date>
    <item>
      <title>New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418249#M626633</link>
      <description>I had faulty disk and i have replaced it with a new one but it is not exactley the same disk so when i booted the machine up there is no logical volume. so i need to create a new vg but when i go to do it in sam i get an error message because it says in the lvmtab there is alreadyan entry so the vgc name that i want o create for this new one.&lt;BR /&gt;&lt;BR /&gt;Please help</description>
      <pubDate>Tue, 09 Nov 2004 11:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418249#M626633</guid>
      <dc:creator>Damien Brown</dc:creator>
      <dc:date>2004-11-09T11:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418250#M626634</link>
      <description>Hi damien,&lt;BR /&gt;&lt;BR /&gt;Could you give us a bit more details ?&lt;BR /&gt;&lt;BR /&gt;How different is this disk ?&lt;BR /&gt;&lt;BR /&gt;Are there more disks inside volume group you have lost ?&lt;BR /&gt;&lt;BR /&gt;could you post&lt;BR /&gt;&lt;BR /&gt;# vgdisplay -v vgname &lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 09 Nov 2004 11:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418250#M626634</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-11-09T11:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418251#M626635</link>
      <description>A vgexport /dev/vgxx will remove the old VG entries but you should be able to do a vgcfgrestore to install the old LVM data structures on the new disk. You then do a vgchange -a y /dev/vgxx to activate the disk. Your lvols should be back and you can then make the filesystems and restore from backup. You can also use the vgreduce command to remove the old entries; it will display an error but the /etc/lvmtab entries should be gone for the disk.&lt;BR /&gt;&lt;BR /&gt;Man vgcfgrestore, vgexport, vgreduce for details.&lt;BR /&gt;&lt;BR /&gt;You really should be mirroring so that losing a disk is a complete non-event; if your disks are hot-plug you wouldn't even have to shut down. I haven't shut down to replace a failed disk in years although in that time I replaced many, many disks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Nov 2004 11:53:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418251#M626635</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-11-09T11:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418252#M626636</link>
      <description>First, you need copy this file: /etc/lvmtab as an copy.&lt;BR /&gt;Then using vgscan -a to scan all of physical volumes for LVM volume groups and create the new lvmtab file.&lt;BR /&gt;Create again. I think it works!&lt;BR /&gt;Best and regard,&lt;BR /&gt;&lt;BR /&gt;Jimkery</description>
      <pubDate>Wed, 10 Nov 2004 02:58:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418252#M626636</guid>
      <dc:creator>Hoang Chi Cong_1</dc:creator>
      <dc:date>2004-11-10T02:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418253#M626637</link>
      <description>I am using LVM in sam to create the new VG and i have attached a screen shot of the error i am getting. Please specify exactley what to do as i am a new user to unix.&lt;BR /&gt;&lt;BR /&gt;Many Thanks</description>
      <pubDate>Wed, 10 Nov 2004 04:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418253#M626637</guid>
      <dc:creator>Damien Brown</dc:creator>
      <dc:date>2004-11-10T04:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418254#M626638</link>
      <description>Hi Damien,&lt;BR /&gt;&lt;BR /&gt;You should not be creating a new VG because this device file is already recorded in another VG. The correct procedure is to use 'vgcfgrestore'. Do not run 'vgscan'. If you did already, put your old /etc/lvmtab  back. Here is the procedure. Since this disk is not part of a mirror, you have lost the data. What you can do is create LVM structures and get the logical volumes back but not the data.  Find out the VG that this disk is part of 'strings /etc/lvmtab |more' will give you that information. Confirm the VG before you do the below say it is vg01.&lt;BR /&gt;&lt;BR /&gt;#vgcfgrestore -n vg01 /dev/rdsk/c1t1d0&lt;BR /&gt;#vgchange -a y vg01&lt;BR /&gt;&lt;BR /&gt;Now do a pvdisplay on this disk and find out all the logical volumes this disk has&lt;BR /&gt;&lt;BR /&gt;#pvdisplay -v vg01 |more&lt;BR /&gt;&lt;BR /&gt;For each logical volume, create a new filesystem.&lt;BR /&gt;&lt;BR /&gt;#newfs -F vxfs /dev/vg01/rlvol1&lt;BR /&gt;&lt;BR /&gt;Once all the LVs are done, mount them.&lt;BR /&gt;&lt;BR /&gt;#mount -a&lt;BR /&gt;&lt;BR /&gt;Now restore the data because these filesystems would be empty.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Nov 2004 04:15:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418254#M626638</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-10T04:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418255#M626639</link>
      <description>Fat finger... I messed up the pvdisplay command in the above..&lt;BR /&gt;&lt;BR /&gt;Instead of 'pvdisplay -v /dev/vg01' read it as 'pvdisplay -v /dev/dsk/c1t1d0'.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Nov 2004 04:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418255#M626639</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-10T04:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418256#M626640</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Was the volumegroup wgere the disk failed only containing one disk ? And you want to recreate the volumegroup with the same name ?&lt;BR /&gt;&lt;BR /&gt;Then, first export the old volumegroup&lt;BR /&gt;&lt;BR /&gt;vgexport vgXX&lt;BR /&gt;&lt;BR /&gt;now it soould be possible to use SAM for recreating vgXX or:&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/rdsk/&lt;RAW_DISK_DEVICEFILE&gt;&lt;BR /&gt;vgcreate vgXX /dev/dsk/block_disk_devicefile&lt;BR /&gt;vgchange -a y vgXX&lt;BR /&gt;&lt;/RAW_DISK_DEVICEFILE&gt;</description>
      <pubDate>Wed, 10 Nov 2004 04:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418256#M626640</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2004-11-10T04:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418257#M626641</link>
      <description>I tried what you said at this is the reply i get from the system on the vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;check out the screen shot</description>
      <pubDate>Wed, 10 Nov 2004 05:03:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418257#M626641</guid>
      <dc:creator>Damien Brown</dc:creator>
      <dc:date>2004-11-10T05:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418258#M626642</link>
      <description>Hi Damien,&lt;BR /&gt;&lt;BR /&gt;Did you export the VG rtvg01 already?. If so, then you may have to import it back. However, as said before if you have only one disk in that VG, then it's better to recreate the VG.&lt;BR /&gt;&lt;BR /&gt;Post the outputs of the folloowing.&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab&lt;BR /&gt;strings /etc/lvmtab.&lt;ANYBACKUPCOPY&gt;&lt;BR /&gt;vgdisplay -v&lt;BR /&gt;ll /dev/*/group&lt;BR /&gt;&lt;BR /&gt;We should be able to determine what's happening with the above.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/ANYBACKUPCOPY&gt;</description>
      <pubDate>Wed, 10 Nov 2004 05:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418258#M626642</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-10T05:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418259#M626643</link>
      <description>I did all those command and i have copied and pasted them into a word document&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Wed, 10 Nov 2004 05:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418259#M626643</guid>
      <dc:creator>Damien Brown</dc:creator>
      <dc:date>2004-11-10T05:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418260#M626644</link>
      <description>Hi Damien,&lt;BR /&gt;&lt;BR /&gt;Yep. I don't see rtvg01 in /dev directory. Since this is only the PV in that VG, you can safely export it. Do&lt;BR /&gt;&lt;BR /&gt;#vgexport rtvg01&lt;BR /&gt;&lt;BR /&gt;Then use SAM to recreate the VG, filesystems and restore the data.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Nov 2004 05:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418260#M626644</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-10T05:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418261#M626645</link>
      <description>this is what i get if i do that command</description>
      <pubDate>Wed, 10 Nov 2004 05:41:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418261#M626645</guid>
      <dc:creator>Damien Brown</dc:creator>
      <dc:date>2004-11-10T05:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418262#M626646</link>
      <description>OK. Since you have come this far run 'vgscan' and recreate the /etc/lvmtab without rtvg01.&lt;BR /&gt;&lt;BR /&gt;#cp /etc/lvmtab /etc/lvmtab.good&lt;BR /&gt;#vgscan -a&lt;BR /&gt;#strings /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;Make sure you get all VGs except rtvg01 in there. Once it is confirmed, you can go ahead and recreate this VG. Your vgdisplay -v etc., may complain but next reboot should take care of it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Nov 2004 05:46:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418262#M626646</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-10T05:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418263#M626647</link>
      <description>i did thos first three commands and i still can't do it.&lt;BR /&gt;&lt;BR /&gt;here is what i go&lt;BR /&gt;&lt;BR /&gt;if you could please explain how to do this all the way through including the sam part&lt;BR /&gt;&lt;BR /&gt;i need to create volume group rtvg01 and the the logical volumes rtd1 and rtd1v1 and the both need to be 2040mb big.&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Wed, 10 Nov 2004 06:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418263#M626647</guid>
      <dc:creator>Damien Brown</dc:creator>
      <dc:date>2004-11-10T06:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418264#M626648</link>
      <description>I am real drowsy.. OK.. one more time..&lt;BR /&gt;&lt;BR /&gt;#mv /etc/lvmtab /etc/lvmtab.junk&lt;BR /&gt;#vgscan -a&lt;BR /&gt;#strings /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;That should get you rid of rtvg01.. Post the output before you proceed. Your leftvg* are giving errors. Do you have them working at this time?.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Nov 2004 06:07:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418264#M626648</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-10T06:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418265#M626649</link>
      <description>sorry for causing so many headaches?&lt;BR /&gt;&lt;BR /&gt;i did that and it's looking pretty good&lt;BR /&gt;&lt;BR /&gt;here is what i got on the screen</description>
      <pubDate>Wed, 10 Nov 2004 06:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418265#M626649</guid>
      <dc:creator>Damien Brown</dc:creator>
      <dc:date>2004-11-10T06:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: New disk problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418266#M626650</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you verify the following now?.&lt;BR /&gt;&lt;BR /&gt;1. Are you sure the VGs leftvg01, leftvg02, leftvg03 not used anymore?. Obviously vgscan couldn't find the disks corresponding to them. &lt;BR /&gt;&lt;BR /&gt;2. Run 'mount -a'. You should see only errors related to rtvg01 unless you have bad entries in /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;3. Run 'lvlnboot -R' and make sure your 'lvlnboot -v' displays boot,root,swap and dump(optionally) lvols.&lt;BR /&gt;&lt;BR /&gt;4. Make sure everything is working fine. Your database, application etc.,. &lt;BR /&gt;&lt;BR /&gt;Once the above is confirmed, proceed with creating a new VG with c1t1d0.&lt;BR /&gt;&lt;BR /&gt;Since you have only one disk in the VG, you could use 'vgscan' command. However, it may not be used as a generic solution in this situation.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Nov 2004 06:20:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-disk-problem/m-p/3418266#M626650</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-10T06:20:33Z</dc:date>
    </item>
  </channel>
</rss>

