disParity » General Discussion

Suggestions - Simulate Command, Output Format

(4 posts)
  1. dldummy
    Member

    Hi Roland, its me again ....

    I did some Brainstorming (with me) about disparity ... and have some Suggestions / Whishes / Questions :

    NEW - Command SIMULATE

    It would be useful if there is a Command like SIMULATE
    Now, the only Chanche to see if there is a need for Update is to do it ...
    What should SIMULATE do !? the same as UPDATE but without doing it ...
    Dont Calculate XOR and DONT modify PARITY
    But it lists every modified, moved, deleted File
    and lists at end OldParitySIze, NewParitySize, moved,modified,deleted Filecount and Filesize.
    NewParitySize in Bytes is needfull if want to be shure that ther is enoughe Parity Space ...
    The other resaon for SIMULATE is ... with it its possible for GUI to know if DATA/PARITY is dirty and inform/warn user that he needs to UPDATE ...

    MOD - OUTPUT FORMAT

    The Output of disParity is the only way to know what happen or happend ...
    But its not Structured, its not Machine reading optimized, and for Script or GUI its hard to read and interpret ...
    Its more like an Debug output ... for Human reading its OK, but in future, to build a full featered GUI its hard to interpret.

    Suggestions:

    TIMESTAMP [ACTION] INFORMATION <STATUS>
    2010-01-27 16:30:01 [COMMAND] UPDATE <OK>

    2010-01-27 16:30:01 [PREINFO] C:\DEVRAID\RAID001\ | DRU001 <OK>
    2010-01-27 16:30:02 [RECORDS] 134 <OK>
    2010-01-27 16:30:03 [ADDS] 1 | 13467 Bytes <OK>
    2010-01-27 16:30:04 [MOVES] 0 | 0 Bytes <OK>
    2010-01-27 16:30:05 [DELETES] 0 | 0 Bytes <OK>

    2010-01-27 16:30:06 [PREINFO] C:\DEVRAID\RAID002\ | DRU002 <OK>
    2010-01-27 16:30:07 [RECORDS] 345 <OK>
    2010-01-27 16:30:08 [ADDS] 0 | 0 Bytes <OK>
    2010-01-27 16:30:09 [MOVES] 0 | 0 Bytes <OK>
    2010-01-27 16:30:10 [DELETES] 0 | 0 Bytes <OK>

    2010-01-27 16:30:11 [PREINFO] C:\DEVRAID\RAID003\ | DRU003 <OK>
    2010-01-27 16:30:12 [RECORDS] 567 <OK>
    2010-01-27 16:30:13 [ADDS] 0 | 0 Bytes <OK>
    2010-01-27 16:30:14 [MOVES] 0 | 0 Bytes <OK>
    2010-01-27 16:30:15 [DELETES] 0 | 0 Bytes <OK>

    2010-01-27 16:30:16 [PROCESS] C:\DEVRAID\RAID001\ | DRU001 <OK>

    The GUI can now initialize Progressbars ... Esteminate Time to complete .... or what else ....

    2010-01-27 16:30:17 [ADD] F:\Mediafolder\Video\SomeFilm\Somefilm.avi <OK>
    2010-01-27 16:30:18 [ADD] F:\Mediafolder\Video\SomeFilm\folder.jpg <HIDDEN-IGNORE>
    2010-01-27 16:30:19 [PROCEND] C:\DEVRAID\RAID001\ | DRU001 <OK>

    2010-01-27 16:30:20 [PROCESS] C:\DEVRAID\RAID002\ | DRU002 <OK>
    2010-01-27 16:30:20 [PROCEND] C:\DEVRAID\RAID002\ | DRU002 <OK>

    2010-01-27 16:30:21 [PROCESS] C:\DEVRAID\RAID003\ | DRU003 <OK>
    2010-01-27 16:30:22 [PROCEND] C:\DEVRAID\RAID003\ | DRU003 <OK>

    2010-01-27 16:30:23 [POSTINFO] EMPTY <OK>
    2010-01-27 16:30:24 [SUMADDS] 1 | 13467 Bytes <OK>
    2010-01-27 16:30:25 [SUMMOVES] 0 | 0 Bytes <OK>
    2010-01-27 16:30:26 [SUMDELETES] 0 | 0 Bytes <OK>
    2010-01-27 16:30:27 [SUMIGNORES] 1 | 3450 Bytes <OK>
    2010-01-27 16:30:28 [SUMERRORS] 0 <OK>
    2010-01-27 16:30:29 [SUMWARNINGS] 0 <OK>
    2010-01-27 16:30:30 [SUMTIME] 22 Sec <OK>
    2010-01-27 16:30:30 [END] EMPTY <OK>

    The DRUxxx thing is DataRiskUnit (i stole the name form FlexRaid ...)
    Why output DRUNumber!? Paths can Change but the DRUNumber (hopefully) stay the same.
    Hmmmm. a Qestion ... Can (Base)Paths change ? Do you store (in Parity) Absolut Paths or Relative to Path given by "dataX=" in config !?

    I tried to keep the order of the Current Log Output, so ther are only little Code changes needed ...
    Its only an quick Example to think / talk about ....
    If you are interested in reoranize the Output, i can think about it a little more and do a more complete list.

    What do other disParity Users think about it ?
    Specialy our GUI Builder klim ...

    Posted 5 years ago #
  2. dldummy
    Member

    OK an Update ... better is
    (Strange i cant Edit my Post ? What are the Rules for Editing ?)

    #TIMESTAMP [ACTION] INFORMATION <STATUS>
    #2010-01-27 16:30:01 [COMMAND] UPDATE <OK>

    Why the # ?

    If you start disparity without command or wrong command you get the help text.
    With # at first Char its easier to seperate Human readble Text from Machine readable text. Example:

    C:\Programme\disParity>disParity.exe stupid
    disParity Snapshot Parity Utility Version 0.20

    #2010-01-27 16:30:01 [COMMAND] stupid <SYNTAX>
    #2010-01-27 16:30:02 [ERROR] Unknown command: stupid <SYNTAX>
    #2010-01-27 16:30:03 [END] EMPTY <OK>

    Usage:

    disparity create [-v] Create new parity snapshot
    disparity update [-v] Update parity to include file system changes
    since the last snapshot
    disparity recover [num] [dir] Recover drive [num] to directory [dir]
    disparity test [num] Simulate a recovery of drive [num]
    disparity verify [-v] Verify that all file data matches the
    parity data in the current snapshot
    disparity list [num] Output a list of all files currently
    protected. Specify optional drive [num]
    to restrict output to a single drive.
    disparity stats List file counts and total data size
    disparity hashcheck [num] Check hash of every file on drive [num]
    disparity undelete [num] Restores any deleted files on drive [num]

    Specify optional -v to enable verbose logging.

    Posted 5 years ago #
  3. Roland
    Roland

    > Hmmmm. a Qestion ... Can (Base)Paths change ? Do you store (in Parity) Absolut Paths or Relative to Path given by "dataX=" in config !?

    The file paths are stored relative to the root of the data path. So this actually means you can move drives around without rebuilding parity if you also change config.txt and rename the files*.dat correctly at the same time. This ability isn't documented right now because it's more of an accident of how I designed it rather than an intended feature. It might change someday in the future...

    Posted 5 years ago #
  4. dldummy
    Member

    Thanks ....
    It souds for me more like a feature ....
    No need for it now, but who knows, if it isnt useful for soebody, someday ...

    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.