Hi, I try to glabel (tunefs -L) my gmirror RAID-1. After labeling the /usr, /tmp, /var partition, glabel status shows the labes are being assigned to the mirror/gm0s1* partitions. I then changed my /etc/fstab to use the ufs/<label> devices instead of the mirror/gm0s1* devices. After the system got rebootet, the system is now unable to mount the partitions and puts me into the single user mode. glabel status shows me now, that the labels are all assigned to da0s1* instead of mirror/gm0s1*. How did this happen? glabel never shows the mirror/gm0s1* partitions anyhow - only after labeling them. But after reboot the labels are reassigned to da0s1* and glabel does not show any mirror/gm0s1* label. How can I prevent this to happen? -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/
Hi, that gmirror together with glabel cannot be used looks like a problem introduced with 8.0-RC1 to me. What I did: 2. Installation 3. reboot 4. mirror Root-hdd sysctl kern.geom.debugflags=17 gmirror label -vb round-robin gm0 da0 gmirror load echo 'geom_mirror_load="YES"' >> /boot/loader.conf echo 'geom_label_load="YES"' >> /boot/loader.conf 5. adjust fstab vi /etc/fstab :%s/ad/mirror\/gm/g 6. reboot 7. mirror Root-hdd gmirror insert gm0 da1 gmirror status 8. wait until gmirror is done 9. reboot 10. glabel status With 8.0-RC1 I see only da0s1a, da0s1d, da0s1e and da0s1f as Components shown by glabel(8). With 8.0-BETA3 I see mirror/gm0s1a, mirror/gm0s1d, mirror/gm0s1e and mirror/gm0s1f as Components which would be correct here. I use old IBM 2GB DFHS harddisks for that tests. I have a bunch of them so I used for both tries "fresh" drives. I can't see what has changed here between BETA3 and RC1 but something must have changed in a way which renders gmirror together with glabel on RC1 non-working. I just did that as testing the configuration I want to use for my fileserver when the new harddisks arrived but now I'm not sure If I should rely on gmirror+glabel.... Oliver Lehmann wrote:> Hi, > > I try to glabel (tunefs -L) my gmirror RAID-1. After labeling > the /usr, /tmp, /var partition, glabel status shows the labes are being > assigned to the mirror/gm0s1* partitions. > I then changed my /etc/fstab to use the ufs/<label> devices instead of > the mirror/gm0s1* devices. > After the system got rebootet, the system is now unable to mount the > partitions and puts me into the single user mode. > glabel status shows me now, that the labels are all assigned to da0s1* > instead of mirror/gm0s1*. How did this happen? glabel never shows the > mirror/gm0s1* partitions anyhow - only after labeling them. But after > reboot the labels are reassigned to da0s1* and glabel does not show any > mirror/gm0s1* label. > > How can I prevent this to happen?
On Sun, Sep 27, 2009 at 10:37:25PM +0200, Oliver Lehmann wrote:> Hi, > > that gmirror together with glabel cannot be used looks like a problem > introduced with 8.0-RC1 to me.[...] Does anything change between you upgrade from BETA3 and RC1? For example gmirror was compiled into the kernel before and now is loaded as module or something similar? Could you test this patch: http://people.freebsd.org/~pjd/patches/improved_taste.patch -- Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090928/1e9d1097/attachment.pgp
Hi Pawel, Pawel Jakub Dawidek wrote:> Does anything change between you upgrade from BETA3 and RC1? For example > gmirror was compiled into the kernel before and now is loaded as module > or something similar?Nope, it was a clean BETA3 installation with the default GENERIC kernel which has afaik geom_label in kernel, but not geom_mirror (nevertheless I loaded geom_label.ko at boottime as well as geom_mirror) The same with RC1 - clean and fresh installation with the default GENERIC kernel and geom_label in kernel (default), but still loaded as module at boottime as well as geom_mirror.> Could you test this patch: > > http://people.freebsd.org/~pjd/patches/improved_taste.patchThis makes gmirror+glabel work again on RC1 One thing which I noticed. I labeled in single user mode, my root partition with tunefs - as well as all my other partitions. After this was done, I remounted my root partition (mount -rw /) and changed my fstab to use the new geom labels instead. But somehow this "killed" the new root-label of my mirror/gm0s1a partition. After I rebooted, the label was gone and I had to manually specify the root partition ufs:mirror/gm0s1a to mount. All the labels of my other mirrored partitions where there (usr, tmp, var). I then rebooted once more into single user mode (specified once more the root partition manually) and did a tunefs -L once more. Then I rebooted directly and the label is now there. Is it possible that mount -rw / (which remounts /dev/mirror/gm0s1a) could have been killed the freshly given label? -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/