#832 closed defect (fixed)

invalid volume names not filtered by UI

Reported by: kcormier Owned by:
Priority: major Milestone: 8.0.1-RELEASE
Component: Backend Version: 8.0.1-RC2
Keywords: Cc:

Description

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>".

Change History (2)

comment:1 Changed 21 months ago by kcormier

  • Component changed from GUI to Backend

comment:2 Changed 21 months ago by william

  • Resolution set to fixed
  • Status changed from new to closed

I have limited the name for UFS volumes to 9 chars and restricted them to alphanumeric (r7985).
The '_' is now allowed because UFS does not accept anything but alphanumeric for the label.

Thanks

Note: See TracTickets for help on using tickets.