Red Hat Bugzilla – Bug 487610
GFS: Change gfs freeze/unfreeze to use new standard
Last modified: 2010-03-30 04:56:10 EDT
Description of problem:
Recently, Eric Sandeen proposed changing the RHEL5 kernel for 5.4
so that it uses the new standard for freeze/unfreeze. His patch
changed all the kernel file systems, but gfs-kernel lies outside
his jurisdiction. If his change goes into 5.4, we should change
gfs-kernel so that it uses the same mechanisms as the other file
Version-Release number of selected component (if applicable):
Steps to Reproduce:
If I understand this correctly, you should be able to use a tool
that uses the new standard freeze/unfreeze mechanism for gfs.
For example: xfs_freeze -f and xfs_freeze -u
FWIW only very recent xfs_freeze will work on a "foreign" filesystem. The xfsprogs that will ship with RHEL5.4 will do it, though (still needs to be checked in).
Ported and checked into RHEL5 git branch.
Build 2163243 is now complete and successful. This is now fixed
in gfs-kmod-0.1.34-9.el5. Changing status to Modified.
/dev/mapper/vedder-vedder0 on /mnt/vedder0 type gfs (rw,hostdata=jid=0:id=196609:first=1)
[root@z2 ~]# xfs_freeze -f /mnt/vedder0/
[root@z4 ~]# echo test > /mnt/vedder0/file (frozen as expected)
[root@z2 ~]# xfs_freeze -u /mnt/vedder0 (unexpected freeze on open(..) call)
The FS cannot be unfrozen and reboot is required.
[root@z2 ~]# rpm -q kmod-gfs
[root@z2 ~]# uname -a
Linux z2 2.6.18-189.el5 #1 SMP Tue Feb 16 11:10:22 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@z2 ~]# rpm -q xfsprogs
Unfreeze hang is caused by bug 570530. As this patch works as expected and the hang is another bug I'm marking this as verified.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.