rancher / convoy

A Docker volume plugin, managing persistent container volumes.
Apache License 2.0
1.31k stars 135 forks source link

File Corruption when testing with postgres #117

Open SilentHunter124 opened 8 years ago

SilentHunter124 commented 8 years ago

Hi *,

I mounted successfully a nfs and started convoy via: /usr/local/bin/convoy daemon --drivers vfs --driver-opts vfs.path=/dockerConvoyNFS

However when I run postgresql image I get the following problem:

postgresql_1 | The files belonging to this database system will be owned by user "postgres". postgresql_1 | This user must also own the server process. postgresql_1 | postgresql_1 | The database cluster will be initialized with locale "en_US.utf8". postgresql_1 | The default database encoding has accordingly been set to "UTF8". postgresql_1 | The default text search configuration will be set to "english". postgresql_1 | postgresql_1 | Data page checksums are disabled. postgresql_1 | postgresql_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok postgresql_1 | creating subdirectories ... ok postgresql_1 | selecting default max_connections ... 100 postgresql_1 | selecting default shared_buffers ... 128MB postgresql_1 | selecting dynamic shared memory implementation ... posix postgresql_1 | creating configuration files ... ok postgresql_1 | creating template1 database in /var/lib/postgresql/data/base/1 ... ok postgresql_1 | initializing pg_authid ... ok postgresql_1 | initializing dependencies ... ok postgresql_1 | creating system views ... ok postgresql_1 | loading system objects' descriptions ... FATAL: could not read block 31 in file "base/1/2674": read only 0 of 8192 bytes postgresql_1 | STATEMENT: CREATE TEMP TABLE tmp_pg_description ( objoid oid, classname name, objsubid int4, description text) WITHOUT OIDS; postgresql_1 | postgresql_1 | child process exited with exit code 1 postgresql_1 | initdb: removing contents of data directory "/var/lib/postgresql/data"

Any help would be great ....

yasker commented 8 years ago

It's more like a hardware or nfs (if used) problem? Convoy really doesn't deal with block level things for vfs...