UFS glabel and error: GEOM_PART: integrity check failed

marcinkk

New Member

Reaction score: 1
Messages: 18

Hi,

I've decided to use labels in fstab and after reading the Handbook https://www.freebsd.org/doc/handbook/geom-glabel.html I've made the labels to all the slices. For the system disk (rootfs, swap, usr, ...) everything works fine. But for the additional disk I have some strange behavior:

The disk:

# gpart show -p
Code:
=>       63  488397105    ada1  MBR  (233G)
         63  488396727  ada1s1  freebsd  [active]  (233G)
  488396790        378          - free -  (189K)

=>        0  488396727   ada1s1  BSD  (233G)
          0  488396727  ada1s1d  freebsd-ufs  (233G)
then command:

# glabel label backupfs /dev/ada1s1d

and on the screen an error:

GEOM_PART: integrity check failed (label/backupfs, BSD)

after that:

# glabel status
Code:
                            Name  Status  Components
diskid/DISK-01000000000000000001     N/A  ada1
                  label/backupfs     N/A  ada1s1
          ufsid/50b5faaf79e2cb9c     N/A  ada1s1
So label is added but for the ada1s1 not for the ada1s1d.
After adding to the /etc/fstab:

Code:
# Device                Mountpoint              FStype          Options         Dump    Pass#
/dev/label/backupfs     /backup                 ufs             rw              2       2
the disk is mounted at start and seems to work fine, but the GEOM_PART error is displayed on the screen after restart.

When I use the command:

# glabel create backupfs /dev/ada1s1d

then the error is not displayed and the result is as expected:

# glabel status
Code:
                            Name  Status  Components
diskid/DISK-01000000000000000001     N/A  ada1
          ufsid/50b5faaf79e2cb9c     N/A  ada1s1
                  label/backupfs     N/A  ada1s1d
But as stated in the manual: create Create temporary label name for the given provider. and after reboot the label is not set.

Any explanation? An advice? Can I ignore the error displayed?

With Regards,
Marcin
 
Top