Careful! The advice given so far ignores the fact that it appears you have a disk partitioned using lvm. Formatting this may loose data!
Try the commands lvdisplay
, pvdisplay
, vgdisplay
.
You can create an lvm volume without partitioning the drive. It may already be configured and mounted at that location.
Checked the /etc/fstab file and it has the line: /dev/vbackup/lvbackup /backups xfs defaults 1 2
I’m guessing this means the /backups folder is mounted to this device /dev/vbackup /lvbackup
No, the drive /dev/sda is added as a physical volume in the volume group "vbackup". The logical volume "lvbackup" has been created in this volume group. The logical volume ("/dev/vbackup/lvbackup") is mounted on the folder /backups.
If it's not formatted (which I suspect it already is), you would format the logical volume mkfs.xfs /dev/vbackup/lvbackup
, then mount it.
I repeat - Do not partition the drive with fdisk. Do not format the drive with mkfs. I strongly suspect it's already formatted and mounted. It's running lvm on the raw drive, and so isn't partitioned either.
Read up on lvm.
If it's already configured, but just didn't come up with the raid controller, try this:
vgchange -a y
mount /backups
Alternatively...
Due warnings aside, let's assume you have a new (replacement?) drive and you want it to mount in place of the old drive. Here's the commands you'd use to replicate the prior config (as best I can tell from fstab.)
pvcreate /dev/sda
vgcreate vbackup /dev/sda
lvcreate -L 900G -n lvbackup vbackup
vgchange -a y
mkfs.xfs /dev/vbackup/lvbackup
mount /dev/vbackup/lvbackup /backups
Good luck!
Best Answer
The quota system for the XFS file system needs to be enabled and managed in a slightly different manner to how it is/was done with other file systems.
The mount option to enable quota is not
quota
but one or more of:Each mount option can also be specified as
<option>noenforce
; this will allow usage reporting without actually enforcing any quota limits.Once enabled quota and usage can be managed and reported with the dedicated
xfs_quota
tool.