Re: geom_label, fstab without device names swap partition?
On 13.01.2011 02:11, Mark Saad wrote: Use glabel(8) to label the device: # glabel label swap ada0s1b On a side note there is not a simple way to glabel mounted filesystem True, but for a swap partition, it's easy to disable swap, label the partition, and re-enable swap. :) -- Freddie Cash fjwc...@gmail.com Well the thing is I like use glabel in place of a fs label as it makes my devices all names something similar /dev/label/thingie rather then have /dev/ufs/rootfs and /dev/label/swap , I'll have /dev/label/rootfs /dev/label/swap. Also I dont think you can easily change a live label either . tunefs -L changes UFS label (/dev/ufs/label) and does not use extra 512 bytes of space. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: geom_label, fstab without device names swap partition?
Well the thing is I like use glabel in place of a fs label as it makes my devices all names something similar /dev/label/thingie rather then have /dev/ufs/rootfs and /dev/label/swap , I'll have /dev/label/rootfs /dev/label/swap. Also I dont think you can easily change a live label either . tunefs -L changes UFS label (/dev/ufs/label) and does not use extra 512 bytes of space. If you read the original post, swap is mentioned. UFS labels doesnt really work with swap partitions. Therefore glabel is the more obvious choice for simple names to partitions, and honestly 512 bytes on harddrive... I would recommend using gpart to create partitions and labels, and then put them in a gmirror for future convenience. #gmirror status NameStatus Components mirror/root COMPLETE gpt/root0 mirror/var COMPLETE gpt/var0 mirror/tmp COMPLETE gpt/tmp0 mirror/usr COMPLETE gpt/usr0 mirror/swap COMPLETE gpt/swap0 This way its very easy to add an extra harddrive and add that to the mirror if needed later on. /Nicolai ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
geom_label, fstab without device names swap partition?
Hello, Stable. Now, with newfs -L name, geom_label and /dev/ufs/* it is possible to not use device names for FSes in /etc/fstab at all. But what to do with swap partitions? How to say, that I want swap on /dev/ada0s1b or /dev/ad0s1b whatever name it has now? -- // Black Lion AKA Lev Serebryakov l...@serebryakov.spb.ru ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: geom_label, fstab without device names swap partition?
On Wed, Jan 12, 2011 at 09:02:01PM +0300, Lev Serebryakov wrote: Hello, Stable. Now, with newfs -L name, geom_label and /dev/ufs/* it is possible to not use device names for FSes in /etc/fstab at all. But what to do with swap partitions? How to say, that I want swap on /dev/ada0s1b or /dev/ad0s1b whatever name it has now? Have you tried using glabel(8)? It allows you to assign a name to a slice. The slice should not be in use at the time, and if it has a filesystem on it you may have problems as glabel(8) uses the last block for a data store. Regards, Gary ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: geom_label, fstab without device names swap partition?
On 12.01.2011 21:02, Lev Serebryakov wrote: Hello, Stable. Now, with newfs -L name, geom_label and /dev/ufs/* it is possible to not use device names for FSes in /etc/fstab at all. But what to do with swap partitions? How to say, that I want swap on /dev/ada0s1b or /dev/ad0s1b whatever name it has now? You can label swap partitions with glabel(8) and use this label in fstab. -- WBR, Andrey V. Elsukov signature.asc Description: OpenPGP digital signature
Re: geom_label, fstab without device names swap partition?
2011/1/12 Lev Serebryakov l...@serebryakov.spb.ru: Now, with newfs -L name, geom_label and /dev/ufs/* it is possible to not use device names for FSes in /etc/fstab at all. But what to do with swap partitions? How to say, that I want swap on /dev/ada0s1b or /dev/ad0s1b whatever name it has now? Use glabel(8) to label the device: # glabel label swap ada0s1b Then point to the label in /etc/fstab: /dev/label/swapswap sw ... -- Freddie Cash fjwc...@gmail.com ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: geom_label, fstab without device names swap partition?
On Wed, Jan 12, 2011 at 1:54 PM, Freddie Cash fjwc...@gmail.com wrote: 2011/1/12 Lev Serebryakov l...@serebryakov.spb.ru: Now, with newfs -L name, geom_label and /dev/ufs/* it is possible to not use device names for FSes in /etc/fstab at all. But what to do with swap partitions? How to say, that I want swap on /dev/ada0s1b or /dev/ad0s1b whatever name it has now? Use glabel(8) to label the device: # glabel label swap ada0s1b On a side note there is not a simple way to glabel mounted filesystem Then point to the label in /etc/fstab: /dev/label/swap swap sw ... -- Freddie Cash fjwc...@gmail.com ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org glabel is also great for doing silly things like things like this glabel label leftdrive0 /dev/ad4 glabel label rightdrive0 /dev/ad5 gmirror label -v -b load raid1 leftdrive0 rightdrive0 this way when you get a gmirror status you can easily tell which drive is doing what, red rebuilding etc . -- mark saad | nones...@longcount.org ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: geom_label, fstab without device names swap partition?
On Wed, Jan 12, 2011 at 12:00 PM, Mark Saad nones...@longcount.org wrote: On Wed, Jan 12, 2011 at 1:54 PM, Freddie Cash fjwc...@gmail.com wrote: 2011/1/12 Lev Serebryakov l...@serebryakov.spb.ru: Now, with newfs -L name, geom_label and /dev/ufs/* it is possible to not use device names for FSes in /etc/fstab at all. But what to do with swap partitions? How to say, that I want swap on /dev/ada0s1b or /dev/ad0s1b whatever name it has now? Use glabel(8) to label the device: # glabel label swap ada0s1b On a side note there is not a simple way to glabel mounted filesystem True, but for a swap partition, it's easy to disable swap, label the partition, and re-enable swap. :) -- Freddie Cash fjwc...@gmail.com ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: geom_label, fstab without device names swap partition?
On Wed, Jan 12, 2011 at 3:01 PM, Freddie Cash fjwc...@gmail.com wrote: On Wed, Jan 12, 2011 at 12:00 PM, Mark Saad nones...@longcount.org wrote: On Wed, Jan 12, 2011 at 1:54 PM, Freddie Cash fjwc...@gmail.com wrote: 2011/1/12 Lev Serebryakov l...@serebryakov.spb.ru: Now, with newfs -L name, geom_label and /dev/ufs/* it is possible to not use device names for FSes in /etc/fstab at all. But what to do with swap partitions? How to say, that I want swap on /dev/ada0s1b or /dev/ad0s1b whatever name it has now? Use glabel(8) to label the device: # glabel label swap ada0s1b On a side note there is not a simple way to glabel mounted filesystem True, but for a swap partition, it's easy to disable swap, label the partition, and re-enable swap. :) -- Freddie Cash fjwc...@gmail.com Well the thing is I like use glabel in place of a fs label as it makes my devices all names something similar /dev/label/thingie rather then have /dev/ufs/rootfs and /dev/label/swap , I'll have /dev/label/rootfs /dev/label/swap. Also I dont think you can easily change a live label either . -- mark saad | nones...@longcount.org ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org