Avoid a particular directory in a filesystem to get replicated.

Hi,
we have a replicated filesystem /data, but I want to avoid a directory /data/tmp to get replicated to its standby machine.
Is there any options availble to do this?

we have cluster N240 box, a java application is running on it, we use this /data/tmp to perform files convertions and finally move(rename this file) it to /data/1. There are abt 40 files doing this process every 5 mins, finally /data/tmp will be empty. But during this process, it tries to copy the files to its standby machine, if it is delayed due to traffic on the box, then we land up in a situation. where it tries to copy the file to the standby and at the same time the file is move out /data/tmp from the active box, due to this is chokes the /data/tmp.
Since we are using Java, Java's File API rename method does not work renaming files from one filesystem to another, as the result we cannot move the /data/tmp to another file system.
Is there any way to avoid this choking ?

Similar Messages

  • Urgent!doubt in upload the file to a particular directory.

    Hi
    Actually i'm developing a site using JSP.
    Main concept of the project is the user should be
    able to access his files or dabases from anywhere
    in the world thru internet via intranet.
    i've placed upload option in my site.
    each user should b given a separate directory.
    can anyone tell me how to make the user to store
    the file in a particular directory(the one alloted to him).
    And to view the file, if the user enters the file name
    it should open the file in the particular format.
    i need the coding since i'm new to jsp.
    can anyone help me or refer any site tht can solve
    my problem?
    thanx in advance.

    I'd just answered a similar case. I believe this is what you are looking for;
    <%@ page contentType="MIME-Type; Charset=Character-Set" %>
    Read up on MIME-Type and Character-Set for info.
    Here some exmaple;
    By default:
    <%@ page contentType="text.html; Charset=ISO-8859-1" %>
    Show an MS Excel file;
    <%@ page contentType="application/vnd.ms-excel" %>
    or
    <%
    String mimeType = "application/vnd.ms-excel"
    response.seContentType(mimeType);
    %>
    Cheers

  • Is there a way to list the contents of a particular directory?

    Hi,
    I'm creating the blue-print of a new iPad app and was wondering if there was a way to request the contents of a particular directory (eithre local to the device or a a particular directory on the web) and also get the "type" of each item.
    For example if inside a directory "Directory1" and inside that directory I have 4 files and another directory, (file1.gif, file2.txt, file3.mov, file4.mp3, Directory2)
    Is there a way to request the contents of Directory1 and the type of files they are?
    The ideal thing will be to get a recursive request and get an array of contents of all directories inside a particular directory.
    something like:
    Directory1[file1a.gif,file1b.txt,file1c.mov,file1d.mp3,[Directory2[file2b.mov,fi le2b.mp3]]]
    What I want is to create a navigation for the user based on the resultant strign.
    Am I re-inventing the wheel here?
    Any direction will be greatly appreciated. I rather adjust blue-print now based on what is possible.
    Thanks!

    We are users here. You might have better luck going to the developers forum.
    http://developer.apple.com/devforums/
    There are also links on that page that may help too.

  • TO READ FILES IN A PARTICULAR DIRECTORY FROM APPLICATION SERVER

    Hi all,
    Is there any function module which gives the list of files in a specific directory ??
    for eg ;i want to fetch all files in a particular directory say */interf/sy-mandt/reports....*
    I need a function module which will give all filenames in an internal table ,if i give the directory name as input.
    Thanks in advance,
    Aakash.
    Edited by: Aakash Neelaperumal on Apr 25, 2008 11:06 PM

    Hi,
    You can use WS_FILENAME_GET but understand it is obsolete. Search for a FM in function group SFES. I saw quite a few and one of them should meet your requirement.
    Cheers !

  • Directory Walker for Filesystem in J2ME

    Anyone could help with a Walker to list all contents of a particular directory and subdirectory?
    What's Wrong with the following code snippet? Consider fc is a FileConnection Object already open to the root...
    public void parseRecursive(String dirName) throws Exception {
           System.out.println("For Directory:"+dirName);
           Enumeration list = fc.list();
           Vector v = new Vector();
           while(list.hasMoreElements())
                     v.addElement(list.nextElement());
           if ( v.size()==0 ) {
                      System.out.println("Empty Dir:"+dirName);
                      return;   
            for(int i=0;i<v.size();i++ ) {
                 fc.setFileConnection(v.elementAt(i).toString());
                 if ( fc.isDirectory() ) {
                      dirs++;
                   parseRecursive(v.elementAt(i).toString());
                 else {
                      files++;
                      size+=fc.fileSize();
                      continue;
            }Help pls...

    are you sure this is not just a classpath problem?
    are you sure that it is problem related to that MathFP thing?
    try to make a class that's in some package and then see if it works with WTK.
    if you get your own package thing to work, then follow that example and try to get this MathFP thing to work as well...

  • How can I encrypt a particular directory and not Home?

    I have a work iBook that I use for travel and I'd like to encrypt a particular directory instead of my whole Home directory. Can this be done? If so, how?
    If I NEED to use File Vault on my home directory, does this slow down non-work things like making DVDs, working with Photoshop, playing games, etc?
    What if I made another user, like Work, and used File Vault on that? I guess that would work, but could I access a file while I'm logged in as Home?
    Thanks,
    Tom

    >Re: 1: So, basically what I'm doing is creating another partition...but an encrypted partition, right?
    Not a partition, per se. While a disk image looks and acts like a partition in some respects (you can mount it at the desktop, copy files to/from it, etc.), it's actually just a file on disk, which means you can copy the disk image to another machine, open it up and get it's contents (password-protection notwithstanding, of course). Partitions cannot be moved from machine to machine (or from disk to disk)
    Also, if you create the disk image as a sparse image, it only takes up the amount of space consumed by the files within it. This means that if you create a 1GB image but only copy 100MB of data into it, it'll take up 100MB of space on disk (plus a little overhead). Compare that to a partition that will take 1GB on disk, even when it's empty.

  • Tar extract file in particular directory excluding path stored in tar file

    In winzip you have chk box 'Use Foldername', if you uncheck it, all files will be extracted to path given in Extract to:
    Like winzip, do you have facility to extract files from tar file to a particular directory ignoring path stored in tar file.
    os - linux,unix
    regds

    Using -C <new_directory> options creates
    subdirectories under the new_directory as per path
    stored in tar file
    I just want to extract the files in the -C directory.
    e.g.
    # tar -tvf archive.tar
    -rw-r----- oracle/oinstall 4669440 2006-11-30
    13:23:02 /app/fmb/FORM1.fmb
    -rw-r----- oracle/oinstall 200704 2006-11-29
    10:18:25 /app/fmb/FORM2.fmb
    when i give following command
    tar -xvf archive.tar -C TargetDir
    creats subdirectory app/fmb in this TargetDir and
    then extract the files Forms1.fmb
    TargetDir/app/fmb/FORM1.fmb
    TargetDir/app/fmb/FORM2.fmb.
    where as i want FORM1.fmb and FORM2.fmb in TargetDir
    TargetDir/FORM1.fmb
    TargetDir/FORM2.fmb
    regdsit's include directory information when you run tar cvf.
    you can do the following action
    1. cd /app/fmb/
    2. tar cvf archive.tar *
    3. tar -xvf archive.tar -C TargetDir

  • Polling a particular directory, retrieving only new files

    Hi,
    I have a requirement of polling a particular directory, and retrieving all new files posted. Say, i have a file called file1 in a particular directory, i keep polling the same directory every "n" minutes or even seconds, and will try to fetch file1 only when there is a semaphore file called file1.ready exists for file1.
    This is in Solaris.
    How can this be implemented?. Any help will be greatly appreciated.
    Thanks

    Take a look at java.io.File which represents an abstract path such as a directory or file. You'll probably be particularly interested in File.exists().

  • Polling a particular directory, retrieve only new file(s)?

    Hi,
    I have a requirement of polling a particular directory, and retrieving all new files posted. Say, i have a file called file1 in a particular directory, i keep polling the same directory every "n" minutes or even seconds, and will try to fetch file1 only when there is a semaphore file called file1.ready exists for file1.
    This is in Solaris.
    How can this be implemented?. Any help will be greatly appreciated.
    Thanks

    you can use the file modified dates to figure out whats new and whats old.
    May be you can compare them against the last time that you ran the process.

  • Check existence of a particular directory in Dev Server.

    Hi,
       How do we check the existence of a particular directory (in Dev Server ) through  the  program??
    Thanks.

    Hi,
    Use function module PFL_CHECK_DIRECTORY.
    Regards,
    Darren

  • How can I avoid duplicates on contacts and how do I get contacts created on iPhone/ipad synchronized on my mac? so far it doesn't work correctly, just sometimes. same for icalendar

    how can I avoid duplicates on contacts and how do I get contacts created on iPhone/ipad synchronized on my mac? so far it doesn't work correctly, just sometimes. same for icalendar

    On your Mac, for duplicates, switching Contacts off then back on in System Preferences > iCloud may prevent duplicates.
    On the iPhone / iPad tap Settings > iCloud. Make sure Contacts and Calendars are swtiched on.
    Try restarting your Mac and your iOS devices when items won't sync as they should.
    To restart an iOS device:  Hold the On/Off Sleep/Wake button down until the red slider appears. Slide your finger across the slider to turn off iPhone. To turn iPhone back on, press and hold the On/Off Sleep/Wake button until the Apple logo appears.

  • Enumerate the users that have access to a particular directory

    Hi, my name is Jennifer and I have been searching for an answer to my problem through several blogs. The problem is that I have a Directory of which I want to not only retrieve the users\groups that have access to it but also enumerate through the groups
    to list actual users. The groups part is the main issue here. If I use get-acl, I can return any number of particular Active Directory groups that have access, however, I need to list the users inside this group and get-acl will not output an object I can
    work with. I thought I could do something like this (which I may have seen on this forum before):
    get-acl "C:\NestedGroupTest" | %{$_.access} \ ft -property identityreference
    This will return the groups\users that have access. Example:
    Domain\OU
    NT Authority\system
    Builtin\users
    ETC...
    I have tried exporting this output to a file and then trying to use get-adgroupmember (which obviously will not work on the non-AD groups) but the objects are of the wrong type so basically nothing in the Active Directory module will work...
    This seems like such a simple issue but it is causing me grief to no end...please help

    I can't guarantee that this will work in all cases, but it seems to work on my test domain. Warning: it's very slow and inefficient. It requires
    this module (get the 3.0 test version), but you can modify the foreach block's code somewhat to get it to work with Get-Acl. 
    Get-Item C:\NestedGroupTest | Get-AccessControlEntry | ForEach-Object { $PropertyNames = $null }{
    if (-not $PropertyNames) {
    # We need to copy the property. This will get a list
    # of the properties on each ACE when it encounters
    # the first ACE (since the rest of this is so ineffecient,
    # we can feel good that we saved some work by doing this)
    $PropertyNames = $_ | Get-Member -MemberType Properties | select -exp Name
    # Create a new hashtable that will be used to create a PSObject
    $NewObjectProps = @{}
    foreach ($CurrentProperty in $PropertyNames) {
    $NewObjectProps.$CurrentProperty = $_.$CurrentProperty
    # Check to see if this SID belongs to an AD group
    Write-Verbose ("Current principal: {0}" -f $_.Principal)
    try {
    $Group = Get-ADGroup -Filter { SID -eq $_.SecurityIdentifier } -ErrorAction Stop
    catch {
    # Write a warning or something?
    if ($Group) {
    Write-Verbose " -> Group, so looking up members"
    $Users = $Group | Get-ADGroupMember -Recursive | select @{N="Principal"; E={$_.SID.Translate([System.Security.Principal.NTAccount])}}, @{N="SecurityIdentifier"; E={$_.SID}}
    else {
    Write-Verbose " -> Not an AD group"
    $Users = $_ | select Principal, SecurityIdentifier
    # Go through each user/non-translated group, modify two
    # hashtable properties, and create the new PSObject
    $Users | ForEach-Object {
    $NewObjectProps.SecurityIdentifier = $_.SecurityIdentifier
    $NewObjectProps.Principal = $_.Principal
    $NewObject = New-Object PSObject -Property $NewObjectProps
    # This will make the new object show the module's custom formatting:
    $NewObject.pstypenames.Insert(0, "PowerShellAccessControl.Types.AdaptedAce")
    $NewObject
    That should resemble the output that Get-AccessControlEntry would give you, but AD groups have been translated to users. If you pipe that to Export-CSV, you'd have plenty of information for each ACE, including the path, principal, security identifier, access
    mask, etc. You could also pipe that to Select-Object and just ask for certain properties (try it with these properties: Path, Principal, AccessMask, AccessMaskDisplay, AppliesTo).
    You can also use the Get-AccessControlEntry function's parameters to do some filtering on the ACEs that are returned (maybe you only want ACEs with FullControl, or ACEs that were not inherited...)
    Give it a shot and let me know if it works for you. If you need more explanation of what's going on in the foreach-object process block, let me know and I'll try to help. It can be modified to work with version 2.1 of my module, and with Get-Acl.

  • File saving to a particular directory

    hello guys
    Im my GUI there is an option to save the data into a Random Access File, which works fine but i want all test data to stored in a particular folder coz at the moment its storing it in the folder its initialized in.
    please help...
    cheers

    The java.io.File api is rich with possibilities. The one jumps out is the constructor that takes a directory and a file name. The cocs are your friends.

  • Delete Particular Directory

    Hi,
    I created some of the directories sometime back which are not used thesedays. I like to delete some particular directories. When I tried to delete using delete statement I am getting INSUFFICIENT PRIVILEGES error message.
    Can anyone help me in getting out unused directory objects.

    The statement is not DELETE but DROP DIRECTORY
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_812a.htm#2066782

  • How to validate a Particular Directory or file path in Presentation server.

    Hi SAP gurus,
    I am having a requirement where I want to download a file into the Presentation server.
    The file path to download will be provided in a parameter.
    What I want to do is to throw a message to the user if He/She provides a wrong Directory or File path.
    For example :
    Say the user is providing the file download path as " E:\test.txt", but there is no "E" drive or such directory in the presentation. So in this case I should be able to check the wrong Directory provided by the user and throw some message to the user saying there is no such Directory present. Please give a proper directory or similar messages.
    I have found a FM: PFL_CHECK_DIRECTORY but i am not able to use it properly.
    So do you have any FM or any method and its explanation to fulfill my requirement .

    Do it this way:
    tables:
      spfli.
    parameters:
      p_file type rlgrap-filename          " File name
                       obligatory.
    Data:
      t_final_data like table of spfli.
    at selection-screen on value-request for p_file.
    call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
         field_name          = ' '
       importing
         file_name           = p_file.
    at selection-screen.
      data:
        lw_file  type string.              " File Path
      lw_file = p_file.
    select * from spfli into table t_final_data.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         filename                        = lw_file
       tables
         data_tab                        = t_final_data.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      if sy-subrc <> 0.
        message 'File not found' type 'E'.
      endif.
    With luck,
    Pritam.

Maybe you are looking for

  • 23"Cinema Display and Bootcamp

    Does anyone know a solution to the black screen problem that I experience when trying to install windows on a Mac Pro with the ATi x1900? It's a very frustrating problem. Thanks in advance Robin

  • ABAP-query going in infinite loop

    Hello all, I have one on abap-query in which i am displaying data for delivery details that is table LIKP and LIPS. In this query i also have some code to get the sale order details from the  the delivery details. I have also used one FM module in th

  • Help with DROP ZONES!!

    Hi. Firstly, sorry if I'm not able to explain myself in the proper terminology...very new to Pages and all. Here is my query: How do you create a Drop Zone (if that's what it's called)? i.e.The zones on the templates that enable you to drop a picture

  • Lightroom 5 Slideshow doesn't render on MacBookPro?

    I have a MacBookPro 2,2 laptop and can use most other modules without difficulty, but when I try to create a slideshow, the program starts to render the first slide and then stops, leaving me with a black screen.

  • Presets For .flv Export Different in Pro CS5 vs. Elements 4

    Hello: I have been using the simple Premier Elements 4 to read in Flip Video 640X480 movies. When I export them, I can choose a Flash Video preset of NTSC Flash Video 7 (320 X 240). But, in Premier Pro CS5, that's not an option.  The closest I can co