<?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: Logical Volume problems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953194#M610144</link>
    <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;If you use these commmand you will have a fresh vg and lv, you will need to restore your data from backup.&lt;BR /&gt;&lt;BR /&gt;# bdf | grep lveva8&lt;BR /&gt;# umount (the lveva8 filesystem)&lt;BR /&gt;# vgchange -a n /dev/vg08&lt;BR /&gt;# vgexport /dev/vg08&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vg08&lt;BR /&gt;# mknod /dev/vg00/group c 64 0x080000&lt;BR /&gt;# pvcreate -f /dev/rdsk/c26t6d0&lt;BR /&gt;# vgcreate /dev/vg08 /dev/dsk/c20t0d6&lt;BR /&gt;# lvcreate -L XXXX -n lvsys8 /dev/vg08&lt;BR /&gt;# mkdir /u08&lt;BR /&gt;# mount /dev/vg08/lvsys8 /u08&lt;BR /&gt;edit the /etc/fstab and add the newly created filesystem.&lt;BR /&gt;Restore your data from backup.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
    <pubDate>Wed, 28 Feb 2007 15:53:43 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2007-02-28T15:53:43Z</dc:date>
    <item>
      <title>Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953190#M610140</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;last year my colleague create the "vg08" and lvcreate the "lvsys8" mount on /u08. But yesterday I found the lvsys8 disappear, &lt;BR /&gt;# find / -name lvsys8 couldnot find it and no any LV info in /dev/vg08. &lt;BR /&gt;# Vgdisplay -v /dev/vg08 no any lv info&lt;BR /&gt;# pvdisplay /dev/dsk/c20t0d6&lt;BR /&gt;--- Physical volumes ---&lt;BR /&gt;PV Name                     /dev/dsk/c20t0d6&lt;BR /&gt;VG Name                     /dev/vg08&lt;BR /&gt;PV Status                   available&lt;BR /&gt;Allocatable                 yes&lt;BR /&gt;VGDA                        2&lt;BR /&gt;Cur LV                      0&lt;BR /&gt;PE Size (Mbytes)            16&lt;BR /&gt;Total PE                    31995&lt;BR /&gt;Free PE                     0&lt;BR /&gt;Allocated PE                31995&lt;BR /&gt;Stale PE                    0&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;Autoswitch                  On&lt;BR /&gt;The output displayed 31995 have been allocated to LV, but Cur LV = 0, no LV in the PV&lt;BR /&gt;&lt;BR /&gt;so I have re-lvcreated lvsys8 for vg08, but system warnning&lt;BR /&gt;lvcreate: Not enough free physical extents available.&lt;BR /&gt;Logical volume "/dev/vg08/lvsys8" could not be extended.&lt;BR /&gt;Run the "lvextend" command to create space on the Logical Volume.&lt;BR /&gt;# ll /dev/vg08&lt;BR /&gt;total 0&lt;BR /&gt;crw-r-----   1 root       sys         64 0x080000 Feb 26 12:01 group&lt;BR /&gt;brw-r-----   1 root       sys         64 0x080002 Feb 28 11:28 lveva8&lt;BR /&gt;crw-r-----   1 root       sys         64 0x080002 Feb 28 11:28 rlveva8&lt;BR /&gt;&lt;BR /&gt;the number is "2" 0x080002, I think it must have 0x080001 old lv exist, but I could not find it and del it. My new created LV no space in this Vg08, How I can do, urgent!&lt;BR /&gt;thank you very much ITSC experts.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2007 11:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953190#M610140</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2007-02-28T11:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953191#M610141</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;Seems that the disk that was holding this logical volume is missing. &lt;BR /&gt;&lt;BR /&gt;Perhaps you should run dmesg and check /var/adm/syslog/syslog.log for error messages and see why the logical volume disappeared and correct this problem before trying to re-create.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 28 Feb 2007 11:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953191#M610141</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-02-28T11:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953192#M610142</link>
      <description>Hi Steven E. Protter,&lt;BR /&gt;thank you very much for your quickly reply and your kindly helps&lt;BR /&gt;&lt;BR /&gt;# strings /etc/lvmtab output info as below:&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c2t1d0&lt;BR /&gt;/dev/dsk/c2t0d0&lt;BR /&gt;/dev/vg01&lt;BR /&gt;}B;\&lt;BR /&gt;/dev/dsk/c20t0d0&lt;BR /&gt;/dev/vg02&lt;BR /&gt;/dev/dsk/c20t0d1&lt;BR /&gt;/dev/vg03&lt;BR /&gt;/dev/dsk/c20t0d2&lt;BR /&gt;/dev/vg04&lt;BR /&gt;/dev/dsk/c20t0d3&lt;BR /&gt;/dev/vg05&lt;BR /&gt;/dev/dsk/c20t0d4&lt;BR /&gt;/dev/vg06&lt;BR /&gt;/dev/dsk/c20t0d5&lt;BR /&gt;/dev/vg08&lt;BR /&gt;}E$Z&lt;BR /&gt;/dev/dsk/c20t0d6&lt;BR /&gt;&lt;BR /&gt;vg08 and c20t0d6 these vg and pv have some problems.&lt;BR /&gt;&lt;BR /&gt;I have checked dmesg and syslog, could not found the reason of lv disappear, so whether I could remove the lvsys8 both old and new and remove whole vg08 and recreate the vg08 and recreate the lvsys8. If i could, would you pls tell me the safty way and step to remove the lv and vg, &lt;BR /&gt;thanks</description>
      <pubDate>Wed, 28 Feb 2007 12:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953192#M610142</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2007-02-28T12:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953193#M610143</link>
      <description>You might try this:&lt;BR /&gt;&lt;BR /&gt;unmount /u08 &lt;BR /&gt;&lt;BR /&gt;vgexport /dev/vg08&lt;BR /&gt;&lt;BR /&gt;this will remove the info from /etc/lvmtab and the /dev/vg08 dir and any special files in that directory. But the volume group info on the disk will still be there.&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg08&lt;BR /&gt;mknod /dev/vg08/group c 64 0x080000&lt;BR /&gt;vgimport vg08 /dev/dsk/c20t0d6&lt;BR /&gt;&lt;BR /&gt;this will add the volume group and scan any volume group and logical volume info off the disk. Hopefully the lvol info will be read and your lvsys8 will be there.</description>
      <pubDate>Wed, 28 Feb 2007 15:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953193#M610143</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-02-28T15:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953194#M610144</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;If you use these commmand you will have a fresh vg and lv, you will need to restore your data from backup.&lt;BR /&gt;&lt;BR /&gt;# bdf | grep lveva8&lt;BR /&gt;# umount (the lveva8 filesystem)&lt;BR /&gt;# vgchange -a n /dev/vg08&lt;BR /&gt;# vgexport /dev/vg08&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vg08&lt;BR /&gt;# mknod /dev/vg00/group c 64 0x080000&lt;BR /&gt;# pvcreate -f /dev/rdsk/c26t6d0&lt;BR /&gt;# vgcreate /dev/vg08 /dev/dsk/c20t0d6&lt;BR /&gt;# lvcreate -L XXXX -n lvsys8 /dev/vg08&lt;BR /&gt;# mkdir /u08&lt;BR /&gt;# mount /dev/vg08/lvsys8 /u08&lt;BR /&gt;edit the /etc/fstab and add the newly created filesystem.&lt;BR /&gt;Restore your data from backup.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 28 Feb 2007 15:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953194#M610144</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2007-02-28T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953195#M610145</link>
      <description>Sounds like someone simply removed the device special files for lvsys8.&lt;BR /&gt;&lt;BR /&gt;To confirm, pvdisplay -v /dev/dsk/c20t0d6... you'll see "???" displayed for the PE to LE mappings instead of the expected "/dev/vg08/lvsys8". This means the lvol wasn't removed via lvremove, just the device special files were removed.&lt;BR /&gt;&lt;BR /&gt;Recreate the block and character device special file to resolve. You can either vgexport/vgimport or mknod. The tricky part about creating the device special files is trying to figure out what the minor number would have been... I'd guess 0x??0008 based on the old lvname. where 0x?? = 1st 2 hex from the vg's group file. (ll /dev/vg08/group)&lt;BR /&gt;&lt;BR /&gt;Safest bet is for you to export and import. When you export, the map file won't contain your "missing" lvol. However, it will be there after the import because it was never removed. Your import will display something like "begin import... lv number "X" found but not in the map file... lv lvolX has been added"&lt;BR /&gt;&lt;BR /&gt;To export import and get your lv back:&lt;BR /&gt;&lt;BR /&gt;vgchange -a n /dev/vg08&lt;BR /&gt;vgexport -v -s -m /tmp/vg08.map vg08&lt;BR /&gt;mkdir /dev/vg08&lt;BR /&gt;mknod /dev/vg08/group c 64 0x??0000  &lt;BR /&gt;#&amp;lt;-use same "0x??" number as before export&lt;BR /&gt;vgimport -v -s -m /tmp/vg08.map /dev/vg08&lt;BR /&gt;vgchange -a y /dev/vg08&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;-denver</description>
      <pubDate>Wed, 28 Feb 2007 22:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953195#M610145</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-02-28T22:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953196#M610146</link>
      <description>d'oh. this was a no brainer.. ;)&lt;BR /&gt;&lt;BR /&gt;I missed the last 10 lines of your post. You did an lvcreate and it incremented to 02. The original lvol was 01.&lt;BR /&gt;&lt;BR /&gt;Forget export/import.&lt;BR /&gt;&lt;BR /&gt;mknod /dev/vg08/lvsys8 b 64 0x080001&lt;BR /&gt;mknod /dev/vg08/rlvsys8 c 64 0x080001&lt;BR /&gt;&lt;BR /&gt;After you mknod, it should be good to go.&lt;BR /&gt;&lt;BR /&gt;-denver&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2007 22:43:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953196#M610146</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-02-28T22:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953197#M610147</link>
      <description>Hi Gary, I stumbled across your initial thread... what prompted you to run vgscan then eventualy a vgcfgrestore to c20t0d6? If your mount of lvsys8 fails after mknod, are you expecting the lun to have data on it?&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Wed, 28 Feb 2007 23:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953197#M610147</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-02-28T23:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953198#M610148</link>
      <description>Hi buddies&lt;BR /&gt;&lt;BR /&gt;thank you very much for your kindly helps, thanks Steven E. Protter, Court Campbell, Robert-Jan and Denver.&lt;BR /&gt;&lt;BR /&gt;As you know, yesterday afternoon ITRS Forums have some problems, I could not access and got your information, so I tried use vgcfgrestore make the PV status from unavailable to available. And used vgexport and vgimport to fixed LV "missing"'s problems, problem be fixed. This morning I check the forums, ha ha ha, we thought the same things. But i met a little bit problems, when I used vgimport, the system restored lvol1 and rlvol1 LV not my past lvsys8 and rlvsys8, but it was a happy things I found out the missing LV, but i don't know whether this lvol1 was my past lvsys8 and I have no idea how to rename LV, so I used stupid way, removed the lvol1 and re-created the lvsys8 for /dev/vg08, would you please tell me a right way to vgexport and vgimport lvsys8 directly not lvol1. Thanks! &lt;BR /&gt;Yes, the reason of the LV missing Vgdisplay couldn't see it but LV still in disk was someone rm the lvsys8 didn't use lvremove, sigh! &lt;BR /&gt;&lt;BR /&gt;Thanks again! I hope I could give you 100 points</description>
      <pubDate>Thu, 01 Mar 2007 08:44:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953198#M610148</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2007-03-01T08:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953199#M610149</link>
      <description>one more question:&lt;BR /&gt;&lt;BR /&gt;after vgexport/vgimport, I got the lvsys8 and rlvsys8. Whether I should do:&lt;BR /&gt;&lt;BR /&gt;#newfs -F vxfs -o largefiles /dev/vg08/rlvsys8&lt;BR /&gt;&lt;BR /&gt;and mount lvsys8 /u08 ?&lt;BR /&gt;&lt;BR /&gt;-gary</description>
      <pubDate>Thu, 01 Mar 2007 09:00:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953199#M610149</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2007-03-01T09:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953200#M610150</link>
      <description>Gary,&lt;BR /&gt;&lt;BR /&gt;check the file system in the LV using fstyp. If the File system is already created then there is no need to do newfs.&lt;BR /&gt;&lt;BR /&gt;doing newfs will destroy your data.</description>
      <pubDate>Thu, 01 Mar 2007 09:18:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953200#M610150</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2007-03-01T09:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953201#M610151</link>
      <description>Thanks, sunny&lt;BR /&gt;&lt;BR /&gt;the file system already exist, no need to newfs, thanks again&lt;BR /&gt;&lt;BR /&gt;have a great day</description>
      <pubDate>Thu, 01 Mar 2007 09:38:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953201#M610151</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2007-03-01T09:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953202#M610152</link>
      <description>After importing, the "lvol1" was your missing "lvsys8" volume. When using vgimport it checked the lvm data and determined that there were existing lvols. When importing the vg using a map file, the lvols are assigned names based on the contents of your map file. Since the map file didn't contain "1 lvsys8" the import assigned it the generic lvol1 name.&lt;BR /&gt;&lt;BR /&gt;You're fine to rename the lvol1 and rlvol1 device special file after the import.&lt;BR /&gt;&lt;BR /&gt;The only thing you may have done different is to have looked at lvol1 (lvsys8) before deciding to newfs. Running 'fstyp -v /dev/vg08/rlvsys8' would show specs about the filesystem type had there been one. If it came back w/ details about a filesystem, then mounting it or using fsck as needed would've been your next step.&lt;BR /&gt;&lt;BR /&gt;Anyhow, looks like you've got things where you need them to be.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Thu, 01 Mar 2007 09:46:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953202#M610152</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-03-01T09:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953203#M610153</link>
      <description>thanks Denver&lt;BR /&gt;&lt;BR /&gt;what is the safety way to rename a logic volume lvsys8 and rlvsys8, ditectly use "mv" &lt;BR /&gt;# mv lvol1 lvsys8&lt;BR /&gt;# mv rlvol1 rlvsys8 ?&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;-Gary</description>
      <pubDate>Thu, 01 Mar 2007 10:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953203#M610153</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2007-03-01T10:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953204#M610154</link>
      <description>Yup, that's what I'd do. Unmount it if it's mounted, then 'mv lvol1 lvsys8' and 'mv rlvol1 rlvsys8'. If you'd added it to the /etc/fstab before renaming, of course you'll need to update the fstab entry too.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Thu, 01 Mar 2007 10:47:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953204#M610154</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-03-01T10:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953205#M610155</link>
      <description>got it, thx denver&lt;BR /&gt;hava a great day&lt;BR /&gt;&lt;BR /&gt;-Gary</description>
      <pubDate>Thu, 01 Mar 2007 10:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-problems/m-p/3953205#M610155</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2007-03-01T10:55:34Z</dc:date>
    </item>
  </channel>
</rss>

