2019年12月14日土曜日

arch の zfs archlinux-alez alez install

https://github.com/danboid/ALEZ/releases のisoをUSBに焼いて alezにてインストールを開始し

あれやこれやと一杯したらここまできた。



とても大事な事は https://kiljan.org/2018/09/23/a-reference-guide-to-zfs-on-arch-linux/
に書かれていて 引用すると

A word of warning
Arch Linux is a distribution that by default runs the latest stable Linux kernel. 
A major kernel update can break OpenZFS support until a newer version of OpenZFS is released.
 It is recommended to run Arch Linux using the long-term support (LTS) Linux kernel. 
LTS releases have a lower major version (still supported, stable and secure), which should always be supported by the current OpenZFS release. 
Switching from the standard kernel to the LTS kernel is outside of the scope of this document. 
This switch can be started by running something like
 sudo pacman -S linux-lts linux-lts-headers, but remember that the system's boot loader might have to be adjusted to boot the LTS kernel instead of the regular kernel.



以下インストール過程を図示


USBで起動



























と USBメモリは sda
ハードディスクは sdb
ということがわかる

したがって











 次が重大



 この画面でしばらくまたないといけない、 辛抱!
5〜10分












とインストールは終了




電源ONして zfsなarchは立ち上がったが
ネットワークには つながってない。

そこで以下のようなことをした


例:
# ip link set enp5s0 up
# ip addr add 192.168.3.100/24 broadcast 192.168.3.255 dev enp5s0
もう一度
# ip link set enp5s0 up
してから
# ip route add default via 192.168.3.1
# echo 'nameserver 8.8.8.8' /etc/resolv.conf




をして あとは`archlinuxをいつものように

インストすれば


となる



以下 alezを解析してみる



# df
Filesystem         1K-blocks    Used Available Use% Mounted on
dev                  5090316       0   5090316   0% /dev
run                  5099328    1048   5098280   1% /run
zroot/ROOT/default 151298048 2400768 148897280   2% /
tmpfs                5099328   84036   5015292   2% /dev/shm
tmpfs                5099328       0   5099328   0% /sys/fs/cgroup
tmpfs                5099328     164   5099164   1% /tmp
zroot/boot/grub    148903680    6400 148897280   1% /boot/grub
zroot/data/home    148945920   48640 148897280   1% /home
tmpfs                1019864       8   1019856   1% /run/user/1000



cat /etc/fstab 
# zroot/ROOT/default
zroot/ROOT/default  /    zfs        rw,noatime,xattr,posixacl 0 0

# zroot/data/home
zroot/data/home      /home    zfs       rw,xattr,posixacl 0 0

# zroot/boot/grub
zroot/boot/grub      /boot/grub zfs    rw,xattr,posixacl 0 0





fdisk -l /dev/sda
Device     Start       End   Sectors  Size Type
/dev/sda1   2048      6143      4096    2M BIOS boot
/dev/sda2   6144 312581774 312575631  149G Solaris root



# zfs get mountpoint
NAME                PROPERTY    VALUE       SOURCE
zroot               mountpoint  none        local
zroot/ROOT          mountpoint  none        local
zroot/ROOT/default  mountpoint  /           local
zroot/boot          mountpoint  none        inherited from zroot
zroot/boot/grub     mountpoint  legacy      local
zroot/data          mountpoint  none        local
zroot/data/home     mountpoint  legacy      local




zpool status
  pool: zroot
 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: none requested
config:

NAME                                                               STATE     READ WRITE CKSUM
zroot                                                              ONLINE       0     0     0
  /dev/disk/by-id/ata-WDC_WD1600AAJS-19M0A0_WD-WMAV3A966886-part2  ONLINE       0     0     0

errors: No known data errors