<?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: Physically removing a file system? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141876#M565276</link>
    <description>You indeed have to first unmount the filesystem, but then, what is the issue with the filesystem being there ?&lt;BR /&gt;Add the Logical volume to your device swap, and I assure you that not much will be left of the filesystem that was on it as soon as the system starts swapping to the volume.&lt;BR /&gt;There is no need to driop an LV and create one specific for swap. an LV is an LV and is just a storage area. What you do with it is up to you. Device swap does not need any pre-formatting, just use it.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Nov 2008 08:06:41 GMT</pubDate>
    <dc:creator>Wim Rombauts</dc:creator>
    <dc:date>2008-11-20T08:06:41Z</dc:date>
    <item>
      <title>Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141871#M565271</link>
      <description>I'm trying to remove a file system so I can use the logical volume as a swap device, but I can't find a command to remove the file system physically from the LVOL.&lt;BR /&gt;&lt;BR /&gt;I tried using "lvremove" then "lvcreate" but it still says the LV has a file system even though I'm not recreating one (i.e. I am NOT using newfs or mkfs).  It's as though using "lvremove" doesn't actually erase the data even though the man page says it does.&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Wed, 19 Nov 2008 20:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141871#M565271</guid>
      <dc:creator>Darren Eckhoff</dc:creator>
      <dc:date>2008-11-19T20:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141872#M565272</link>
      <description>Hi Darren:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I tried using "lvremove" then "lvcreate" but it still says the LV has a file system even though I'm not recreating one &lt;BR /&gt;&lt;BR /&gt;Post (exactly) the sequence of commands you have used, please, including how you then attempt to create your swap.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 19 Nov 2008 20:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141872#M565272</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-19T20:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141873#M565273</link>
      <description>You can delete the logical volume with lvremove and recreate it again for swap usage.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Wed, 19 Nov 2008 20:28:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141873#M565273</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-11-19T20:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141874#M565274</link>
      <description>umount the FS and use lvremove command to remove lvol. Then check with vgdisplay command for the new free space. Then do lvcreate for creating new FS. And use swapon command to make it as swap.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Thu, 20 Nov 2008 04:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141874#M565274</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-11-20T04:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141875#M565275</link>
      <description>I think you are not unmounted the filesystem before doing the lvremove command.&lt;BR /&gt;&lt;BR /&gt;Please unmount the FS.&lt;BR /&gt;Do a lvremove then do a lvcreate. It will work.&lt;BR /&gt;&lt;BR /&gt;Manoj K</description>
      <pubDate>Thu, 20 Nov 2008 04:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141875#M565275</guid>
      <dc:creator>ManojK_1</dc:creator>
      <dc:date>2008-11-20T04:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141876#M565276</link>
      <description>You indeed have to first unmount the filesystem, but then, what is the issue with the filesystem being there ?&lt;BR /&gt;Add the Logical volume to your device swap, and I assure you that not much will be left of the filesystem that was on it as soon as the system starts swapping to the volume.&lt;BR /&gt;There is no need to driop an LV and create one specific for swap. an LV is an LV and is just a storage area. What you do with it is up to you. Device swap does not need any pre-formatting, just use it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Nov 2008 08:06:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141876#M565276</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2008-11-20T08:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141877#M565277</link>
      <description>The only advantange is that if you wan't to add that swap device to your dump space, it has to be contigous, if not you can recreate using the lvcreate -C y&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Nov 2008 08:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141877#M565277</guid>
      <dc:creator>likid0</dc:creator>
      <dc:date>2008-11-20T08:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141878#M565278</link>
      <description>Yes, I've gone through all the steps mentioned, unmount filesystem, lvremove, lvcreate (with -C option), but as I said before, lvremove doesn't actually destroy the data.&lt;BR /&gt;&lt;BR /&gt;Here's an experiment I just did (this works on 11.23 and 11.31):&lt;BR /&gt;&lt;BR /&gt;=======================&lt;BR /&gt;# lvcreate -l 5 -n lvtest vg00&lt;BR /&gt;Logical volume "/dev/vg00/lvtest" has been successfully created with&lt;BR /&gt;character device "/dev/vg00/rlvtest".&lt;BR /&gt;Logical volume "/dev/vg00/lvtest" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;# newfs -F vxfs /dev/vg00/rlvtest&lt;BR /&gt;    version 5 layout&lt;BR /&gt;    81920 sectors, 81920 blocks of size 1024, log size 1024 blocks&lt;BR /&gt;    unlimited inodes, largefiles not supported&lt;BR /&gt;    81920 data blocks, 80808 free data blocks&lt;BR /&gt;    3 allocation units of 32768 blocks, 32768 data blocks&lt;BR /&gt;    last allocation unit has 16384 data blocks&lt;BR /&gt;# mkdir /test&lt;BR /&gt;# mount /dev/vg00/lvtest /test&lt;BR /&gt;# echo "test data" &amp;gt; /test/file1&lt;BR /&gt;# cat /test/file1&lt;BR /&gt;test data&lt;BR /&gt;# umount /test&lt;BR /&gt;# lvremove /dev/vg00/lvtest&lt;BR /&gt;The logical volume "/dev/vg00/lvtest" is not empty;&lt;BR /&gt;do you really want to delete the logical volume (y/n) : y&lt;BR /&gt;Logical volume "/dev/vg00/lvtest" has been successfully removed.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;# lvcreate -l 5 -n lvtest vg00&lt;BR /&gt;Logical volume "/dev/vg00/lvtest" has been successfully created with&lt;BR /&gt;character device "/dev/vg00/rlvtest".&lt;BR /&gt;Logical volume "/dev/vg00/lvtest" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;# mount /dev/vg00/lvtest /test&lt;BR /&gt;# cat /test/file1&lt;BR /&gt;test data&lt;BR /&gt;=====================&lt;BR /&gt;&lt;BR /&gt;Notice I did NOT rerun "newfs" the second time I made the LV.&lt;BR /&gt;&lt;BR /&gt;Try the above commands yourself.</description>
      <pubDate>Thu, 20 Nov 2008 12:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141878#M565278</guid>
      <dc:creator>Darren Eckhoff</dc:creator>
      <dc:date>2008-11-20T12:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141879#M565279</link>
      <description>Still, what's your problem ? &lt;BR /&gt;&lt;BR /&gt;Please unmount the filesystem, stop using lvremove and lvcreate and start using swapon on the logical volume and go ahead with your extra device swap.&lt;BR /&gt;&lt;BR /&gt;That was what you want to do, not ? Don't bother about the filesystem. It will be overwritten (and thereby destroyed) by swap activity.</description>
      <pubDate>Thu, 20 Nov 2008 12:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141879#M565279</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2008-11-20T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141880#M565280</link>
      <description>HI (again):&lt;BR /&gt;&lt;BR /&gt;Simply issuing 'lvremove' does not do anything to the underlying physical disk's data as you found aside from destroying the metadata in the LVM header that relates to the logical volume.  This is expected.&lt;BR /&gt;&lt;BR /&gt;Did you do your device swap creation along these lines?&lt;BR /&gt;&lt;BR /&gt;# lvcreate -C y -r n -l 5 -n lvolN /dev/vg00&lt;BR /&gt;&lt;BR /&gt;# swapon -p 0 /dev/vg00/lvolN&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Nov 2008 12:41:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141880#M565280</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-20T12:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141881#M565281</link>
      <description>By the way,&lt;BR /&gt;&lt;BR /&gt;lvremove does nothing more than remove a configuration line in the lvm configuration file and mark the extents as unused. It's like deleting a file : The pointer to the file in the directory is removed, and th block are set "available" but the effective file is still there.&lt;BR /&gt;&lt;BR /&gt;lvcreate does nothing more than adding a line in the lvm configuration file and mark the extents as used.&lt;BR /&gt;&lt;BR /&gt;So if you lvremove an LV and the lvcreate another LV of the same size, the filesystem will indeed be still there. Even if you lvcreate a smaller LV, the filesystem will seem to be there, until you write it full and the filesystem wants to access blocks that are now outside the LV.</description>
      <pubDate>Thu, 20 Nov 2008 12:42:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141881#M565281</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2008-11-20T12:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141882#M565282</link>
      <description>Ok thanks for the suggestion on just using swapon to destroy the file system.  At first I wasn't aware I could do this because it complains about the file system being there and won't activate.  That lead me to believe I had to first remove the file system with lvremove (and I'd like to point out that the man page for lvremove clearly says it destroys the data, which is inaccurate).&lt;BR /&gt;&lt;BR /&gt;Using the "-f" option with swapon did the trick.</description>
      <pubDate>Thu, 20 Nov 2008 13:30:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141882#M565282</guid>
      <dc:creator>Darren Eckhoff</dc:creator>
      <dc:date>2008-11-20T13:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Physically removing a file system?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141883#M565283</link>
      <description>Closing comment: "swapon -f" solved the problem.</description>
      <pubDate>Thu, 20 Nov 2008 15:17:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/physically-removing-a-file-system/m-p/5141883#M565283</guid>
      <dc:creator>Darren Eckhoff</dc:creator>
      <dc:date>2008-11-20T15:17:17Z</dc:date>
    </item>
  </channel>
</rss>

