Verify Replication status

SebaD
Posts: 34
Joined: Fri May 20, 2011 2:44 am

Verify Replication status

Postby SebaD » Wed Jul 06, 2011 8:18 am

Hello,
I have my Amahi up and running and I have defined replication for some folders (extra copies=1).
How can I verify the status of this replication? Was it done, was it successfull, is it in progress, will be done overnight?

Thanks
Seba

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

Re: Verify Replication status

Postby sgtfoo » Wed Jul 06, 2011 6:08 pm

It's done whenever a greyhole file system check is done..... typically it automatically runs at midnight.

the command to manually run one (must be sudo / su )

Code: Select all

greyhole --fsck

Once it's done replicating your stuff across the second drive, you will see your storage space used up as though the folder(s) you defined to duplicate are taking up the double space they did before.
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

SebaD
Posts: 34
Joined: Fri May 20, 2011 2:44 am

Re: Verify Replication status

Postby SebaD » Thu Jul 07, 2011 3:19 am

I understand how I can trigger the replication/fsCheck, but is there a way to determine at a certain point what is the status without starting a process which would take couple of
hours?

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

Re: Verify Replication status

Postby sgtfoo » Thu Jul 07, 2011 6:25 am

Code: Select all

greyhole -q
This will show the queue of things it's doing/going to do

Code: Select all

greyhole -s
this will show its status

see this...
http://wiki.amahi.org/index.php/Linux-hda_commands
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

SebaD
Posts: 34
Joined: Fri May 20, 2011 2:44 am

Re: Verify Replication status

Postby SebaD » Thu Jul 07, 2011 6:34 am

Thank you for these quick answers and I try not to be a stick in the mud...

The 2 commands show what is greyhole doing now.
If the greyhole process is fine and sleeping is this 100% same with all the folders are properly replicated as per setting?
If the serif is sleeping doesn't mean all the bad guys are locked up...

So if I change the replication mode for a folder basically I'm leaving a message for greyhole and it is going to be serviced at some point, agreed. But how do I know if that moment has passed or not, if it went well or not?

Does it make sense?

Who is online

Users browsing this forum: No registered users and 19 guests