Results 1 to 6 of 6
  1. #1
    Newcomer
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default symbolic link craziness

    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. #2
    Moderator chad_small's Avatar
    Join Date
    Dec 2002
    Location
    Gilbert, AZ
    Posts
    2,194
    Thanks
    1
    Thanked 26 Times in 25 Posts

    Default

    Are you using the followsymbolic option?
    Chad Small
    IBM Certified Deployment Professional
    chadsmal@gmail.com
    http://www.tsmadmin.com

  3. #3
    Newcomer
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4

  5. #5
    Newcomer
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  6. #6
    Newcomer
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    dsmc q filespace was what i was looking for thank you for all the help.

Similar Threads

  1. Follow symbolic link on Linux
    By ocarles in forum TSM Operation
    Replies: 5
    Last Post: 04-15-2011, 06:43 PM
  2. include symbolic links
    By fsc in forum TSM Operation
    Replies: 1
    Last Post: 04-22-2010, 02:31 PM
  3. Symbolic Links Windows
    By O.Schmidt in forum Backup / Archive Discussion
    Replies: 9
    Last Post: 06-23-2009, 06:26 PM
  4. Archiving Symbolic Links??
    By cfine31 in forum Backup / Archive Discussion
    Replies: 0
    Last Post: 08-17-2005, 12:04 PM
  5. Backup/Restore using a symbolic link
    By Tech in forum Backup / Archive Discussion
    Replies: 0
    Last Post: 04-01-2003, 09:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •