HAMMER: you can newfs a mounted hammer device

Jan Lentfer Jan.Lentfer at web.de
Tue Oct 13 11:16:03 PDT 2009


Retry the following:

# newfs_hammer -L pgsql /dev/ad7s2d
# mount_hammer /dev/ad7s2d /usr/pkg/pgsq
# newfs /dev/ad7s2d
# umount /usr/pkg/pgsql
# mount /dev/ad7s2d /usr/pkg/pgsql
# mount | grep pgsql
dev/ad7s2d on /usr/pkg/pgsql (ufs, local)
So, it actually newfs'd the mounted hammer fs, then you can unmount
the hammer and mount the device as UFS.
I think it works because newfs looks into the mounted devices, but
there is no /dev/xyz, but only the label... so it goes on happily and
newfs maybe does not check for existing superblocks (like newfs.xfs)
and if it checks maybe it doesn't know how a hammer one looks like.
Kind Regards,

Jan Lentfer





More information about the Bugs mailing list