File: 083

package info (click to toggle)
sheepdog 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,364 kB
  • ctags: 3,951
  • sloc: ansic: 30,552; sh: 3,573; perl: 2,924; asm: 453; makefile: 391; python: 192
file content (39 lines) | stat: -rwxr-xr-x 536 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash

# Test vdi repair functionality with the condition nr_zones < inode->nr_copies

. ./common

for i in `seq 0 1`; do
    _start_sheep $i "-z 0"
done

_start_sheep 2 "-z 1"

_wait_for_sheep 3

$DOG node list

# 3 copies, 2 zones
_cluster_format

$DOG vdi create test 12M
_vdi_list

echo "original data" | $DOG vdi write test

$DOG cluster shutdown

rm $STORE/1/obj/007c2b2500000000

for i in `seq 0 1`; do
    _start_sheep $i "-z 0"
done

_start_sheep 2 "-z 1"

_wait_for_sheep 3

$DOG vdi check test

$DOG vdi read test 0 14