Modificare i nomi dei VDEV in un pool ZFS

From RVM Wiki
Revision as of 10:48, 17 February 2020 by Gabriele.vivinetto (talk | contribs) (Created page with "Se si vogliono cambiare i nomi dei VDEV in un pool zfs, ad esempio usando la nomenclatura per by-path, importare il pool specificando la directory con la nomeclatura dei disch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Se si vogliono cambiare i nomi dei VDEV in un pool zfs, ad esempio usando la nomenclatura per by-path, importare il pool specificando la directory con la nomeclatura dei dischi desiderata:

  • Ad esempio:
# zpool import
   pool: BACKUP
     id: 6682755593930167940
  state: ONLINE
 status: The pool was last accessed by another system.
 action: The pool can be imported using its name or numeric identifier and
        the '-f' flag.
   see: http://zfsonlinux.org/msg/ZFS-8000-EY
 config:

        BACKUP                                        ONLINE
          mirror-0                                    ONLINE
            sdl                                       ONLINE
            ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T0205918  ONLINE
  • Se lo si importa con:
zpool import BACKUP -f -d /dev/disk/by-path/
  • Si avrà:
# zpool status
  pool: BACKUP
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
        still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(5) for details.
  scan: scrub repaired 0B in 90h22m with 0 errors on Wed Feb 12 18:46:44 2020
config:

        NAME                               STATE     READ WRITE CKSUM
        BACKUP                             ONLINE       0     0     0
          mirror-0                         ONLINE       0     0     0
            pci-0000:18:00.0-scsi-0:0:9:0  ONLINE       0     0     0
            pci-0000:18:00.0-scsi-0:0:8:0  ONLINE       0     0     0

errors: No known data errors

Riferimeni

Change ZFS device names | Proxmox Support Forum