<?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: After re-creating lvol, bdf shows old size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642650#M646434</link>
    <description>Hi Brad:&lt;BR /&gt;&lt;BR /&gt;Forgot the 'newfs' command...see my postscript in your original post! ;-)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6a2bcb60e503d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6a2bcb60e503d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 10 Jan 2002 23:56:48 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-01-10T23:56:48Z</dc:date>
    <item>
      <title>After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642626#M646410</link>
      <description>Per your advice, I backed-up, removed, and re-defined a lvol that I wanted to reduce in size.&lt;BR /&gt;Problem is: bdf reports the old value of the lvol's size. I trimmed it WAY down from 1gb. to 100mb.&lt;BR /&gt;Is there a file that has the old value(s) and needs to be tweaked?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Brad</description>
      <pubDate>Thu, 10 Jan 2002 21:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642626#M646410</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2002-01-10T21:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642627#M646411</link>
      <description>What steps did you take?&lt;BR /&gt;&lt;BR /&gt;Did you remove the LV (lvremove) and then recreate it (lvcreate)? Or did you do an lvreduce?&lt;BR /&gt;&lt;BR /&gt;Did you use newfs or fsadm on the new LV?  Is it hfs or vxfs?&lt;BR /&gt;&lt;BR /&gt;A little more information would be helpful.&lt;BR /&gt;&lt;BR /&gt;Can you show the output of bdf for the LV?</description>
      <pubDate>Thu, 10 Jan 2002 21:57:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642627#M646411</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-01-10T21:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642628#M646412</link>
      <description>Brad,&lt;BR /&gt;&lt;BR /&gt;I assume you following the following steps after taking the backup of /usr1.&lt;BR /&gt;&lt;BR /&gt;1. lvremove /dev/vg0x/lvolx&lt;BR /&gt;2. lvcreate -n lvolx -L 100 /dev/vg0x/lvolx&lt;BR /&gt;3. newfs -F vxfs /dev/vg0x/rvolx&lt;BR /&gt;4. Copy the data back&lt;BR /&gt;&lt;BR /&gt;If you followed the above process, you should be seeing only 100MB. I see two possibilities with your problem &lt;BR /&gt;&lt;BR /&gt;1. Either you mistakenly mentioned 1000 instead of 100 during the lvcreate OR&lt;BR /&gt;2. You didn't use the above procedure but lvreduced the same lvol without unmounting the&lt;BR /&gt;file system. If so, try to unmount and mount the file system again. If this doesn't fix the problem, following the above procedure.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 21:57:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642628#M646412</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-10T21:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642629#M646413</link>
      <description>Taking what you say at face value, it appears that you did an online resizing of the lvol but did not resize the filesystem. Probably your safest bet is to do a newfs on this lvol and restore from backup. You could try resizing the filesystem via fsadm -F vxfs but I would feel safer using newfs now if and only if you have a known good backup. The other possibility is that you built a brand new lvol and are loking at the old.</description>
      <pubDate>Thu, 10 Jan 2002 21:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642629#M646413</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-10T21:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642630#M646414</link>
      <description>Small correction in my above message..&lt;BR /&gt;&lt;BR /&gt;2. lvcreate -n lvolx -L 100 /dev/vg0x&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 10 Jan 2002 21:59:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642630#M646414</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-10T21:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642631#M646415</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Did you create a new file system with 'newfs' command ? Does the 'lvdisplay -v' shows the correct size ? Can you do an 'fsck'on the LV to correct the problem ?&lt;BR /&gt;&lt;BR /&gt;These are the normal steps:&lt;BR /&gt;&lt;BR /&gt;1)backup file system&lt;BR /&gt;2)Remove LV (lvremove)&lt;BR /&gt;3)Create new LV (lvcreate -L new_size)&lt;BR /&gt;4)Create file system (newfs)&lt;BR /&gt;5)Restore backup&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 10 Jan 2002 21:59:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642631#M646415</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-01-10T21:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642632#M646416</link>
      <description>Hi Brad,&lt;BR /&gt;&lt;BR /&gt;Did you remove the lv completely and then recreated it ?. It should not take anything from the old lv. There are two file in /dev/vg_name called lv_name and rlv_name. Here vg_name is the name of the VG to which this lv belongs and lv_name is the name of the lv. the rlv_name is the name of the raw file for the lv. &lt;BR /&gt;&lt;BR /&gt;When you remove the lv, it removed both the files and that removes all the lv info. Then you create a new lv and it recreates the file and recreated the lv on the disk as per size specified. Then you do a "newfs" on this lv to create a new filesystem and then add this lv info in /etc/fstab to mount the lv automatically during system boot.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 21:59:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642632#M646416</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-10T21:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642633#M646417</link>
      <description>Sorry about the lack of info...&lt;BR /&gt;&lt;BR /&gt;Here's the bdf output:&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol9    1024000    1363  958728    0% /usr2&lt;BR /&gt;&lt;BR /&gt;I used SAM to remove the lvol and also to create the new lvol. The lvol type is vxfs. Since no one suggested that I use SAM, was SAM a mistake?&lt;BR /&gt;Per Sri's suggestion I unmounted and remounted the lvol, but to no avail.&lt;BR /&gt;&lt;BR /&gt;Since I've not restored data, I can re-recreate it if need be.&lt;BR /&gt;&lt;BR /&gt;Thanks for the helpful and speedy responses!&lt;BR /&gt;&lt;BR /&gt;Brad</description>
      <pubDate>Thu, 10 Jan 2002 22:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642633#M646417</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2002-01-10T22:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642634#M646418</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Using SAM is good for these tasks. Did you create a file system after creating the lvol ?&lt;BR /&gt;&lt;BR /&gt;Can u do an lvdisplay -v /dev/vgxx/lvolx&lt;BR /&gt;&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 10 Jan 2002 22:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642634#M646418</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-01-10T22:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642635#M646419</link>
      <description>Hi Brad,&lt;BR /&gt;&lt;BR /&gt;If it is a simple lv creation with no strings then it is okay to do the removal and recreation through SAM. Give it one more try. I still don't understand why it didn't work in the first place. Hope there was no error during the lv removal and recreation phase.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 22:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642635#M646419</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-10T22:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642636#M646420</link>
      <description>Hi,&lt;BR /&gt;No problem doing this with SAM.  Try doing this time with command line one more time since you havn't restored data. This would give you chance if there are any errors during each command.&lt;BR /&gt;&lt;BR /&gt;What does lvdisplay -v /dev/vgnn/lvnn shows..??&lt;BR /&gt;&lt;BR /&gt;Reduce the logical volume to the needed size: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# lvreduce -L [lv_size_MB] /dev/vgnn/lvolnn&lt;BR /&gt;&lt;BR /&gt;-Goodluck&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 22:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642636#M646420</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-01-10T22:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642637#M646421</link>
      <description>Shiju,&lt;BR /&gt;Yes I can do a lvdisplay; the results are attached.&lt;BR /&gt;&lt;BR /&gt;I guess I'm going to do a lvremove&lt;BR /&gt;lvcreate&lt;BR /&gt;newfs&lt;BR /&gt;&lt;BR /&gt;We'll see what happens...</description>
      <pubDate>Thu, 10 Jan 2002 22:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642637#M646421</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2002-01-10T22:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642638#M646422</link>
      <description>Hi Brad,&lt;BR /&gt;&lt;BR /&gt;The lvdisplay shows the correct size of the file system. Try this:&lt;BR /&gt;&lt;BR /&gt;# newfs -F fs_type /dev/vg00/rlvol9&lt;BR /&gt;# mount /dev/vg00/lvol9 /mount_dir&lt;BR /&gt;# bdf&lt;BR /&gt;&lt;BR /&gt;Also do an fsck on the lvol for any errors.&lt;BR /&gt;&lt;BR /&gt;# fsck /dev/vg00/rlvol9&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 10 Jan 2002 22:34:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642638#M646422</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-01-10T22:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642639#M646423</link>
      <description>I was successful with the lvremove, but the lvcreate had this to say:&lt;BR /&gt;"# lvcreate -n lvol9 -L 100 /dev/vg00/lvolx&lt;BR /&gt;&lt;BR /&gt;lvcreate: Volume group "/dev/vg00/lvolx" does not exist in the "/etc/lvmtab" fil&lt;BR /&gt;e."&lt;BR /&gt;&lt;BR /&gt;I've attached /etc/lvmtab for your viewing pleasure.&lt;BR /&gt;&lt;BR /&gt;What should I do now?&lt;BR /&gt;&lt;BR /&gt;BAM</description>
      <pubDate>Thu, 10 Jan 2002 22:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642639#M646423</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2002-01-10T22:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642640#M646424</link>
      <description>...and, by the way, I DIDN'T use "lvolx" I DID use "lvol9" with the same exact result.</description>
      <pubDate>Thu, 10 Jan 2002 22:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642640#M646424</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2002-01-10T22:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642641#M646425</link>
      <description>Hi Brad,&lt;BR /&gt;&lt;BR /&gt;you lvdisplay output shows the size of the lv as 100MB.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 22:46:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642641#M646425</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-10T22:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642642#M646426</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lvdisplay looks good what about bdf..??&lt;BR /&gt;&lt;BR /&gt;Try recreating lvmtab by vgscan. First have a copy of lvmtab then run vgscan&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Thu, 10 Jan 2002 22:54:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642642#M646426</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-01-10T22:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642643#M646427</link>
      <description>Brad,&lt;BR /&gt;&lt;BR /&gt;Check my correction. Your commmadn should be&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lvol9 -L 100 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 10 Jan 2002 22:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642643#M646427</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-10T22:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642644#M646428</link>
      <description>Hi Brad,&lt;BR /&gt;&lt;BR /&gt;The last lvcreate error you report is because the last argument should be the VG name, not an LV name:&lt;BR /&gt;lvcreate -n lvol9 -L 100 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 10 Jan 2002 22:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642644#M646428</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-01-10T22:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: After re-creating lvol, bdf shows old size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642645#M646429</link>
      <description>Okay, I got lvcreate to work. lvdisplay looks good (in that the size is 100). But.... bdf still says 1gb.!&lt;BR /&gt;Any other suggestions?</description>
      <pubDate>Thu, 10 Jan 2002 23:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/after-re-creating-lvol-bdf-shows-old-size/m-p/2642645#M646429</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2002-01-10T23:03:03Z</dc:date>
    </item>
  </channel>
</rss>

