Calculate Free Space On Filesystem Level

Hi,
I need to add datafile on an file system for example /D00/oracle/data/ file system, Before adding datafiles to that particular file system I need to check the free space on OS level and also I need to check the estimated auto extensible growth on the file system. So that I can new datafiles depending on the remaining space available to that file system. Is there any sql script available to calculate the estimated auto extend growth on one particular filesystem and give us the remaining space on the OS level….
Regards,

Can you define the term "estimated auto extend growth"? That could mean the maximum size the data file could extend to. It could mean some sort of projection based on prior extend operations that were captured in some sort of log table.
What version of Oracle?
What operating system?
Realistically, no SQL script can see the free space available on the file system. You could write a Java stored procedure that called your operating system's free space function (i.e. df in Linux), made the results of that call available to Oracle, and then query that.
Justin

Similar Messages

  • Calculate free space without reorg

    Hi DB-Gurus,
    we  are currently on AIX and Oracle 9.2.0.6.0. The SAP System is BankAnalyzer, which is an add-on to a BIW (3.5). Data is loaded into the system via STS, a tool from a third party vendor. All relevant tables (BankAnalyzer and STS) are in one tablespace, the size of the tablespace is about 1 TB, of which STS-tables occupy about 400 GB. STS produces a lot of redundant overhead which we now want to archive and delete on a regular basis.
    <b>Without</b> a DB-reorg, is there a way to tell how much space is currently free in the DB, and how much space ist occupied? As I understand, DB02 will keep showing the same figures until a reorg is done, even though we have deleted 200 GB from the tables. We need a way to tell the current free space in order to control DB-load and to calculate future DB costs.
    We are using database managed tablespaces. If we can't reorg the whole tablespace or DB, will fragmentation over time (archive & delete old STS-data every 3 months and load new data on a daily basis) reduce performance, even though we reorg the index tables?
    If we could identify the tables affected from the regular delete and update processes, is there a way to reorg just these tables? Would this be an advisable way to reduce DB-maintenance and increase DB-performence?
    Thanks for your valued input & kind regards,
    Mark
    PS: yes, we are planing an upgrade to 10.2 sometime soon.

    Hello Mark,
    at first:
    <b>>> Since I am not deep into the DB stuff (yet )</b>
    That's no problem man ... nobody can know everthing...but i would recommend some extern support, if you don't have the know-how in-house. This topic is pretty deep on database level to make any suggestions or definitive statements...
    But now lets start with your questions.
    <b>>> STS produces a lot of redundant overhead which we now want to archive and delete on a regular basis.</b>
    That's the first good idea
    <b>>> Without a DB-reorg, is there a way to tell how much space is currently free in the DB, and how much space ist occupied?</b>
    I don't know any SAP possibility to show this (because i don't use man SAP features for analyzing problems / reorgs,etc..), but i can show you some possibilites on database level.
    At first some helpful views/tables:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2451.htm#1317269
    INDEX_STATS - You have to analyze the index first with an ANALYZE INDEX and then you can query the view index_stats in the same session (that's important!). The columns DEL_LF_ROWS, USED_SPACE, PCT_USED are very interesting in your case.
    The problem with INDEX_STATS is that you will lock the segment with the ANALYZE command.
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2152.htm#1303953
    ALL_TABLES - This values are populated if you collect statistics for the table, but the values are not as clear as the index ones. The column EMPTY_BLOCKS does not count the empty blocks.. it only counts the blocks that are not formated yet. The column AVG_SPACE is more interesting but you have to set it in the context of some other values.. its really difficult to explain this over the internet without any table values.
    <b>>> We are using database managed tablespaces. If we can't reorg the whole tablespace or DB, will fragmentation over time (archive & delete old STS-data every 3 months and load new data on a daily basis) reduce performance, even though we reorg the index tables? </b>
    I don't know what you mean with database managed tablespaces. Do you mean data dictionary managed ones or do you mean locally managed ones? But this does not have any affects on the block filling logic (only on extend logic is affected by that)... the block filling logic only depends on automatic segment space mangement or not. You can not make any over-all statement if the performance would be better or not. It depends on so many factors like execution plans (access pathes), reused blocks, etc... Normally the "freed" space is reused, but the performance can be as bad as before if the same blocks are touched (for example index range scans, full table scans, and so on...)
    <b>>> If we could identify the tables affected from the regular delete and update processes, is there a way to reorg just these tables? Would this be an advisable way to reduce DB-maintenance and increase DB-performence?</b>
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2146.htm#1303064
    You could identify these ones if you activate the monitoring attribute on the tables and after that you can query the view ALL_TAB_MODIFICATIONS. The data which is populated in that view are the counters since the last collected statistics on the table.
    The same as above you can not make any over-all statement if it is good or bad... it depends on so many factors if it will increase the db performance. You can reorg single tables.
    I hope it helps a little bit, but if you don't have any experience/know-how on oracle .. it will be really difficult to do any further analysis on that topic.
    Regards
    Stefan

  • Dropping UNDO did not free space at OS level

    Hi,
    As my UNDO tablespace grew very large, i had to drop it by creating a second UNDO tablespace and switching the database to use it. After i successfully dropped the first UNDO, the file systems, which hosted the datafiles of the first UNDO still shows that they are 100% full. I have checked the alert log and everthing looks perfectly fine with the following message
    drop tablespace undotbs1 including contents and datafiles
    delted file '/u04/oradata/sunshine/undotbs1.dbf'
    deleted file '/u06/oradata/sunshine/undotbs1_1.dbf'
    Completed: drop tablespace undotbs1 including contents and datafiles
    Even the two datafiles 'undotbs1.dbf' and 'undotbs1_1.dbf' were deleted with the "drop tablespace ........" command itself.
    Is it required to bounce the database for the changes to be reflected at the OS level?
    Any insight?
    THanks,
    Harris.

    Hi,
    My Oracle version is 9.2.0.5 and i am running on Solaris 9. I have created a new UNDO tablespace UNDOTBS2 and dropped the old UNDO tablespace UNDOTBS1. After i issued the "drop tablespace UNDOTBS1 including contents and datafiles" it deleted the physical datafiles at the OS level too. I do not see any datafiles of the first dropped undo tablespace UNDOTBS1 in the directories specified i.e.,
    '/u04/oradata/sunshine/undotbs1.dbf'
    '/u06/oradata/sunshine/undotbs1_1.dbf'
    So, the tablespace along with datafiles has been dropped (at the OS level too) with the "drop tablespace........" command itself. But, the file system still does not show the freed up space. I have altered the system to use the second undo tablespace UNDOTBS2 before dropping the first.
    The second undo UNDOTBS2 has auto extend off, so there is no issue of this increasing to this much of size. The first undo tablespace that i dropped was around 15G of size and it has autoextend ON.
    Any suggestions?
    Thanks,
    Harris.

  • Calculate used space in database!

    Hi all,
    I can calculate used space by using the following ways:
    1. Calculate allocated size by issuing
    SELECT SUM(d.bytes/1024/1024/1024)
    FROM dba_data_files;
    2. Calculate free space by issuing
    SELECT SUM(bytes/1024/1024/1024)
    from dba_free_space;
    Used space will be the value from first statement - value of the second statement! This is manual way!
    Is this possible to combine the two above queries?
    Thank you!
    Dan.

    You can certainly combine the queries
    SELECT (allocated.bytes - free.bytes )/1024/1024/1024 used_gb
      FROM (select sum(bytes) bytes from dba_data_files) allocated,
          (select sum(bytes) bytes from dba_free_space) freeNormally, you'd group by tablespace as well.
    But if you just want the amount of space used, it's probably easier to just
    SELECT sum(bytes)/1024/1024/1024 used_gb
      FROM dba_segmentsJustin

  • Calculating free space in tablespace

    Oracle 11.0.1.7:
    I am trying to calculate free space in the tablespace but I am not sure if Allocated Space (bytes_used) also has some free space that doesn't get reflected in the query below. Is it correct to assume that bytes_used is the space allocated to extents but may not have been really used (no data or LOB) yet? How do I calculate space that's currently been used by row data, index data or blob data?
    I am currently using below query:
    select     a.TABLESPACE_NAME,
         a.BYTES bytes_used,
         b.BYTES bytes_free,
         b.largest,
         round(((a.BYTES-b.BYTES)/a.BYTES)*100,2) percent_used
    from      
              select      TABLESPACE_NAME,
                   sum(BYTES) BYTES
              from      dba_data_files
              group      by TABLESPACE_NAME
         a,
              select      TABLESPACE_NAME,
                   sum(BYTES) BYTES ,
                   max(BYTES) largest
              from      dba_free_space
              group      by TABLESPACE_NAME
         b
    where      a.TABLESPACE_NAME=b.TABLESPACE_NAME
    order      by ((a.BYTES-b.BYTES)/a.BYTES) desc

    DBA_FREE_SPACE give you the free space information which has not been allocated to any segment. The segments can also have free space in their allocated space and in order to find that, use DBMS_SPACE.SPACE_USAGE procedure. To find out free space in LOB segments refer to metalink doc: 386341.1
    Thanks
    Daljit Singh

  • Free space & filesystem type

    I am new to unix , i want to know - how to check filesystem SAN / NFS & total free space in system.

    Well, a beginners' course in Unix is far beyond the scope of this forum.
    Please get the friendly manual, and feel free to make use of Google and the like.
    A hint: Start with df command. Output will differ for various flavours of Unix.
    For more info type:
    man df
    hope this helps

  • Difference between free space on disk and column FREE_MB in V$ASM_DISKGROUP

    Hi ,
    in our RAC environment we have setup an ACFS. We use that mainly for RMAN backups. When connecting to the ASM instance and executing the query
    Select name, state, total_mb, free_mb from v$asm_diskgroup;
    we are getting the following result:
    NAME STATE TOTAL_MB FREE_MB
    DG00_CRS MOUNTED 10738 9912
    DG01_FR MOUNTED 409592 360173
    DG02_DATA MOUNTED 6553568 1628732
    DG03_BACKUP MOUNTED 5615920 4227
    Seems to me that the ASM instance believes that the amount of frees space in diskgroup DG03_BACKUP is 4227 MB. Butr when checking on
    operatingsystem level, the result looks different:
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/asm/v03_backup-33
    5746196480 2430545120 3315651360 43% /u01/app/oracle/orabackup
    => As a matter of fact, we have about 3,3 TB free space available. Should that result not be shown when running the query above? I currently
    don't have a clue why the query returns 4227 MB...
    Any help will be appreciated...
    Rgds
    JH

    ACFS is a 11.2 feature, while ASM existed long before
    ASM will consider such volumes as used space when querying V$ASM_DISKGROUP, or issuing lsdg in asmcmd
    you can use the views V$ASM_ACFSVOLUMES and V$ASM_FILESYSTEM for ACFS
    or volinfo in asmcmd

  • HT6114 how to free space on mac

    Please help

        Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • My start up disc is full i have a macbook air, i back everuthing up with time capsule and  have movies all my music libraries and photos onto that too so as i have free space, but my max still says my startup disc is full with "other"

    my start up disc is full i have a macbook air, i back everuthing up with time capsule and  have movies all my music libraries and photos onto that too so as i have free space, but my max still says my startup disc is full with "other"

    First, empty the Trash if you haven't already done so. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of your data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    If you're using Time Machine to back up a portable Mac, some of the available space will be used to make local snapshots, which are backup copies of files you've recently deleted. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as "Backups." The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself.
    To locate large files, you can use Spotlight as described here. That method may not find large folders that contain a lot of small files.
    You can also use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • Hard drive free space disappearing

    It is happening on daily base that my 128 Macbook air is loosing free space by 1 GB (almost). As was suggested I reloaded Yosemite a fresh in Feb 15 and loaded couple of documents (amounting to almost 13 GB), the documents are PDF mainly. The applications are further took 3.8 GB, adding up every thing accounts for some 38 GB which includes system files, I checked the hidden files, the total number of files difference between two days but could not reason out the reason for where is it going. I do not sync any mobile, I have never run iTunes on mac, I have no movies music, except for preview application I rarely run any other application. Can anyone please help me get back my free space, I do not wish to reload the OS again an

    For information about the Other category in the Storage display, see this support article. If the display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside a photo or iTunes library will corrupt the library. Changes to such a library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install the app in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C.
    For ODS:
    security execute-with-privileges /A*/OmniDiskSweeper.app/*/M*/* 2>&-
    For GP:
    security execute-with-privileges /A*/GrandPerspective.app/*/M*/* 2>&-
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password.
    The application window will open behind other open windows. When you scan a volume, the window will eventually show all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • Logical Volume Group and Logical Partition not matching up in free space

    I was dual booting Windows 7 and Mountain Lion. Through Disk Utility, I removed the Windows 7 Partition and expanded the HFS+ partition to encompass the entire hard drive. However, the Logical Volume Group does not think that I have that extra free space. The main problem is that I cannot resize my partition. I am wanting to dual boot Ubuntu with this. Any ideas? Any help is appreciated. I will post some screenshots with the details. Furthermore, here are some terminal commands I ran: /dev/disk0
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *250.1 GB disk0
    1: EFI 209.7 MB disk0s1
    2: Apple_CoreStorage 249.2 GB disk0s2
    3: Apple_Boot Recovery HD 650.0 MB disk0s3
    /dev/disk1
    #: TYPE NAME SIZE IDENTIFIER
    0: Apple_HFS MAC OS X *248.9 GB disk1 Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on
    /dev/disk1 243031288 153028624 89746664 64% 38321154 22436666 63% /
    devfs 189 189 0 100% 655 0 100% /dev
    map -hosts 0 0 0 100% 0 0 100% /net
    map auto_home 0 0 0 100% 0 0 100% /home CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group 52A4D825-B134-4C33-AC8B-39A02BA30522
    =========================================================
    Name: MAC OS X
    Size: 249199587328 B (249.2 GB)
    Free Space: 16777216 B (16.8 MB)
    |
    +-< Physical Volume 6D7A0A36-1D86-4A30-8EB5-755D375369D9
    | ----------------------------------------------------
    | Index: 0
    | Disk: disk0s2
    | Status: Online
    | Size: 249199587328 B (249.2 GB)
    |
    +-> Logical Volume Family FDC4568F-4E25-46AB-885A-CBA6287309B6
    Encryption Status: Unlocked
    Encryption Type: None
    Conversion Status: Converting
    Conversion Direction: backward
    Has Encrypted Extents: Yes
    Fully Secure: No
    Passphrase Required: No
    |
    +-> Logical Volume BB2662B7-58F3-401C-B889-F264D79E68B4
    Disk: disk1
    Status: Online
    Size (Total): 248864038912 B (248.9 GB)
    Size (Converted): 130367356928 B (130.4 GB)
    Revertible: Yes (unlock and decryption required)
    LV Name: MAC OS X
    Volume Name: MAC OS X
    Content Hint: Apple_HFS

    Here is another try via the command line:
    dhcp-10-201-238-248:~ KyleWLawrence$ diskutil coreStorage resizeVolume BB2662B7-58F3-401C-B889-F264D79E68B4 210g
    Started CoreStorage operation
    Checking file system
    Performing live verification
    Checking Journaled HFS Plus volume
    Checking extents overflow file
    Checking catalog file
    Incorrect block count for file 2012.12.11.asl
    (It should be 390 instead of 195)
    Checking multi-linked files
    Checking catalog hierarchy
    Checking extended attributes file
    Checking volume bitmap
    Checking volume information
    Invalid volume free block count
    (It should be 21713521 instead of 21713716)
    The volume MAC OS X was found corrupt and needs to be repaired
    Error: -69845: File system verify or repair failed

  • Free space problem in / with oracle-xe-11.2.0-1.0.x86_64

    Hi,
    I'm trying to install Oracle-xe-11g on Red Hat 5.6, but I have the following problem:
    [root@localhost] rpm -ivhf oracle-xe-11.2.0-1.0.x86_64.rpm
    Preparing... ########################################### [100%]
    installing package oracle-xe-11.2.0-1.0.x86_64 needs 180MB on the / filesystem
    However I have enough free space in /, df command shows:
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda2 3960348 3326380 429544 89% /
    /dev/sda3 30368632 4066116 24734976 15% /home
    /dev/sda1 46633 11310 32915 26% /boot
    tmpfs 2198372 0 2198372 0% /dev/shmHow do I fix it?
    Thank you in advantage
    Edited by: 905637 on 03-ene-2012 4:43

    How do I fix it?Add Space.
    Looks like you've got a less than 4G total for / with about 420MB free. That's nowhere near enough space, out-of-the-box the datafiles alone take about 1G.
    Try bumping sda2 up another 4G, or add a (at least) 4G partition and mount it at /usr/lib/oracle
    Per the Linux install guide ... "Disk Space ... 1.5GB minimum" http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#BABHICJH
    Edited by: clcarter on Jan 3, 2012 11:40 AM
    add install doc URL

  • OCFS2 Free space issue

    Hello,
    I have an Oracle 11gR2 RAC on two Oracle Linux 5 nodes. For storage I use a couple of OCFS2 partitions.
    I have deleted a database using dbca and also have deleted the remaining files from shared partitions. When I consulted the free space with df I was surprised to see that the partitions appear to have a lot of used space even that there are no files on them. I've seen a similar behavior on a gpfs partition on AIX. Even that the database was closed and deleted (and lsof doesn't return anything), and I don't see how some files could be still opened, I rebooted both nodes (complete shutdown and start after both were down).
    Now I see this:
    [root@node1 bin]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sdf1 4.0G 283M 3.7G 8% /d01
    /dev/sde1 2.0G 283M 1.7G 15% /d02
    /dev/sdj1 1.0G 91M 934M 9% /d03
    [root@node1 bin]# cd /d01
    [root@node1 d01]# ls -a
    [root@node1 d01]#
    How is it possible to have used space on those partitions even if they are empty?
    How can I do some space management on OCFS2 partitions?
    [root@node1 d01]# modinfo ocfs2
    filename: /lib/modules/2.6.32-300.27.1.el5uek/kernel/fs/ocfs2/ocfs2.ko
    license: GPL
    author: Oracle
    version: 1.6.3
    description: OCFS2 1.6.3
    srcversion: B8AF3035CE0F00B763D188F
    depends: ocfs2_stackglue,ocfs2_nodemanager
    vermagic: 2.6.32-300.27.1.el5uek SMP mod_unload modversions
    Thanks.

    fsck.ocfs2 -f /dev/iscsi/openfiler:disk01/part1
    mount /dev/iscsi/openfiler:disk01/part1 /d01
    Filesystem Size Used Avail Use% Mounted on
    /dev/sdf1 4.0G *283M* 3.7G 8% /d01
    It's the same.
    Just to add, the partitions were formatted like this:
    mkfs.ocfs2 -b 4K -C 32K -N 4 -L oracrsfiles /dev/iscsi/crs/part1
    /etc/fstab:
    /dev/iscsi/openfiler:disk01/part1 /d01 ocfs2 _netdev,datavolume,nointr     0 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Size of free space root disk

    Hi
    I try to obtain the free space disk of c:\ (under windows NT). I use the class File but i obtain a size of 0 for the drive C:\
    I use :
    private static boolean estSuperieurAuSeuil(String disque, long seuil) {
    File lecteur = new File("c:\");
    //File lecteur = new File(disque);
    long volumeOccupe = lecteur.length();
         if (volumeOccupe >seuil) {
         return true;
         } else {
         return false;
    but volumeOccupe is always equals to 0
    Anyone can help me !
    Thanks
    }

    Why don't you implement your own code to calculate the full size of the disk?
    Windows system itself does a recursive count.
    (Which makes the request for a bug not founded since everytime you ask for the size, you would have to wait until the count is done.)
    you could do this :
    public long diskSize(File root) {
    if(root != null && root.isDirectory()) {
    File[] fs = root.listFiles();
    long ret = 0;
    for(int i = 0; i < fs.length; i++) {
    ret += diskSize(fs);
    } else {
    return root.getSize();
    and then call it with diskSize("c:\");
    Hopes this helps
    Anthony

  • 166Gb of free space not showing in Finder

    Hi, my Mac started saying I need to free up space on my Startup Disk. I was suprised, but as I've been doing some film work, I just thought it must take up even more space than I thought. Anway, I free'd up loads of spaced, I moved all my film files to an external disk, deleted them from where they were, and emptied the trash. I've got rid of other things like Internet cache and downloads, basically, I know i have space now. However, my Mac insists on saying I only have about 2Gb free. On another site, someone recommended something called Disk Inventory X, which gives a visual picture of what files etc are taking up space on the Mac. I ran this, and low and behold I have 166Gb free. The screen shot below shows the big blue square of free space. If you can zoom in, it shows this as something outside of the home 'Tiger' thing, under Users - .tiger, as though its partitioned or something?! I don't really understand how Mac's work under the hood of pretty buttons etc, so I'm a bit stuck now. 
    Can anyone please tell me why my Mac can't see or let me use all this free space?
    I am running Snow Leopard 10.6.8. It is a 13" mid 2009 MacBook Pro 5.5, 2.26 GHz Intel Core 2 Duo with 4Gb 1067 MHz DDR3 if that's of any help.
    Many thanks in advance.

    With regard to corruption at the HD level, it is unlikely but possible - I would run Disk Utility's "Verify Disk" if you haven't already done so.
    'It' is the Home folder in Finder
    Yes, as I mentioned in my earlier post, it is "normal" (and not meaningful) for a FileVault Home to show an apparent capacity that is twice the capacity of the HD itself. The "Used" space reported there is likewise meaningless - that's why I earlier suggested a different method for determining the total size of your user files. However the reported "available" space is apparently accurate, and at least in my test setup is the same number that you will see for "available" if you Get Info on Macintosh HD.
    I have 177Gb of User stuff, this also includes my Applications
    So as not to compare apples and oranges, "user stuff" generally refers only to those items within the home folder. Some people have a second Applications folder within the home folder, but if you are instead referring to applications in the standard Applications folder (HD>Applications) then that space is generally not counted as "user files." It makes a difference when you are trying to see if the numbers "add up", as is the case here. In your first screenshot, Disk Inventory X reported 94.5GB in HD>Library, 23.3GB in HD>Applications. and about 13GB in other places, for a total of 131GB, which after the 7% correction to decimal GB, is about 140GB. If you have 177GB of stuff within your home folder using the method I suggested earlier, then that would completely fill your 320GB HD. If you had counted the entire main Applications folder as part of your "user stuff"  then you would be expected to have about 25GB free - still not a lot on a 320GB HD.
    With regard to just wiping the HD and re-installing the OS, yes you can then drag back your user data, but apps can be problematic. Apps that were originally installed by dragging them directly from a downloaded .dmg or apps that were bought in the App store can usually just be copied back into /Applications, but apps that were originally installed via an installer package often have support files that were installed in other places as well, and such apps usually have to be re-installed from scratch. The Libraries generally contain important information as well (Mail, Keychains, and Bookmarks as well as application support files and preference files). You would also have to re-do network settings, etc.
    I asked whether you had a large (>750GB) empty partition of external storage still available, because I think that would be  your best bet for recovering everything intact. If you have such a large external partition formatted for the Mac, I would try the following:
    Create a new admin account, log out of the FileVault account, and log into the new account. From there, run Carbon Copy Cloner to clone Macintosh HD onto the large external drive. Reboot from that external drive, and log into the FileVault account there. Now everything should be as before, except for one important  difference - you should now have enough free space to turn off FileVault! If this works you could eventually clone back to the internal HD, presumably after pruning back some of your stuff if necessary.
    FileVault, as you have seen, can cause lots of issues. I have never used it except for testing and tinkering. It was completely re-done for Lion, and Lion's FileVault is reportedly is a big improvement, but I haven't used it there myself.

Maybe you are looking for

  • Problem with CreateInsert in a table

    How can I set where the new row appears when I have a CreateInsert in a table. When I select a row, the new row appears before it. But when I use the setCurrentRow on the table or on the Iterator behind it, the CreateInsert adds the row at the begini

  • ITunes won't open due to software upgrade requirement, but no upgrades are available

    When I go to open iTunes, a window pops up reading: "The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes. Would you like to download iTunes now?" The only options are "Quit" and "Download iTunes," and when

  • Safari crashing when i open Facebook - please help!!

    Hi guys, I am using a Macbook Pro with Mac OS version 10.5.8 and running Safari version 5.0.6. Since yesterday whenever I try to open Facebook (it's ONLY Facebook, all other websites seem to work fine) Safari crashes and I receive the following error

  • Limits in multiple touches in iPhone OS

    Most people are familiar with the multiple touch interface in the iPhone OS. Using two fingers for pinching and rotating are common in many applications. Some applications even allow you to use three fingers. In developing my latest app called multiT

  • How did my nephew create a profile with out a password?

    Greetings Everyone, There are two apple computers at my sister's house which I take care of. They have a 8 month old flat screen mac with probably the latest os. They also have an older mac tower with 10.6.8 on it. I am the person that maintains the