[sheepdog] [PATCH] Convert config file - the free disk space is now stored in the config file

Jens WEBER jweber at tek2b.org
Mon Aug 6 14:30:24 CEST 2012


> Yes, we won't have global copies in config when per vdi copies set are
> merged.
> 
> Thanks,
> Yuan
> 

Ok. I have an old store v0.3.0 converted to v0.4.0 with simple2farm script. Then add gateway-only node and I discover now, that the config file of the gateway-only nodes doesn't contains a store type 'farm'.

1. Is that correct? It is safe to add farm on update config?

/var/lib/sheepdog/disc0/config (old style) <- gateway-only

CTime:  4fdf5f53278153b8
Flags:  0000000000000000
Copies: 2
Store:  <- empty !!!

SD_FLAG_NOHALT & SD_FLAG_QUORUM are unset (-m safe) /* Serve the IO rquest as long as nodes >= copies */

/var/lib/sheepdog/disc1/config (old style) <- converted old store

CTime:  4fdf5f53278153b8
Flags:  0000000000000000
Copies: 2
Store:  farm <- as expected

SD_FLAG_NOHALT & SD_FLAG_QUORUM are unset (-m safe) /* Serve the IO rquest as long as nodes >= copies */

2. For what stand the first bit in flags? In my tests with new formated cluster it is always set.

/var/lib/sheepdog/disc0/config (new style - autoconfig of vnodes) <- on test machine

CTime:  501f55340fb0b170
Space:  0
Flags:  0000000000000001 <- first bit always set
Copies: 3
Store:  farm

SD_FLAG_NOHALT & SD_FLAG_QUORUM are unset (-m safe) /* Serve the IO rquest as long as nodes >= copies */

Thanks, Jens



More information about the sheepdog mailing list