glabel(8) a gmirror(8) doesn't work
Hello community, Yesterday I have installed FBSD 7.2-RELEASE. I have installed on a mirror created with gmirror(8). All I have modified on this system is that I have updated the sources, rebuild the world and kernel and of course install. I have named the mirror system0 and all worked well. Now the problem is that i want to glabel the partitions on the mirror so i have followed the following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. After reading the man of gmirrror(8) and glabel(8) i have noticed that both of them store metadata on the last sector of the provider. From this results that what I want to do is not possible, at least my logic tells me that. Since gmirror wrote metadata to the last sector of the provider, glabel tries to rewrite it and the system stops the process to protect the filesystem. But then again for gmirror the providers are the two hdd i use for mirroring and for glabel the provider is the mirror itself. That's again what my logic tells me. So i think there is some kind of separation between the two modules and things should work. I have searched a bit but couldn't find any relevant info on labeling a mirror. I just want to know if this is possible and if it's not I'd like to understand why. Labeling a partition is not a must-have but it's sure nice :). thanks, v -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. replace mount -a with mount / you can't write directly to partition which is mounted mounted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
On Wed, Jun 10, 2009 at 9:58 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. replace mount -a with mount / you can't write directly to partition which is mounted mounted Thanks this time it worked. I am almost sure (99%) I've tried that already yesterday but the 1% wins. One more question can i label the / partition. I have the same error when i try to label it. v -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
Valentin Bud wrote: On Wed, Jun 10, 2009 at 9:58 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. replace mount -a with mount / you can't write directly to partition which is mounted mounted Thanks this time it worked. I am almost sure (99%) I've tried that already yesterday but the 1% wins. One more question can i label the / partition. I have the same error when i try to label it. v You should be able to. Just reboot into single user mode and *do not* enter any mount commands. The / partition is mounted read only in this case, and tunefs -L will succeed. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
Thanks this time it worked. I am almost sure (99%) I've tried that already yesterday but the 1% wins. One more question can i label the / partition. I have the same error when i try to label it. don't do mount / or boot from liveCD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
On Wed, Jun 10, 2009 at 12:25 PM, Manolis Kiagias son...@otenet.gr wrote: Valentin Bud wrote: On Wed, Jun 10, 2009 at 9:58 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. replace mount -a with mount / you can't write directly to partition which is mounted mounted Thanks this time it worked. I am almost sure (99%) I've tried that already yesterday but the 1% wins. One more question can i label the / partition. I have the same error when i try to label it. v You should be able to. Just reboot into single user mode and *do not* enter any mount commands. The / partition is mounted read only in this case, and tunefs -L will succeed. Yes it worked. Thank you very much. The odd thing is that I once tried to label it after mounting / and rw and afterward changed it to ro with the help of mount and it did not work. a great day, v -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: glabel(8) a gmirror(8) doesn't work
List members; http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html Starting with FreeBSD 7.2, the glabel(8) class supports a new label type for UFS file systems, based on the unique file system id, ufsid. Is the above clause applicable in this case ? instead of using tunefs -L can we use# glabel status ? and can use the ufsid labels of /dev/ufsid/and edit /etc/fstab entries for the partitions? From: valentin@gmail.com Date: Wed, 10 Jun 2009 09:12:47 +0300 To: freebsd-questions@freebsd.org Subject: glabel(8) a gmirror(8) doesn't work Hello community, Yesterday I have installed FBSD 7.2-RELEASE. I have installed on a mirror created with gmirror(8). All I have modified on this system is that I have updated the sources, rebuild the world and kernel and of course install. I have named the mirror system0 and all worked well. Now the problem is that i want to glabel the partitions on the mirror so i have followed the following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. After reading the man of gmirrror(8) and glabel(8) i have noticed that both of them store metadata on the last sector of the provider. From this results that what I want to do is not possible, at least my logic tells me that. Since gmirror wrote metadata to the last sector of the provider, glabel tries to rewrite it and the system stops the process to protect the filesystem. But then again for gmirror the providers are the two hdd i use for mirroring and for glabel the provider is the mirror itself. That's again what my logic tells me. So i think there is some kind of separation between the two modules and things should work. I have searched a bit but couldn't find any relevant info on labeling a mirror. I just want to know if this is possible and if it's not I'd like to understand why. Labeling a partition is not a must-have but it's sure nice :). thanks, v -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org _ cricket and news. Logon to MSN Video for the latest clips http://www.exploremyway.com___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
On Wed, Jun 10, 2009 at 3:20 PM, dhaneshk k dhanes...@hotmail.com wrote: List members; http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html Starting with FreeBSD 7.2, the glabel(8)http://www.FreeBSD.org/cgi/man.cgi?query=glabelsektion=8class supports a new label type for UFS file systems, based on the unique file system id, ufsid. Is the above clause applicable in this case ? instead of using tunefs -L can we use# glabel status ? and can use the ufsid labels of /dev/ufsid/and edit /etc/fstab entries for the partitions? Well yes you are right. The point of labeling the partitions was/is to make the names more easier to remember IMO. Remembering a string (the ufsid) is not quite my specialty. Anyway thanks for the heads up. v From: valentin@gmail.com Date: Wed, 10 Jun 2009 09:12:47 +0300 To: freebsd-questions@freebsd.org Subject: glabel(8) a gmirror(8) doesn't work Hello community, Yesterday I have installed FBSD 7.2-RELEASE. I have installed on a mirror created with gmirror(8). All I have modified on this system is that I have updated the sources, rebuild the world and kernel and of course install. I have named the mirror system0 and all worked well. Now the problem is that i want to glabel the partitions on the mirror so i have followed the following procedure: 1. reboot to single user 2. mount -a 3. tunefs -L var /dev/mirror/system0s1d This commands exits with Failed to write superblock. After reading the man of gmirrror(8) and glabel(8) i have noticed that both of them store metadata on the last sector of the provider. From this results that what I want to do is not possible, at least my logic tells me that. Since gmirror wrote metadata to the last sector of the provider, glabel tries to rewrite it and the system stops the process to protect the filesystem. But then again for gmirror the providers are the two hdd i use for mirroring and for glabel the provider is the mirror itself. That's again what my logic tells me. So i think there is some kind of separation between the two modules and things should work. I have searched a bit but couldn't find any relevant info on labeling a mirror. I just want to know if this is possible and if it's not I'd like to understand why. Labeling a partition is not a must-have but it's sure nice :). thanks, v -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Get easy photo sharing with Windows LiveT Photos. Drag n' drophttp://www.microsoft.com/india/windows/windowslive/photos.aspx -- network warrior since 2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: glabel(8) a gmirror(8) doesn't work
dhaneshk k wrote: List members; http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html Starting with FreeBSD 7.2, the glabel(8) class supports a new label type for UFS file systems, based on the unique file system id, ufsid. Is the above clause applicable in this case ? instead of using tunefs -L can we use# glabel status ? and can use the ufsid labels of /dev/ufsid/and edit /etc/fstab entries for the partitions? Yes, exactly as noted in the Handbook's example. Still ufsid labels are not exactly 'memorable' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org