Linux ZFS notes
Building Oracle on ZFS. Notes to myself.
Using this site:
https://wiki.archlinux.org/index.php/ZFS
I had to run this command.
[root@localhost /]# ls -lah /dev/disk/by-uuid/
total 0
drwxr-xr-x. 2 root root 120 May 1 12:12 .
drwxr-xr-x. 4 root root 80 May 1 12:12 ..
lrwxrwxrwx. 1 root root 10 May 1 12:12 103f2159-ec00-4726-84f2-628ec540095f -> ../../sda1
lrwxrwxrwx. 1 root root 10 May 1 12:12 318cbbf1-fed3-44c3-b437-62f435958066 -> ../../sdb1
lrwxrwxrwx. 1 root root 10 May 1 12:12 3bc3f01c-4e52-4c7d-aa2d-d399c67db8f2 -> ../../sda2
lrwxrwxrwx. 1 root root 10 May 1 12:12 e652f8c6-e07f-418f-81ad-c88e774ec5c0 -> ../../sda3
[root@localhost /]#
I had to destroy the first pool.
[root@localhost /]# zpool create -f -m /data bigdata sdb
[root@localhost /]# zpool status bigdata
pool: bigdata
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
bigdata ONLINE 0 0 0
sdb ONLINE 0 0 0
errors: No known data errors
[root@localhost /]#
Starting over. Created three drives.
[root@localhost ~]# parted –list
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 316MB 315MB primary ext4 boot
2 316MB 51.6GB 51.3GB primary ext4
3 51.6GB 53.7GB 2114MB primary linux-swap(v1)Error: /dev/sdb: unrecognised disk label
Error: /dev/sdc: unrecognised disk label
Error: /dev/sdd: unrecognised disk label
[root@localhost ~]# ls -lah /dev/disk/by-id/
ls: cannot access /dev/disk/by-id/: No such file or directory
[root@localhost ~]# ls -lah /dev/by-id/
ls: cannot access /dev/by-id/: No such file or directory
[root@localhost ~]# ls -lah /dev/disk/by-uuid/
total 0
drwxr-xr-x. 2 root root 100 May 2 05:56 .
drwxr-xr-x. 4 root root 80 May 2 05:56 ..
lrwxrwxrwx. 1 root root 10 May 2 05:56 103f2159-ec00-4726-84f2-628ec540095f -> ../../sda1
lrwxrwxrwx. 1 root root 10 May 2 05:56 3bc3f01c-4e52-4c7d-aa2d-d399c67db8f2 -> ../../sda2
lrwxrwxrwx. 1 root root 10 May 2 05:56 e652f8c6-e07f-418f-81ad-c88e774ec5c0 -> ../../sda3
zpool create -f -m /data bigdata raidz sdb sdc sdd
[root@localhost ~]# zpool status
pool: bigdata
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
bigdata ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
sdb ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
errors: No known data errors