unr41dus3r Posted December 23, 2021 Share Posted December 23, 2021 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 Quote Link to comment
JorgeB Posted December 23, 2021 Share Posted December 23, 2021 If it's already decrypted you can use: xfs_repair -v /dev/mapper/sdX1 Quote Link to comment
unr41dus3r Posted December 23, 2021 Author Share Posted December 23, 2021 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" Quote Link to comment
JorgeB Posted December 23, 2021 Share Posted December 23, 2021 That works for any array/pool devices, not sure with unassigned ones since I don't use encryption. Quote Link to comment
Recommended Posts
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.