在 zfs 上找不到创建的目录

在 zfs 上找不到创建的目录

我正在使用 openSUSE 13.1。

我在 zpool 上创建了一个新目录

zfs create zpgd0/iSCSI -o compression=lz4 -o atime=off

但我没有考虑这个...所以我又做了一次但我得到了...

zfs create zpgd0/iSCSI -o compression=lz4 -o atime=off
cannot create 'zpgd0/iSCSI': dataset already exists

添加一些数据

zpool history 
History for 'zpgd0':
2014-08-11.13:38:21 zpool create -f zpgd0 raidz2 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0490461 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0603473 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0606817 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0670246 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0673599 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0715212 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0722699 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0731193 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0732862 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0806663 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0807385 scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0816943
2014-08-11.14:13:09 zpool set autoexpand=on zpgd0
2014-08-11.14:14:32 zfs create zpgd0/espacio
2014-08-19.11:47:47 zfs create zpgd0/iSCSI -o compression=lz4 -o atime=off

 zpool status -v
  pool: zpgd0
 state: ONLINE
  scan: none requested
config:

    NAME                                            STATE     READ WRITE CKSUM
    zpgd0                                           ONLINE       0     0     0
      raidz2-0                                      ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0490461  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0603473  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0606817  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0670246  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0673599  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0715212  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0722699  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0731193  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0732862  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0806663  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0807385  ONLINE       0     0     0
        scsi-SATA_WDC_WD4001FAEX-0_WD-WMC1F0816943  ONLINE       0     0     0

errors: No known data errors

我没有遇到任何错误,但是文件夹没有出现,我该怎么办?

抱歉,添加它

zfs list
NAME          USED  AVAIL  REFER  MOUNTPOINT
zpgd0         933K  35,5T  54,7K  /zpgd0
zpgd0/iSCSI  54,7K  35,5T  54,7K  /zpgd0/iSCSI

答案1

您的新文件系统位于/zpgd0/iSCSI。要访问它,您可以cd /zpgd0/iSCSI

如果当前尚未安装,您可以使用zfs mount zpgd0/iSCSI


由于文件系统的命名,我敢打赌你可能想创建一个 ZFS zvol 来作为 iSCSI 的块存储。如果是这样,你正在做的事情会让你走上错误的道路。

相关内容