Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Cannot create xfs volume #1933

Closed
hustlahusky opened this issue Oct 11, 2017 · 2 comments
Closed

Cannot create xfs volume #1933

hustlahusky opened this issue Oct 11, 2017 · 2 comments

Comments

@hustlahusky
Copy link

Hello. I have a problem with creating volume with option fstype=xfs. I'd tried to run this command:

docker volume create --driver=vsphere --name=539-1-539_mongo_data -o fstype=xfs

And I'm getting error:

Error response from daemon: create 539-1-539_mongo_data@datastore17: VolumeDriver.Create: Failed to create filesystem on /dev/disk/by-path/pci-0000:0b:00.0-scsi-0:0:6:0: exit status 1. Output = Illegal value 539-1-539_mongo_data@datastore17 for -L option
Usage: mkfs.xfs
/* blocksize */         [-b log=n|size=num]
/* metadata */          [-m crc=0|1,finobt=0|1,uuid=xxx]
/* data subvol */       [-d agcount=n,agsize=n,file,name=xxx,size=num,
                            (sunit=value,swidth=value|su=num,sw=num|noalign),
                            sectlog=n|sectsize=num
/* force overwrite */   [-f]
/* inode size */        [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2,
                            projid32bit=0|1,sparse=0|1]
/* no discard */        [-K]
/* log subvol */        [-l agnum=n,internal,size=num,logdev=xxx,version=n
                            sunit=value|su=num,sectlog=n|sectsize=num,
                            lazy-count=0|1]
/* label */             [-L label (maximum 12 characters)]
/* naming */            [-n log=n|size=num,version=2|ci,ftype=0|1]
/* no-op info only */   [-N]
/* prototype file */    [-p fname]
/* quiet */             [-q]
/* realtime subvol */   [-r extsize=num,size=num,rtdev=xxx]
/* sectorsize */        [-s log=n|size=num]
/* version */           [-V]
                        devicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).

Also I'd tried different datastores, but unsuccessfull.

@govint
Copy link
Contributor

govint commented Oct 11, 2017

@hustlahusky thanks for trying the plugin. The issue seems to be with the volume name provided, the plugin uses the volume name as the label of the volume and XFS doesn't allow a label more than 12 chars long. "539-1-539_mongo_data" is 21 chars long and hence FS creation is failing.

Please try with a smaller volume name and it should work.

The plugin doesn't allow mentioning an FS label when creating the volume. May be that could be supported if needed. But please try out a smaller volume name and let us know.

@hustlahusky
Copy link
Author

@govint thank you. I'd tried smaller name and it's works! :)

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

No branches or pull requests

2 participants