invalid volume names not filtered by UI
|Reported by:||kcormier||Owned by:|
When creating a new volume, any volume name over 9 characters causes problems. Freenas cannot correctly gather information, update, or remove the volume. From what I can find, gmirror is capping the name at 15 characters. The mirror name is the volume name with "mirror" appended to the end. Thus a 10 character volume name with "mirror" appended becomes 16 characters, which gets truncated to 15 characters somewhere. To demonstrate, create a volume named "mirror123456". The UI should fail. Open up a local console as root and run "gmirror list". You will see "mirror123456mirro".
Similar issues arises if you have an '_' in your volume name, but I think because of a different root cause. Possibly this should be split into its own ticket after investigation? Not sure if there are any other special characters that trigger this. Also here gmirror seems to support the '_' fine. Not sure what is causing the problem.
In either case, you cannot remove the mirror from the UI. To recover, open a console as root and run "gmirror list" to get the "Geom name" of the mirror to remove. Then run "gmirror stop <Geom name>".