junneyang / zumastor

Automatically exported from code.google.com/p/zumastor
0 stars 1 forks source link

--samba only shows snapshots taken after --samba #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
* What steps will reproduce the problem?

1. Define a master without --samba, for example: zumastor define master
zumatest --hourly 24
2. Create a file, take snapshot
3. Modify the file, take snapshot
4. Define the same master with --samba: zumastor define master zumatest
--hourly 24 --samba
5. Modify the file, take snapshot

* What is the expected output? What do you see instead?

Expected: all the snapshots are shown in the "Previous versions" tab in
Windows.
Actual output: only snapshots taken after defining the master with --samba
(step 4) are shown in "Previous versions"

* What version of the product are you using? On what operating system?

Zumastor 0.6
Ubuntu Server 7.10
Windows XP SP2

Original issue reported on code.google.com by pgqui...@gmail.com on 31 Jan 2008 at 5:22

GoogleCodeExporter commented 9 years ago
IIUC the reason why this happens is the second 'zumastor define master', 
regardless
with or without '--samba', destroys zumastor's database for this volume. 

It also happens if you do 'zumastor forget volume' and 'zumastor create 
volume': you
don't lose data or snapshots but snapshots are not mounted anymore.

Thus, this is expected behavior, i. e. not a bug but a feature. The question 
is, is
this the right behavior?

Original comment by pgqui...@gmail.com on 8 Feb 2008 at 7:57

GoogleCodeExporter commented 9 years ago
Currently, any change on the '--samba' or '--export' options will only affect 
the
snapshots that are created afterwards. You need to restart 'zumastor master' to 
have
the existing snapshots also reflect the change. This is mostly for the sake of
simplicity. We don't need to worry about synchronization when 'zumastor master' 
may
create/delete snapshots during the change.

I think it is a missing feature. We need to provide a way that allows users to 
change
any configuration easily.

Original comment by jiahotc...@gmail.com on 8 Feb 2008 at 11:20