<?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: How to remove a disk? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073661#M439129</link>
    <description>Doing a sar -d 5 5, and sar -d 2 10 gives no activity on the disk in question.  So is there anything else I can do before I pull the disk out?</description>
    <pubDate>Thu, 11 Oct 2007 08:41:31 GMT</pubDate>
    <dc:creator>GBR</dc:creator>
    <dc:date>2007-10-11T08:41:31Z</dc:date>
    <item>
      <title>How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073651#M439119</link>
      <description>I would like to remove a 34G disk from my HP-UX server, but before I do how can I confirm that it is not being used?&lt;BR /&gt;&lt;BR /&gt;I will reward points.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;GBR</description>
      <pubDate>Thu, 11 Oct 2007 07:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073651#M439119</guid>
      <dc:creator>GBR</dc:creator>
      <dc:date>2007-10-11T07:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073652#M439120</link>
      <description>Get the device file and check if it is in use by LVM.&lt;BR /&gt;&lt;BR /&gt;search in&lt;BR /&gt;/strings/lvmtab or vgdisplay ...&lt;BR /&gt;&lt;BR /&gt;inspect the disk&lt;BR /&gt;pvdisplay -v ...&lt;BR /&gt;&lt;BR /&gt;Ask yourself or your documentation if the disk is in use directly without LVM, maybe directly as a raw device.&lt;BR /&gt;&lt;BR /&gt;If needed, remove the disk from LVM (vgreduce/vgremove) and the device files too (rmsf). Finally remove the disk.</description>
      <pubDate>Thu, 11 Oct 2007 07:35:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073652#M439120</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2007-10-11T07:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073653#M439121</link>
      <description>The real danger here is if the disk is in use as a raw device, typically used for a data base.  How you detect that will depend on the type of data base and how the raw devices are defined to it.  Check your system documentation, check with your DBA, check with any other admins who might have knowledge concerning this system.  In other words, proceed with caution.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 11 Oct 2007 07:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073653#M439121</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-10-11T07:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073654#M439122</link>
      <description>sam -&amp;gt; filesystems and disks -&amp;gt; disks&lt;BR /&gt;&lt;BR /&gt;will show you if the disc is in a VG.&lt;BR /&gt;&lt;BR /&gt;bdf -l will tell you if there are any filesystems on the VG. If there are and you are not sure if they are used:&lt;BR /&gt;&lt;BR /&gt;cd /suspect_filesystem &lt;BR /&gt;find . -atime -7 -print&lt;BR /&gt;&lt;BR /&gt;will give you a list of files in the suspect filesystem that have been accessed within the last week (but note that backing up to tape counts as access).&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Oct 2007 07:40:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073654#M439122</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2007-10-11T07:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073655#M439123</link>
      <description>Torsten and Pete raise a good point that I had overlooked. If you are using a database, please igonre my suggestion.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 11 Oct 2007 07:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073655#M439123</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2007-10-11T07:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073656#M439124</link>
      <description>And there are not only databases.&lt;BR /&gt;&lt;BR /&gt;Some admins are using "dd" to create an emergency copy of the (boot) disk, some have HPVM installed ... to be sure you NEED to have a good documentation of your setup.</description>
      <pubDate>Thu, 11 Oct 2007 08:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073656#M439124</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2007-10-11T08:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073657#M439125</link>
      <description>The disk in question belongs to no VG.  Does that still mean something may be using it?</description>
      <pubDate>Thu, 11 Oct 2007 08:06:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073657#M439125</guid>
      <dc:creator>GBR</dc:creator>
      <dc:date>2007-10-11T08:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073658#M439126</link>
      <description>Are you running a DB?  Oracle?  Informix?  Sybase?  Or some other?  If you are, then there is a fairly strong possibility that the DB may be using the disk as a raw volume, either through LVM or natively.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 11 Oct 2007 08:17:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073658#M439126</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-10-11T08:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073659#M439127</link>
      <description>We're running on HP OVO Oracle db.  I'm not sure how to tell though if the db is attached to the disk.</description>
      <pubDate>Thu, 11 Oct 2007 08:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073659#M439127</guid>
      <dc:creator>GBR</dc:creator>
      <dc:date>2007-10-11T08:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073660#M439128</link>
      <description>And what if he is running VXVM and not lvm?&lt;BR /&gt;&lt;BR /&gt;Check with vxdiskadm&lt;BR /&gt;&lt;BR /&gt;Also, look at sar data - is there any i/o on the disk itself?&lt;BR /&gt;&lt;BR /&gt;sar -d&lt;BR /&gt;&lt;BR /&gt;Make sure you have good backups...&lt;BR /&gt;&lt;BR /&gt;Then, shut the server down, pull the disk....reboot...&lt;BR /&gt;&lt;BR /&gt;Is everything working?&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 11 Oct 2007 08:28:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073660#M439128</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-10-11T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073661#M439129</link>
      <description>Doing a sar -d 5 5, and sar -d 2 10 gives no activity on the disk in question.  So is there anything else I can do before I pull the disk out?</description>
      <pubDate>Thu, 11 Oct 2007 08:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073661#M439129</guid>
      <dc:creator>GBR</dc:creator>
      <dc:date>2007-10-11T08:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073662#M439130</link>
      <description>make sure you backup the disk and more importantly that you verfiy the contents of the media you have completed the backed.</description>
      <pubDate>Thu, 11 Oct 2007 09:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073662#M439130</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2007-10-11T09:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073663#M439131</link>
      <description>Sadly, it's almost impossible to know that a disk is not being used. It's very easy to know that a disk is in use but it is very, very difficult to know that it is not being used. The common use is by databases and you can write SQL scripts to identify them but there could be many applications which use raw devices as well --- and the only way to know is to examine the applications themselvers. Fortunately, this type of usage is rare but the only way to protect yourself from harm is to document, document, document. This is one of those cases that if you have to ask then it's too late because the documentation doesn't exist. Now having said all of this, if the disk is not being used by LVM or VxVM, it's not being used as a swap device, it's not being used as a lifeboat boot disk, and not being used as a database device (and OV/O by default uses cooked files for its Oracle data) then you are probably safe.</description>
      <pubDate>Thu, 11 Oct 2007 09:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073663#M439131</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-10-11T09:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073664#M439132</link>
      <description>There's three ways to find out about raw volumes (once you have ruled out any association with :&lt;BR /&gt; &lt;BR /&gt;- check in /etc/fstab for swap referring to the raw devicefile. If found, you'll need to remove the entry in fstab then reboot sometime in the future. You cannot remove swap space from a running system as it is permanently assigned at bootup.&lt;BR /&gt; &lt;BR /&gt;- check with your database administrator. Configuring Oracle will require knowing which disks are used and in which manner (ie, taw for filesystem).&lt;BR /&gt; &lt;BR /&gt;- and the guaranteed-to-work method: pull out the disk and look for errors. It seems brutal but there's no other way once the above methods have been tried.</description>
      <pubDate>Thu, 11 Oct 2007 09:31:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073664#M439132</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-10-11T09:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073665#M439133</link>
      <description>... and even the "yank the disk and look for errors (or loud user screams)" is not foolproof because if the mystery application is not in use at the time of removal then there will be no screams (until later).&lt;BR /&gt;&lt;BR /&gt;My method of dealing with this is when a disk/LUN is first made available to a system (and even if I know that I am immediately going to use this disk under LVM, for example) I run a small C program that writes an 80-byte string and then a series of increasing 4-byte integers to the 1st 1MiB of the disk. If that pattern is undisturbed then I have a very good indicator (though not foolproof) that the disk has not be in use. Of course, in addition to this, I also document the usage.</description>
      <pubDate>Thu, 11 Oct 2007 09:43:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073665#M439133</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-10-11T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a disk?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073666#M439134</link>
      <description>Thanks everyone.</description>
      <pubDate>Thu, 27 Nov 2008 15:25:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5073666#M439134</guid>
      <dc:creator>GBR</dc:creator>
      <dc:date>2008-11-27T15:25:00Z</dc:date>
    </item>
  </channel>
</rss>

