Closed quasar5935 closed 2 weeks ago
Short answer: this is a known problem. Or, rather, a piece of missing functionality. Haven't had time to fix it yet.
Unrelated notes and tips:
ais show cluster
- the information that'd be expected when we talk erasure-codingais put
, ais get
, etc. See ais alias
GET(<missing-object>)
is currently the only available - and partial - workaround. Try to delete an erasure coded object, and do a GET (or ais get
)ls -la
(above). To show object location, use ais ls <BUCKET/OBJECT>--all
or ais ls <BUCKET/OBJECT> --props location
related: d2feb38cfda221a10abaec90453e5eea6c8b591c
in progress: b4666d34154a9b75fedd3acd02228890dceccbb9
fixed by be7185ac101b40db9034c8850858ff08f14ba4e1 sequence; closing
Is there an existing issue for this?
Describe the bug
Validate/rebalance procedure do not restore ec blocks.
Expected Behavior
Validate procedure will restore ec and mt blocks.
Current Behavior
I reproduced disk loss data. Validate procedure do not restore ec and mt.
Steps To Reproduce
Create new bucket
ais create ais://kpTest2
Check bucket properties
Create file
dd if=/dev/urandom of=big1 bs=2062144 count=1
Upload file
ais object put big1 ais://kpTest2/
Check file properties
Find ec on another target
/ais/sda/@ais/kpTest2/%dw/: total 0 drwxr-x--- 2 root root 6 Sep 15 20:01 . drwxr-x--- 8 root root 72 Sep 15 20:01 ..
/ais/sda/@ais/kpTest2/%ec/: total 10804 drwxr-x--- 2 root root 36 Sep 15 20:11 . drwxr-x--- 8 root root 72 Sep 15 20:01 .. -rw-r----- 1 root root 1031072 Sep 15 20:11 big1 -rw-r----- 1 root root 10031072 Sep 15 20:11 illionora1
/ais/sda/@ais/kpTest2/%mt/: total 12 drwxr-x--- 2 root root 57 Sep 15 20:11 . drwxr-x--- 8 root root 72 Sep 15 20:01 .. -rw-r----- 1 root root 198 Sep 15 20:11 4ggillionora1 -rw-r----- 1 root root 231 Sep 15 20:11 big1 -rw-r----- 1 root root 231 Sep 15 20:11 illionora1
/ais/sda/@ais/kpTest2/%ob/: total 4194304 drwxr-x--- 2 root root 27 Sep 15 20:11 . drwxr-x--- 8 root root 72 Sep 15 20:01 .. -rw-r----- 1 root root 4294967296 Sep 15 20:11 4ggillionora1
/ais/sda/@ais/kpTest2/%wk/: total 0 drwxr-x--- 2 root root 6 Sep 15 20:11 . drwxr-x--- 8 root root 72 Sep 15 20:01 ..
[root@ais-dev-admin-9k6lf downloads]# ais storage validate ais://kpTest2 BUCKET OBJECTS MISPLACED MISSING COPIES ais://kpTest2 3 0 0
[root@ais-dev-target-2 kpTest2]# ls -la /ais/sda/@ais/kpTest2/%*/ /ais/sda/@ais/kpTest2/%ds/: total 0 drwxr-x--- 2 root root 6 Sep 15 20:01 . drwxr-x--- 8 root root 72 Sep 15 20:01 ..
/ais/sda/@ais/kpTest2/%dw/: total 0 drwxr-x--- 2 root root 6 Sep 15 20:01 . drwxr-x--- 8 root root 72 Sep 15 20:01 ..
/ais/sda/@ais/kpTest2/%ec/: total 10804 drwxr-x--- 2 root root 36 Sep 15 20:11 . drwxr-x--- 8 root root 72 Sep 15 20:01 .. -rw-r----- 1 root root 10031072 Sep 15 20:11 illionora1
/ais/sda/@ais/kpTest2/%mt/: total 12 drwxr-x--- 2 root root 57 Sep 15 20:11 . drwxr-x--- 8 root root 72 Sep 15 20:01 .. -rw-r----- 1 root root 198 Sep 15 20:11 4ggillionora1 -rw-r----- 1 root root 231 Sep 15 20:11 illionora1
/ais/sda/@ais/kpTest2/%ob/: total 4194304 drwxr-x--- 2 root root 27 Sep 15 20:11 . drwxr-x--- 8 root root 72 Sep 15 20:01 .. -rw-r----- 1 root root 4294967296 Sep 15 20:11 4ggillionora1
/ais/sda/@ais/kpTest2/%wk/: total 0 drwxr-x--- 2 root root 6 Sep 15 20:11 . drwxr-x--- 8 root root 72 Sep 15 20:01 ..
[root@ais-dev-admin-9k6lf ois]# ais show rebalance --all REB ID NODE OBJECTS RECV SIZE RECV OBJECTS SENT SIZE SENT START END STATE g41 ais-dev-target-0 0 0B 4 38.27MiB 21:55:40 21:56:06 Finished g41 ais-dev-target-1 1 0B 0 0B 21:55:40 21:56:09 Finished g41 ais-dev-target-2 2 144B 0 0B 21:55:40 21:56:08 Finished g41 ais-dev-target-3 2 19.13MiB 3 0B 21:55:40 21:56:09 Finished g41 ais-dev-target-4 1 0B 2 288B 21:55:40 21:56:09 Finished
g40 ais-dev-target-1 0 0B 0 0B 21:09:53 21:13:36 Finished
g38 ais-dev-target-0 0 0B 4 38.27MiB 20:49:18 20:49:44 Finished g38 ais-dev-target-2 2 144B 0 0B 20:49:18 20:49:46 Finished g38 ais-dev-target-3 2 19.13MiB 3 0B 20:49:18 20:49:47 Finished g38 ais-dev-target-4 1 0B 2 288B 20:49:18 20:49:47 Finished
g37 ais-dev-target-0 2 19.13MiB 4 19.13MiB 20:47:25 20:47:54 Finished g37 ais-dev-target-2 3 144B 0 0B 20:47:25 20:47:54 Finished g37 ais-dev-target-3 0 0B 4 38.27MiB 20:47:25 20:47:52 Finished g37 ais-dev-target-4 1 9.57MiB 4 288B 20:47:25 20:47:54 Finished
g36 ais-dev-target-3 0 0B 0 0B 20:40:38 20:44:20 Finished
g35 ais-dev-target-0 0 0B 0 0B 13:03:25 13:03:51 Finished g35 ais-dev-target-2 1 144B 0 0B 13:03:25 13:03:53 Finished g35 ais-dev-target-4 0 0B 2 288B 13:03:25 13:03:52 Finished
g34 ais-dev-target-0 0 0B 0 0B 13:02:07 13:02:33 Finished g34 ais-dev-target-2 1 144B 0 0B 13:02:07 13:02:36 Finished g34 ais-dev-target-4 0 0B 2 288B 13:02:07 13:02:34 Finished
g33 ais-dev-target-0 0 0B 0 0B 13:00:03 13:00:29 Finished g33 ais-dev-target-2 0 0B 2 288B 13:00:03 13:00:30 Finished g33 ais-dev-target-4 1 144B 0 0B 13:00:03 13:00:32 Finished
g31 ais-dev-target-0 0 0B 0 0B 00:28:45 00:29:12 Finished g31 ais-dev-target-2 0 0B 0 0B 00:28:45 00:29:12 Finished g31 ais-dev-target-4 0 0B 0 0B 00:28:45 00:29:12 Finished
g27 ais-dev-target-4 0 0B 0 0B 00:24:00 00:24:26 Finished