You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use docker-compose to setup a bunch of application for seaweedfs.
Let's just say I have 2 Linux Server(CN0, CN1) and they all contains Docker
Here's my environment:
CN0: I deployed 5 services: master, volume, filer, kafka and etcd. The volume bind to /data/disk1 which contains 1G free space in xfs format.
CN1: I deployed 1 service: volume. The volume bind to /data/disk1 which contains 1G free space in xfs format.
First I deploy CN0, and upload many files in order to make it full.
When CN0's volume has only 600k~800k (according to http://CN0:8080/ui/index.html), I can not upload files through filer anymore.
Then I deploy CN1 (add volume only), I want to enlarge my seaweedfs's free space.
When it's done, I still cannot upload any files through CN0's filer.
At this time, filer and master has no error log or normal log printed. But in CN0's volume, it print failed to write to local disk: write /data/1.dat: no space left on device.
It seems that filer is not upload my files to the free CN1 volume but upload to the CN0 volume which is out of space.
I've also tried restart master, filer but no luck.
I upload files through filer.
I use etcd as filer's database (also tried origin leveldb2 but no luck).
[filer.options]
recursive_delete = falsebuckets_folder = "/"#changed, origin is /bucketbuckets_fsync = [
"important_bucket",
"should_always_fsync",
]
[leveldb2]
enabled = falsedir = "/data/filerldb2"# directory to store level db files
[etcd]
enabled = trueservers = "{CN0IP}:2379"timeout = "3s"
master.toml
[master.maintenance]
scripts = """ ec.encode -fullPercent=95 -quietFor=1h ec.rebuild -force ec.balance -force volume.balance -collection=ALL_COLLECTIONS -force volume.fix.replication"""sleep_minutes = 1# changed, origin is 19
[master.filer]
default = "{CN0}:8888"# used by maintenance scripts if the scripts needs to use fs related commands
[master.sequencer]
type = "etcd"# changed, origin is memory. but if I change it back to memory it still the samesequencer_etcd_urls = "http://{CN0}:2379"
replication.toml
[source.filer]
enabled = truegrpcAddress = "{CN0}:18888"#localhost:18888# all files under this directory tree are replicated.# this is not a directory on your hard drive, but on your filer.# i.e., all files with this "prefix" are sent to notification message queue.directory = "/"
[sink.filer]
enabled = truegrpcAddress = "{CN2}:18888"#localhost:18888# all replicated files are under this directory tree# this is not a directory on your hard drive, but on your filer.# i.e., all received files will be "prefixed" to this directory.directory = "/"replication = ""collection = ""ttlSec = 0
Tested seaweedfs version: 1.74~1.75
What's the best practice of enlarge seaweedfs's free space and make filer to upload my files to the right volume?
Thanks for your time!
The text was updated successfully, but these errors were encountered:
Hi
I use
docker-compose
to setup a bunch of application forseaweedfs
.Let's just say I have 2 Linux Server(CN0, CN1) and they all contains
Docker
Here's my environment:
master
,volume
,filer
,kafka
andetcd
. Thevolume
bind to/data/disk1
which contains 1G free space inxfs
format.volume
. Thevolume
bind to/data/disk1
which contains 1G free space inxfs
format.First I deploy CN0, and upload many files in order to make it full.
When CN0's
volume
has only600k~800k
(according to http://CN0:8080/ui/index.html), I can not upload files throughfiler
anymore.Then I deploy CN1 (add
volume
only), I want to enlarge myseaweedfs
's free space.When it's done, I still cannot upload any files through CN0's
filer
.At this time,
filer
andmaster
has no error log or normal log printed. But in CN0'svolume
, it printfailed to write to local disk: write /data/1.dat: no space left on device
.It seems that
filer
is not upload my files to the free CN1volume
but upload to the CN0volume
which is out of space.I've also tried restart
master
,filer
but no luck.I upload files through
filer
.I use
etcd
asfiler
's database (also tried originleveldb2
but no luck).Here's my info:
docker-compose.yml
*.tomls
Tested
seaweedfs
version: 1.74~1.75What's the best practice of enlarge
seaweedfs
's free space and makefiler
to upload my files to the rightvolume
?Thanks for your time!
The text was updated successfully, but these errors were encountered: