[root@localhost ~]# xfs_repair /dev/VG1/PV1
xfs_repair: /dev/VG1/PV1 contains a mounted filesystem
xfs_repair: /dev/VG1/PV1 contains a mounted and writable filesystem
fatal error -- couldn't initialize XFS library
[root@localhost ~]# umount -a
[root@localhost ~]# xfs_repair /dev/VG1/PV1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
Phase 5 - rebuild AG headers and trees...
- reset superblock...
Phase 6 - check inode connectivity...
- resetting contents of realtime bitmap and summary inodes
- traversing filesystem ...
- traversal finished ...
- moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
done
[root@localhost ~]# xfs_admin -L HD1 /dev/VG1/PV1
writing all SBs
new label = "HD1"
Unmount the physical volume and run the command. It worked for my issue.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/119224
Title:
xfs_admin gives "fatal error" when trying to label mounted device
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfsprogs/+bug/119224/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs