Project

General

Profile

Rename zfs pool » History » Version 1

Version 1/2 - Next » - Current version
Alex Kulyavtsev, 08/22/2019 03:36 PM


Rename zfs pool

export zpool; import zpool with last argument as a new name.

zfs datasets on renamed pool stay intact.

# zpool export zssd
# zpool export zplfsc1

# zpool import zssd  zplfsxm
# zpool import zplfsc1 zplfsx1

# zfs list
NAME      USED  AVAIL  REFER  MOUNTPOINT
zplfsx1  1.10M   214T   219K  /zplfsx1
zplfsxm   110G   750G   110G  /zplfsxm

# ls -l /zplfsxm/
total 1
drwxr-xr-x 4 root root 4 Aug  5 17:44 backup
drwxr-xr-x 3 root root 3 Aug  2 18:57 test

 ls -l /zplfsx1/
total 0