Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql init failure with juicefs volume #26

Open
edwardchenchen opened this issue Oct 11, 2022 · 0 comments
Open

mysql init failure with juicefs volume #26

edwardchenchen opened this issue Oct 11, 2022 · 0 comments

Comments

@edwardchenchen
Copy link

I have created a volume using

juicefs format \
    --storage minio \
    --bucket "https://minio.edwardcc.com/juicefs" \
    --access-key python \
    --secret-key removed \
    "mysql://root:password@(removed:3306)/juicefs" \
    docker

format success

2022/10/11 16:21:12.119184 juicefs[15272] <INFO>: Meta address: mysql://root:****@(removed:3306)/juicefs [interface.go:402]
2022/10/11 16:21:12.128931 juicefs[15272] <INFO>: Data use minio://minio.edwardcc.com/juicefs/docker/ [format.go:435]
2022/10/11 16:21:12.947961 juicefs[15272] <INFO>: Volume is formatted as {
  "Name": "docker",
  "UUID": "30444015-1d19-4865-923c-b7b618d69143",
  "Storage": "minio",
  "Bucket": "https://minio.edwardcc.com/juicefs",
  "AccessKey": "python",
  "SecretKey": "removed",
  "BlockSize": 4096,
  "Compression": "none",
  "KeyEncrypted": true,
  "TrashDays": 1,
  "MetaVersion": 1
} [format.go:472]

start a mysql db using compse
docker-compose.yml

version: '3'
services:
  db:
    image: mysql/mysql-server
    restart: always
    environment:
      MYSQL_DATABASE: demo
      MYSQL_USER: demo
      MYSQL_PASSWORD: demo
      MYSQL_ROOT_PASSWORD: demo
    volumes:
      - jfsvolume:/var/lib/mysql
volumes:
  jfsvolume:
    driver: juicedata/juicefs:latest
    driver_opts:
      name: jfsvolume
      metaurl: "mysql://root:password@(removed:3306)/juicefs"

the mysql init process failed with
 2022-10-11 at 16 25 15
can see high volume of write to minio
 2022-10-11 at 16 51 50

 2022-10-11 at 16 46 57

I have also tried using AWS S3, same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant