1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

symbolic link craziness

Discussion in 'Restore / Recovery Discussion' started by benlynch, Oct 10, 2012.

Thread Status:
Not open for further replies.
  1. benlynch

    benlynch New Member

    Joined:
    Oct 10, 2012
    Messages:
    12
    Likes Received:
    0
    We have been archiving to the same node/server/etc since 2007... every file we archive goes in /tmp/archiveDir/<filename>

    but thruout time the actual location of archiveDir has changed, and recently we changed archiveDir to be a symbolic link to some other directory.


    dsmj (the gui) sees everything, but dsmc (the command line) is really strange!

    I have a new file, and an old file, named /tmp/archiveDir/new_file and /tmp/archiveDir/old_file

    I run these 4 commands and get the following output:

    dsmc q ar /tmp/archiveDir/new_file : NO SUCH FILE!
    dsmc q ar /tmp/'*'/new_file : here it is.


    dsmc q ar /tmp/'*'/old_file : NO SUCH FILE!
    dsmc q ar /tmp/archiveDir/old_file : here it is.


    This seems to sortof make sense, I guess that when the archiveDir was changed to a symbolic link it got moved from 'root directory' variable to the 'filename' variable, but when dsmc asks for the file back in the format /tmp/archiveDir/new_file that gets interpreted as 'root dir = /tmp/archiveDir filename = new_file' which obviously is not a match to what's in the db ('root dir = /tmp filename = archiveDir/new_file)

    So I'm content to simply check both places and grab whatever exists. The real problem, is that we have files as old as 2007 which dsmj can see, but dsmc q ar /tmp/'*' shows files from 2012, and dsmc q ar /tmp/archiveDir/'*' shows files from 2011... but neither command shows me files from 2007 to 2010.

    when I try dsmc q ar '*' it just says no such file.. presumably translating my '*' to "any filename with no root directory" How do i ask for any root directory AND any filename (*/*) ???

    for further clues: dsmc q ar -dirsonly /tmp/ shows me
    Size Archive Date - Time File - Expires on - Description
    ---- ------------------- -------------------------------
    512 B 05/22/07 12:53:52 /tmp/archiveDir Never Archive Date: 05/22/07
    512 B 05/25/07 09:41:55 /tmp/archiveDir Never Archive Date: 05/25/07
    512 B 05/29/07 23:59:24 /tmp/archiveDir Never Archive Date: 05/29/07
    512 B 05/30/07 09:58:50 /tmp/archiveDir Never Archive Date: 05/30/07
    512 B 05/31/07 17:25:20 /tmp/archiveDir Never Archive Date: 05/31/07
    512 B 06/01/07 13:36:43 /tmp/archiveDir Never Archive Date: 06/01/07
    256 B 01/07/10 13:03:57 /tmp/archiveDir Never Archive Date: 01/07/10
    4,096 B 01/25/10 23:43:56 /tmp/archiveDir Never Archive Date: 01/25/10
    4,096 B 01/26/10 23:59:23 /tmp/archiveDir Never Archive Date: 01/26/10
    4,096 B 01/27/10 23:36:21 /tmp/archiveDir Never Archive Date: 01/27/10
    12,288 B 01/28/10 23:55:41 /tmp/archiveDir Never Archive Date: 01/28/10
    12,288 B 01/29/10 23:59:50 /tmp/archiveDir Never Archive Date: 01/29/10
    12,288 B 01/30/10 13:34:51 /tmp/archiveDir Never Archive Date: 01/30/10
    12,288 B 01/31/10 13:17:19 /tmp/archiveDir Never Archive Date: 01/31/10
    (and 100 others)

    while dsmc q ar -dirsonly /tmp/archiveDir/

    shows:

    Size Archive Date - Time File - Expires on - Description
    ---- ------------------- -------------------------------
    256 B 06/01/07 14:31:26 /tmp/archiveDir/ Never Archive Date: 06/01/07
    4,096 B 06/04/07 14:38:36 /tmp/archiveDir/ Never Archive Date: 06/04/07
    4,096 B 06/05/07 00:03:41 /tmp/archiveDir/ Never Archive Date: 06/05/07
    4,096 B 06/06/07 12:18:23 /tmp/archiveDir/ Never Archive Date: 06/06/07
    4,096 B 06/12/07 17:22:35 /tmp/archiveDir/ Never Archive Date: 06/12/07
    4,096 B 06/13/07 00:04:08 /tmp/archiveDir/ Never Archive Date: 06/13/07
    4,096 B 06/14/07 00:01:08 /tmp/archiveDir/ Never Archive Date: 06/14/07
    4,096 B 06/15/07 00:01:23 /tmp/archiveDir/ Never Archive Date: 06/15/07
    4,096 B 06/16/07 00:03:29 /tmp/archiveDir/ Never Archive Date: 06/16/07
    4,096 B 06/17/07 00:03:02 /tmp/archiveDir/ Never Archive Date: 06/17/07
    4,096 B 06/18/07 00:06:23 /tmp/archiveDir/ Never Archive Date: 06/18/07
    4,096 B 06/19/07 00:00:19 /tmp/archiveDir/ Never Archive Date: 06/19/07
    4,096 B 06/20/07 00:02:48 /tmp/archiveDir/ Never Archive Date: 06/20/07
    4,096 B 06/21/07 00:01:37 /tmp/archiveDir/ Never Archive Date: 06/21/07
    4,096 B 06/22/07 00:04:52 /tmp/archiveDir/ Never Archive Date: 06/22/07
    4,096 B 06/23/07 00:06:36 /tmp/archiveDir/ Never Archive Date: 06/23/07

    and 1000 others.

    ie: two completely different large lists of when /tmp/archiveDir was changed.


    So, what I really want, is to grab every file, and move it to a different tsm server, but I can't figure out how to get at any of the files older than 2011 except thru dsmj, which is a gui, which would take forever to use the gui to pull all of those files one at a time :)
     
  2.  
  3. chad_small

    chad_small Moderator

    Joined:
    Dec 17, 2002
    Messages:
    2,205
    Likes Received:
    44
    Occupation:
    AIX/SAN/TSM
    Location:
    Gilbert, AZ
    Are you using the followsymbolic option?
     
  4. benlynch

    benlynch New Member

    Joined:
    Oct 10, 2012
    Messages:
    12
    Likes Received:
    0
    Nope, but my goal is to get a list of archived files, and pull those archived files down to be migrated to another tsm server, I don't believe followsymbolic=yes or no will be meaningful in this context? Am I missing somethigng?
     
  5. domino

    domino Senior Member

    Joined:
    Nov 16, 2005
    Messages:
    717
    Likes Received:
    32
    Occupation:
    System Engineer
    Location:
    Germany
  6. benlynch

    benlynch New Member

    Joined:
    Oct 10, 2012
    Messages:
    12
    Likes Received:
    0
    thanks!


    Doc 1 talks about backups which will be useful to me later on but is not applicable at the moment
    Doc 2 describes the functionality that I also described, essentially agreeing with what I'm seeing and saying 'working as intended' so that's cool.
    Doc 3 says that you can explicitely specify the filesystem with {} ie: list all files in {/tmp}/archiveDir/ vs list all files in {/tmp/archiveDir}/ So that's super helpful as well, thank you. it achieves the same result as what I had been doing (specifying /tmp/archiveDir/somefile or /tmp/'*/somefile' depending on if a symlink was used, but it's cleaner since it doesn't use an *.

    But I'm still stumped on the question: How do I list all available filesystems on my server? or, same concept: How do I list all files within all filesystems on my server?

    I can list all files within /tmp/ and then all files within /tmp/archiveDir/ and that gives me bunches of files... but I'm hoping (pecimistically) that there is some third filesystem I'm not seeing which contains the data that is missing.
     
  7. benlynch

    benlynch New Member

    Joined:
    Oct 10, 2012
    Messages:
    12
    Likes Received:
    0
    dsmc q filespace was what i was looking for thank you for all the help.
     
Thread Status:
Not open for further replies.

Share This Page