# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 350M 0 part
├─sda2 8:2 0 146.1G 0 part
├─sda3 8:3 0 172.8G 0 part
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 512M 0 part /boot
└─sda6 8:6 0 146G 0 part
├─centos-swap 253:0 0 7.8G 0 lvm [SWAP]
└─centos-root 253:1 0 138.2G 0 lvm /
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 2G 0 part
└─sdb2 8:18 0 1.8T 0 part
# mount /dev/sdb2 /mnt/freenasdata/
mount: unknown filesystem type 'zfs_member'
#yum install http://download.zfsonlinux.org/epel/zfs-release.el7_4.noarch.rpm
# yum install zfs
After reboot you will get zfs in listmodes
# lsmod | grep zfs
zfs 3559892 3
zunicode 331170 1 zfs
zavl 15236 1 zfs
icp 270187 1 zfs
zcommon 73440 1 zfs
znvpair 89131 2 zfs,zcommon
spl 102412 4 icp,zfs,zcommon,znvpair
# zfs list
no datasets available
# zpool create scopenas /dev/sdb1
[root@boobalan-aadhardigital ~]# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
scopenas 1.98G 432K 1.98G - 0% 0% 1.00x ONLINE -
# zpool status
pool: scopenas
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
scopenas ONLINE 0 0 0
sdb1 ONLINE 0 0 0
errors: No known data errors
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 350M 0 part
├─sda2 8:2 0 146.1G 0 part
├─sda3 8:3 0 172.8G 0 part
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 512M 0 part /boot
└─sda6 8:6 0 146G 0 part
├─centos-swap 253:0 0 7.8G 0 lvm [SWAP]
└─centos-root 253:1 0 138.2G 0 lvm /
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 2G 0 part
└─sdb2 8:18 0 1.8T 0 part
//here sdb was an zfs file format
mount: unknown filesystem type 'zfs_member'
# yum install zfs
After reboot you will get zfs in listmodes
# lsmod | grep zfs
zfs 3559892 3
zunicode 331170 1 zfs
zavl 15236 1 zfs
icp 270187 1 zfs
zcommon 73440 1 zfs
znvpair 89131 2 zfs,zcommon
spl 102412 4 icp,zfs,zcommon,znvpair
# zpool import
pool: SCOPENAS
id: 6502146575892970952
state: UNAVAIL
status: The pool was last accessed by another system.
action: The pool cannot be imported due to damaged devices or data.
see: http://zfsonlinux.org/msg/ZFS-8000-EY
config:
SCOPENAS UNAVAIL insufficient replicas
raidz1-0 UNAVAIL insufficient replicas
4cc412bf-321a-11e6-8870-408d5cb1877c UNAVAIL
sdb ONLINE
4e59003b-321a-11e6-8870-408d5cb1877c UNAVAIL
4f2c8b0f-321a-11e6-8870-408d5cb1877c UNAVAIL
# zpool import SCOPENAS
cannot import 'SCOPENAS': pool was previously in use from another system.
Last accessed by (hostid=98e6228c) at Thu Jan 1 05:30:00 1970
The pool can be imported, use 'zpool import -f' to import the pool.
# zpool import -f SCOPENAS
cannot import 'SCOPENAS': no such pool or dataset
Destroy and re-create the pool from
a backup source.
no datasets available
[root@boobalan-aadhardigital ~]# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
scopenas 1.98G 432K 1.98G - 0% 0% 1.00x ONLINE -
pool: scopenas
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
scopenas ONLINE 0 0 0
sdb1 ONLINE 0 0 0
errors: No known data errors
0 Comments