geom_label, fstab without device names & swap partition?

Mark Saad nonesuch at longcount.org
Wed Jan 12 20:00:14 UTC 2011


On Wed, Jan 12, 2011 at 1:54 PM, Freddie Cash <fjwcash at gmail.com> wrote:
> 2011/1/12 Lev Serebryakov <lev at 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
> fjwcash at gmail.com
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at 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 | nonesuch at longcount.org


More information about the freebsd-stable mailing list