4 n00b questions ... renaming zpool, getting rid of dataset, device names, add users

Status
Not open for further replies.

danzg

Contributor
Joined
Jun 18, 2011
Messages
105
1. Now that our server is set up, I would like to rename our zpools ... I read somewhere that the way to do this is export & re-import under the new name. But will all my mount points and shares remain intact? Or will I have to set those up again?

2. I had originally set up one of our shares under a dataset ... which I now realize I don't really need; I can just share the 'root' of the volume. Can I move all the files from the dataset subfolder to the volume root, and then delete the dataset? Will my data remain intact?

3. Since adding a second SATA controller, my device names in 'zpool status' no longer correspond to the 'ada_' convention ... they look all messed up:

Code:
  pool: raid-5x3
 state: ONLINE
 scrub: scrub completed after 15h36m with 0 errors on Sun Dec  9 13:36:19 2012
config:

	NAME                                            STATE     READ WRITE CKSUM
	raid-5x3                                        ONLINE       0     0     0
	  raidz1                                        ONLINE       0     0     0
	    ada5p2                                      ONLINE       0     0     0
	    gptid/a767b8ef-1c95-11e2-af4c-f46d049aaeca  ONLINE       0     0     0
	    ada8p2                                      ONLINE       0     0     0
	    ada10p2                                     ONLINE       0     0     0
	    ada7p2                                      ONLINE       0     0     0

errors: No known data errors

  pool: raid2
 state: ONLINE
 scrub: none requested
config:

	NAME                                            STATE     READ WRITE CKSUM
	raid2                                           ONLINE       0     0     0
	  raidz1                                        ONLINE       0     0     0
	    gptid/5f3c0517-3ff2-11e2-9437-f46d049aaeca  ONLINE       0     0     0
	    gptid/5fe33556-3ff2-11e2-9437-f46d049aaeca  ONLINE       0     0     0
	    gptid/60570005-3ff2-11e2-9437-f46d049aaeca  ONLINE       0     0     0
	    gptid/60ebeaa5-3ff2-11e2-9437-f46d049aaeca  ONLINE       0     0     0
	    gptid/61925b86-3ff2-11e2-9437-f46d049aaeca  ONLINE       0     0     0

errors: No known data errors


Is there any way to fix this so I can correlate the disks to what the GUI shows me?

4. My colleagues need to be able to add ftp users, but I'd prefer they don't have access to the full GUI ... is there any way to allow them to access only the 'Users' section?

Thanks!
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
I have never tried it myself and in other threads on the internet (outside FreeBSD) they talk about both export/import and using zfs rename. Since I have never tried it I cannot say it works. Whatever you do I would recommend you have a backup of your data first because shit happens even when it "should" have been a no brainer.
 
Status
Not open for further replies.
Top