December 23, 20214 yr Hello, i have a little problem with an encrypted XFS Volume which i created with unassigned devices. The external hard disk has some problems when i check the log and i would like to check the filesystem. When i try to repair it with xfs_repair i get an error xfs_check -n /dev/sda1 xfs_repair: cannot open /dev/sda1: Device or resource busy The volume is not mounted at the moment. Anybody has the information to check this? In the unraid documentation i could not find the answer. https://wiki.unraid.net/index.php/Check_Disk_Filesystems#Drives_formatted_with_XFS
December 23, 20214 yr Community Expert If it's already decrypted you can use: xfs_repair -v /dev/mapper/sdX1
December 23, 20214 yr Author Thanks for your help. I checked the folder, if the drive is mounted is see the device with "DriveModelName-Serialnumber" but not sda1 When the drive is not mounted i dont see the device name or sda1 When i try to run the repair on the "DriveModelName-Serialnumber" drive i get "contains a mounted and writable filesystem"
December 23, 20214 yr Community Expert That works for any array/pool devices, not sure with unassigned ones since I don't use encryption.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.