Hello!
I have some suggestions to FreeBSD developers about GEOM. Please tell me where I can send my suggestions?
I give it here to discuss it before sending to developers.
Geom saves it's metadata in last sector. It is dangerous.
Last sector is used for storing some information by GPT for example. So if you mirror disks (gmirror) with GPT partitioning - GPT and gmirror can rewrite each other's data. It's dangerous.
In other case - if you mirror partitions on disks - there is a danger too. gmirror metadata is stored in last sector of partition. Does filesystem know about it? What will happend if geom's metadata will be rewrited by some file data?
My suggestion is:
geom must search its metadata in last sector and previous sector (metadata from previous sector can be used if metadata in last sector is corrupted),
and there must be utility to create special file on filesystem, file must points to metadata - it must lay on sectors with metadata. This file can have some special attributes - immutable, nochg and so on.
What do you think about it?
I have some suggestions to FreeBSD developers about GEOM. Please tell me where I can send my suggestions?
I give it here to discuss it before sending to developers.
Geom saves it's metadata in last sector. It is dangerous.
Last sector is used for storing some information by GPT for example. So if you mirror disks (gmirror) with GPT partitioning - GPT and gmirror can rewrite each other's data. It's dangerous.
In other case - if you mirror partitions on disks - there is a danger too. gmirror metadata is stored in last sector of partition. Does filesystem know about it? What will happend if geom's metadata will be rewrited by some file data?
My suggestion is:
geom must search its metadata in last sector and previous sector (metadata from previous sector can be used if metadata in last sector is corrupted),
and there must be utility to create special file on filesystem, file must points to metadata - it must lay on sectors with metadata. This file can have some special attributes - immutable, nochg and so on.
What do you think about it?