<?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: Space on disk taken by nothing...?!?!? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809604#M637571</link>
    <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;When a program (process) opens a file, it uses a file descriptor.  &lt;BR /&gt;&lt;BR /&gt;If you delete the file, and the process is still running.  The space is not released until the file descriptor is closed. This is usually done by killing the process.&lt;BR /&gt;&lt;BR /&gt;Commonly, I have seen new admins rm /var/adm/syslog/syslog.log inorder ot free space.&lt;BR /&gt;&lt;BR /&gt;The problem is that the space will not be freed until syslogd is stopped.&lt;BR /&gt;&lt;BR /&gt;"fuser" might have found your problem &lt;BR /&gt;&lt;BR /&gt;for instance &lt;BR /&gt;fuser -u /dev/vg00/lvol4 (which is my /tmp) You would find what process have files opened in tmp.  Which would hopefully give you a clue to the errant program.&lt;BR /&gt;&lt;BR /&gt;When removing\reduceing logfiles.  It is a good practice to do a fuser on the file to see if it is has attached process.  If this is the case ZERO out the file instead of removeing it &lt;BR /&gt;(echo "" &amp;gt; badlog</description>
    <pubDate>Fri, 20 Sep 2002 17:06:55 GMT</pubDate>
    <dc:creator>Rory R Hammond</dc:creator>
    <dc:date>2002-09-20T17:06:55Z</dc:date>
    <item>
      <title>Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809591#M637558</link>
      <description>Hi guys!&lt;BR /&gt;&lt;BR /&gt;I have a drive in one of my server that when I use the "bdf" command it show me that data use 17GB so the drive is full at 97%... But when I use "du -k /basedir" it show me that all the data take only 15GB.. So I've lost 2GB I don't know where... &lt;BR /&gt;&lt;BR /&gt;This drive is an 18GB Disk and it is configured alone in is volume group and has only one logical volume represented by my basedir... &lt;BR /&gt;&lt;BR /&gt;any idea of what append???&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Jonathan</description>
      <pubDate>Thu, 19 Sep 2002 12:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809591#M637558</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2002-09-19T12:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809592#M637559</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Have a look at the output of:-&lt;BR /&gt;&lt;BR /&gt;diskinfo&lt;BR /&gt;vgdisplay&lt;BR /&gt;lvdisplay&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your answer shuold be there.&lt;BR /&gt;&lt;BR /&gt;Hth&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 19 Sep 2002 12:30:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809592#M637559</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-09-19T12:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809593#M637560</link>
      <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;Are you sure?  If I use the following example from one of my systems:&lt;BR /&gt;&lt;BR /&gt;root# bdf /var&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol8    11829248 6211554 5448870   53% /var&lt;BR /&gt;root# du -sk /var&lt;BR /&gt;6174410 /var&lt;BR /&gt;&lt;BR /&gt;You see a substantial difference between the bdf and du results but you need to remember that du reports blocks.  So that's 6174410 1024K blocks, or 6322595840 bytes, which is even more than what bdf shows.  &lt;BR /&gt;&lt;BR /&gt;Just different tools.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 19 Sep 2002 12:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809593#M637560</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-09-19T12:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809594#M637561</link>
      <description>Hi Paula,&lt;BR /&gt;&lt;BR /&gt;All my space is already allowed on that drive.. I've no Free PE left...&lt;BR /&gt;&lt;BR /&gt;What else should I look for in diskinfo, vgdisplay or lvdisplay???</description>
      <pubDate>Thu, 19 Sep 2002 12:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809594#M637561</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2002-09-19T12:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809595#M637562</link>
      <description>Hi Jonathan:&lt;BR /&gt;&lt;BR /&gt;The difference may be due to the presence of one or more 'sparse' files.  'core' files fall into this category as do some database files.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 19 Sep 2002 12:41:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809595#M637562</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-19T12:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809596#M637563</link>
      <description>Hi Pete.. &lt;BR /&gt;&lt;BR /&gt;I know for that difference.. but could it bee like a 2GB of diffenrence between those two tools??? that's weird for me... look at what I got with bdf /psoftext:&lt;BR /&gt;(root)system:/# bdf /psoftext&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg04/lvol1    17776640 17264425  487629   97% /psoftext&lt;BR /&gt;&lt;BR /&gt;and with du -sk /psoftext:&lt;BR /&gt;(root)system:/# du -sk /psoftext&lt;BR /&gt;15140273        /psoftext</description>
      <pubDate>Thu, 19 Sep 2002 12:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809596#M637563</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2002-09-19T12:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809597#M637564</link>
      <description>Hi James...&lt;BR /&gt;&lt;BR /&gt;could be the answer.. I've some databases on that filesystem...&lt;BR /&gt;&lt;BR /&gt;I'll check!!&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Sep 2002 12:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809597#M637564</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2002-09-19T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809598#M637565</link>
      <description>Hi (again) Jonathan:&lt;BR /&gt;&lt;BR /&gt;One way to check if a file is "sparse" is to copy it with 'cp'.  A sparse file will be "expanded" when copied this way.  An 'ls -l' of the sparse and the expanded file will remain the same, but a 'du' will differ significantly.  The copy of the original file will be inflated.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 19 Sep 2002 12:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809598#M637565</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-19T12:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809599#M637566</link>
      <description>hum... the thing, James, is that I don't have the place anywhere on that machine that I can copy a databases that big... Damn.. How could I check it otherwise????&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Sep 2002 13:00:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809599#M637566</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2002-09-19T13:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809600#M637567</link>
      <description>Hi (again) Jonathan:&lt;BR /&gt;&lt;BR /&gt;You might get a rough idea by comparing the reported file sizes with 'du' and 'ls -l' accounting for the fact that 'du' reports in 512-character blocks.  Sparse files will have a smaller actual 'du' than you would calculate based on the size noted by 'ls -l'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 19 Sep 2002 13:20:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809600#M637567</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-19T13:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809601#M637568</link>
      <description>The answer is pretty simple really.  In OLD HFS file systems, we had to deal with a 10% tolerance that was not usable.&lt;BR /&gt;interestingly 10% of 18GB is almost 2GB.&lt;BR /&gt;With LVM, many people thought that this would go away, however the 10% is pretty much a safe rule for LVM overhead.  I.E. LVM structures, cache/log, etc...&lt;BR /&gt;what you are reporting with the du -sk command is the file system useage in that partition.  what you see in bdf is the overall disk summary including the LVM overhead.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Thu, 19 Sep 2002 14:38:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809601#M637568</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-09-19T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809602#M637569</link>
      <description>Actually the difference between the kbytes column (using bdf) and the avail+used is your overhead.&lt;BR /&gt;&lt;BR /&gt;When you do a du -ks /mount you should have very close to what is showing for used in a bdf.&lt;BR /&gt;&lt;BR /&gt;One thing to consider is any open file that has had its directory entry delete, but not been released yet - example an open log file is deleted but the process remains.&lt;BR /&gt;&lt;BR /&gt;Only way to find these types of things is using the lsof tool (or glance) and looking for files that exist.&lt;BR /&gt;&lt;BR /&gt;Alternately after your next reboot try the du and compare against used.&lt;BR /&gt;&lt;BR /&gt;As for the difference between kbyte and avail+used that is where you'll see your VxFS overhead.&lt;BR /&gt;&lt;BR /&gt;One final thing to consider - an 18GB drive might really be 16.5GB usable - you need to run diskinfo against the device to see how many KB are actually usuable.</description>
      <pubDate>Thu, 19 Sep 2002 17:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809602#M637569</guid>
      <dc:creator>George A Bodnar</dc:creator>
      <dc:date>2002-09-19T17:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809603#M637570</link>
      <description>Hi Georges!!&lt;BR /&gt;&lt;BR /&gt;Thanks man... I found out that there was a process that was running for a while and not used anymore...  So when I killed it I found back the space I've lost...&lt;BR /&gt;&lt;BR /&gt;Thanks to all others who helped me!!&lt;BR /&gt;ciao!</description>
      <pubDate>Thu, 19 Sep 2002 17:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809603#M637570</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2002-09-19T17:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Space on disk taken by nothing...?!?!?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809604#M637571</link>
      <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;When a program (process) opens a file, it uses a file descriptor.  &lt;BR /&gt;&lt;BR /&gt;If you delete the file, and the process is still running.  The space is not released until the file descriptor is closed. This is usually done by killing the process.&lt;BR /&gt;&lt;BR /&gt;Commonly, I have seen new admins rm /var/adm/syslog/syslog.log inorder ot free space.&lt;BR /&gt;&lt;BR /&gt;The problem is that the space will not be freed until syslogd is stopped.&lt;BR /&gt;&lt;BR /&gt;"fuser" might have found your problem &lt;BR /&gt;&lt;BR /&gt;for instance &lt;BR /&gt;fuser -u /dev/vg00/lvol4 (which is my /tmp) You would find what process have files opened in tmp.  Which would hopefully give you a clue to the errant program.&lt;BR /&gt;&lt;BR /&gt;When removing\reduceing logfiles.  It is a good practice to do a fuser on the file to see if it is has attached process.  If this is the case ZERO out the file instead of removeing it &lt;BR /&gt;(echo "" &amp;gt; badlog</description>
      <pubDate>Fri, 20 Sep 2002 17:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/space-on-disk-taken-by-nothing/m-p/2809604#M637571</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2002-09-20T17:06:55Z</dc:date>
    </item>
  </channel>
</rss>

