Skip to content

Running sudo stratis pool create platter /dev/sda results in the mkfs.xfs error "Filesystem must be larger than 300MB" #523

@stuartpb

Description

@stuartpb

This is on a fresh (set up a few days ago) installation of Arch Linux. I'm trying to set up a new Stratis pool on a 2TB USB hard drive:

[stuart@studlow ~]$ sudo stratis pool create platter /dev/sda 
Execution failed:
stratisd failed to perform the operation that you requested. It returned the following information via the D-Bus: ERROR: Error: Command failed: cmd: "/usr/sbin/mkfs.xfs" "-f" "-q" "/dev/dm-3" "-m" "uuid=2a6ec9d7-0679-4b90-a0fa-b4179894b83b" "-d" "noalign", exit reason: 1 stdout:  stderr: Filesystem must be larger than 300MB.

Trying to rerun the mkfs.xfs command manually results in the same error message - it appears that /dev/dm-3 points to a partition that's only 16MB. Some diagnostic info:

[stuart@studlow ~]$ lsblk
NAME                                                                    MAJ:MIN RM   SIZE RO TYPE    MOUNTPOINTS
sda                                                                       8:0    0   1.8T  0 disk    
└─stratis-1-private-2a6ec9d706794b90a0fab4179894b83b-physical-originsub 254:0    0   816M  0 stratis 
  ├─stratis-1-private-2a6ec9d706794b90a0fab4179894b83b-flex-thinmeta    254:1    0    16M  0 stratis 
  ├─stratis-1-private-2a6ec9d706794b90a0fab4179894b83b-flex-thindata    254:2    0   768M  0 stratis 
  └─stratis-1-private-2a6ec9d706794b90a0fab4179894b83b-flex-mdv         254:3    0    16M  0 stratis 
[stuart@studlow ~]$ sudo dmsetup ls
stratis-1-private-2a6ec9d706794b90a0fab4179894b83b-flex-mdv     (254:3)
stratis-1-private-2a6ec9d706794b90a0fab4179894b83b-flex-thindata        (254:2)
stratis-1-private-2a6ec9d706794b90a0fab4179894b83b-flex-thinmeta        (254:1)
stratis-1-private-2a6ec9d706794b90a0fab4179894b83b-physical-originsub   (254:0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions