geom_fox - GEOM based basic disk multipathing
options GEOM_FOX
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf5:
geom_fox_load="YES"
Without a multipathing driver the Fx kernel would probe the disks multiple times, resulting in the creation of multiple /dev entries for the same underlying physical device. A unique label written in the GEOM label area allows to detect multiple paths. Using this information it creates a unique da#.fox device.
The device is subsequently used by the Fx kernel to access the disks. Multiple physical access paths ensure that even in case of a path failure the Fx kernel can continue to access the data.
The driver will disallow write operations to the underlying devices once the fox device has been opened for writing.
"0123456789abcdef0123456789abcdef" "GEOM::FOX <--unique--id-->"
For the unique ID 16 bytes are available. The ``GEOM::FOX '' is the magic to mark a device.
The actual labelling is accomplished by
echo "GEOM::FOX someid" | dd of=/dev/da2 conv=sync
For FibreChannel devices it is suggested to use the Node World Wide Name (Node WWN) as this is guaranteed by the FibreChannel standard to be worldwide unique. The use of the Port WWN not recommended as each port of a given device has a different WWN, thereby confusing things.
The Node WWN can be obtained from a verbose boot as in for example
isp1: Target 1 (Loop 0x1) Port ID 0xe8 (role Target) Arrived Port WWN 0x21000004cfc8aca2 Node WWN 0x20000004cfc8aca2
This Node WWN would then be used like so:
echo "GEOM::FOX 20000004cfc8aca2" | dd of=/dev/da2 conv=sync
For non-FibreChannel devices you could for example use the serial number of the device. Regardless of what you use, make sure the label is unique.
Once the labelling has been performed and assuming the module is loaded the kernel will inform you that it has found a new device with a message similar to
Creating new fox (da2) fox da2.fox lock 0xfffffc0000fdba20
# geom fox list Geom name: da2.fox Providers: 1. Name: da2.fox Mediasize: 73407865344 (68G) Sectorsize: 512 Mode: r0w0e0 Consumers: 1. Name: da2 Mediasize: 73407865856 (68G) Sectorsize: 512 Mode: r0w0e0 2. Name: da6 Mediasize: 73407865856 (68G) Sectorsize: 512 Mode: r0w0e0
# geom fox status Name Status Components da2.fox N/A da2 da6
You have to be very sure to provide a unique label for each of the devices. Safety belts are not provided. For FibreChannel devices it is suggested to use the Port WWN of the device. The World Wide Name is guaranteed to be worldwide unique per the FibreChannel standard.
The name is completely obscure. Just remember that any sly fox has multiple exits from its hole.
The examples provided are too FibreChannel-centric.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |