Renaming Volume with data already in it

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
No reason it shouldn't still be working. What's the exact command you used, and the exact result?

Sorry, the problem is that is wasn't using root. Problem solved now.
 

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367

PDM

Dabbler
Joined
Dec 17, 2011
Messages
24
@Jacopx it worked for me on v11.3-U3.1 without any issues.

@danb35 ;)
 

Slovak

Explorer
Joined
Sep 10, 2013
Messages
62
Seriously, this thread needs a Zombie badge--it just won't die.

Yep, first result in Google AND a helpful one!

Worked as well on 11.3-U3.1.

Caveats:
1) Must be performed as root/sudo
2) System dataset (set at /ui/system/dataset ) must not be on the affected pools
3) If you are logged in as a user and your home directory is on the affected pools, use the GUI shell at /ui/shell
 

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367

socra

Dabbler
Joined
Nov 3, 2018
Messages
34
Would like to add a small section to this when you want to rename an encrypted pool. (tested with FreeNAS 11.2U8)
Assuming here you have a mirrored pool of 2 drives using da9 and da10 as name.
Or else use geom disk list to find your disks.

Make sure you have download the keys from the pool to your PC
  • Export pool from GUI (this will remove the geli key from the system), of course don't destroy the data on the pool
  • With WINSCP copy the geli key to: /data/geli/
  • geli attach -k /data/geli/<name-of-geli.key> -p /dev/da9p2
  • geli attach -k /data/geli/<name-of-geli.key> -p /dev/da10p2
  • From CLI, 'zpool import oldname newname'
  • From CLI, 'zpool export newname'
  • Import pool from GUI (you can upload the geli.key through the GUI)
 
Last edited:
Top