Munichandra Nageti
09/26/2022, 11:48 AMmy_space_1, my_space_2 and my_space_3
) and created a snapshot. Then I deleted the namespace my_space_3
and tried to restore the snapshot by copying/overwriting the folders data
and wal
in the corresponding snapshot directory to its parent directory (at the same level with checkpoints) and restarted the nebula services. But I couldn't find the deleted namespace my_space_3
after the restart. Can someone please take a look and help me with this, Thanks.
(root@nebula) [(none)]> show spaces;
+--------------+
| Name |
+--------------+
| "my_space_1" |
| "my_space_2" |
| "my_space_3" |
+--------------+
Got 3 rows (time spent 507/749 us)
Mon, 26 Sep 2022 10:59:24 UTC
(root@nebula) [(none)]> CREATE SNAPSHOT;
Execution succeeded (time spent 107299/107410 us)
Mon, 26 Sep 2022 10:59:29 UTC
(root@nebula) [(none)]> SHOW SNAPSHOTS;
+--------------------------------+---------+----------------------------------------+
| Name | Status | Hosts |
+--------------------------------+---------+----------------------------------------+
| "SNAPSHOT_2022_09_26_10_59_29" | "VALID" | "my_host_1:9779, my_host_2:9779" |
+--------------------------------+---------+----------------------------------------+
Got 1 rows (time spent 432/631 us)
(root@nebula) [(none)]> drop space my_space_3;
Execution succeeded (time spent 838/995 us)
Mon, 26 Sep 2022 11:05:40 UTC
(root@nebula) [(none)]> show spaces;
+--------------+
| Name |
+--------------+
| "my_space_1" |
| "my_space_2" |
ubuntu@my_host:/usr/local/nebula/data/storage/nebula/1/checkpoints/SNAPSHOT_2022_09_26_10_59_29$ sudo cp -r data/ wal/ ../../
cp: 'data/OPTIONS-000007' and '../../data/OPTIONS-000007' are the same file
cp: 'data/000043.sst' and '../../data/000043.sst' are the same file
cp: 'data/000045.sst' and '../../data/000045.sst' are the same file
cp: 'data/000047.sst' and '../../data/000047.sst' are the same file
cp: 'wal/2/0000000000000030206.wal' and '../../wal/2/0000000000000030206.wal' are the same file
cp: 'wal/2/0000000000000030572.wal' and '../../wal/2/0000000000000030572.wal' are the same file
cp: 'wal/2/0000000000000000381.wal' and '../../wal/2/0000000000000000381.wal' are the same file
cp: 'wal/4/0000000000000030201.wal' and '../../wal/4/0000000000000030201.wal' are the same file
ubuntu@my_host :~$sudo /usr/local/nebula/scripts/nebula.service restart all
(root@nebula) [(none)]> show spaces;
+--------------+
| Name |
+--------------+
| "my_space_1" |
| "my_space_2" |
+--------------+
Got 2 rows (time spent 471/657 us)
wey
09/29/2022, 1:27 AMusr/local/nebula/data/meta
Munichandra Nageti
09/29/2022, 5:42 AMubuntu@my_host_2:/usr/local/nebula/data/meta/nebula/0/checkpoints/SNAPSHOT_2022_09_26_10_59_29$ sudo cp -r data/ wal/ ../../
cp: 'data/OPTIONS-000013' and '../../data/OPTIONS-000013' are the same file
cp: 'data/000009.sst' and '../../data/000009.sst' are the same file
cp: 'data/000015.sst' and '../../data/000015.sst' are the same file
cp: 'data/000017.sst' and '../../data/000017.sst' are the same file
cp: 'wal/0/0000000000000299579.wal' and '../../wal/0/0000000000000299579.wal' are the same file
cp: 'wal/0/0000000000000242239.wal' and '../../wal/0/0000000000000242239.wal' are the same file
青藤木鸟
09/29/2022, 9:50 AMMunichandra Nageti
09/29/2022, 10:48 AM青藤木鸟
09/29/2022, 10:59 AMMunichandra Nageti
09/29/2022, 11:05 AMmetad
service is not coming up and seeing the below error in the logs. Do we have any suggestions to fix this error ?, Thanks.
E20220929 14:40:58.028486 39193 MetaDaemon.cpp:182] Parser God Role error:E_LEADER_CHANGED
阳子
09/30/2022, 4:31 PMMunichandra Nageti
10/06/2022, 12:42 PM