ubuntu@ganso-bastion:~$ ssh 10.5.0.53 Warning: Permanently added '10.5.0.53' (ECDSA) to the list of known hosts. Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-37-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Jun 16 15:49:53 UTC 2020 System load: 0.0 Processes: 112 Usage of /: 3.1% of 38.60GB Users logged in: 0 Memory usage: 4% IPv4 address for ens3: 10.5.0.53 Swap usage: 0% 0 updates can be installed immediately. 0 of these updates are security updates. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo ". See "man sudo_root" for details. ubuntu@focal2:~$ sudo apt-get install open-iscsi Reading package lists... Done Building dependency tree Reading state information... Done open-iscsi is already the newest version (2.0.874-7.1ubuntu6.1). open-iscsi set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ubuntu@focal2:~$ iscsiadm -m discovery -t st -p 10.5.0.41 iscsiadm: Maybe you are not root? iscsiadm: Could not lock discovery DB: /run/lock/iscsi/lock.write: Permission denied iscsiadm: Maybe you are not root? iscsiadm: Could not lock discovery DB: /run/lock/iscsi/lock.write: Permission denied iscsiadm: Could not add new discovery record. ubuntu@focal2:~$ sudo iscsiadm -m discovery -t st -p 10.5.0.41 10.5.0.41:3260,1 iqn.2018-02.ganso.com:lun1 ubuntu@focal2:~$ sudo -s root@focal2:/home/ubuntu# vi /etc/iscsi/nodes/iqn.2018-02.ganso.com\:lun1/10.5.0.41\,3260\,1/default root@focal2:/home/ubuntu# systemctl restart open-iscsi root@focal2:/home/ubuntu# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 30.3M 1 loop /snap/snapd/7777 loop1 7:1 0 55M 1 loop /snap/core18/1754 loop2 7:2 0 69.3M 1 loop /snap/lxd/15457 sda 8:0 0 1020M 0 disk vda 252:0 0 40G 0 disk ├─vda1 252:1 0 39.9G 0 part / ├─vda14 252:14 0 4M 0 part └─vda15 252:15 0 106M 0 part /boot/efi root@focal2:/home/ubuntu# sudo reboot Connection to 10.5.0.53 closed by remote host. Connection to 10.5.0.53 closed. ubuntu@ganso-bastion:~$ ssh 10.5.0.53 Warning: Permanently added '10.5.0.53' (ECDSA) to the list of known hosts. Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-37-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Jun 16 15:55:52 UTC 2020 System load: 0.02 Processes: 124 Usage of /: 3.1% of 38.60GB Users logged in: 0 Memory usage: 4% IPv4 address for ens3: 10.5.0.53 Swap usage: 0% 0 updates can be installed immediately. 0 of these updates are security updates. Last login: Tue Jun 16 15:49:54 2020 from 10.5.0.13 ubuntu@focal2:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 55M 1 loop /snap/core18/1754 loop1 7:1 0 69.3M 1 loop /snap/lxd/15457 loop2 7:2 0 30.3M 1 loop /snap/snapd/7777 sda 8:0 0 1020M 0 disk vda 252:0 0 40G 0 disk ├─vda1 252:1 0 39.9G 0 part / ├─vda14 252:14 0 4M 0 part └─vda15 252:15 0 106M 0 part /boot/efi ubuntu@focal2:~$ dmesg [ 0.000000] Linux version 5.4.0-37-generic (buildd@lcy01-amd64-001) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 (Ubuntu 5.4.0-37.41-generic 5.4.41) [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-37-generic root=PARTUUID=807c9158-e442-4cfd-aa48-46c3b7d5c64b ro console=tty1 console=ttyS0 [ 11.536651] Loading iSCSI transport class v2.0-870. [ 11.608242] iscsi: registered transport (tcp) [ 12.616110] scsi host2: iSCSI Initiator over TCP/IP [ 12.633202] scsi 2:0:0:0: RAID IET Controller 0001 PQ: 0 ANSI: 5 [ 12.634638] scsi 2:0:0:0: Attached scsi generic sg0 type 12 [ 12.641374] scsi 2:0:0:1: Direct-Access IET VIRTUAL-DISK 0001 PQ: 0 ANSI: 5 [ 12.643057] sd 2:0:0:1: Attached scsi generic sg1 type 0 [ 12.643298] sd 2:0:0:1: Power-on or device reset occurred [ 12.661381] sd 2:0:0:1: [sda] 2088960 512-byte logical blocks: (1.07 GB/1020 MiB) [ 12.670605] sd 2:0:0:1: [sda] Write Protect is off [ 12.670608] sd 2:0:0:1: [sda] Mode Sense: 69 00 10 08 [ 12.672140] sd 2:0:0:1: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 12.733272] sd 2:0:0:1: [sda] Attached SCSI disk [ 79.709424] random: crng init done [ 79.709432] random: 7 urandom warning(s) missed due to ratelimiting ubuntu@focal2:~$ sudo mkdir /data ubuntu@focal2:~$ sudo apt install nfs-kernel-server Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: keyutils libnfsidmap2 libtirpc-common libtirpc3 nfs-common rpcbind Suggested packages: watchdog The following NEW packages will be installed: keyutils libnfsidmap2 libtirpc-common libtirpc3 nfs-common nfs-kernel-server rpcbind 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. Need to get 500 kB of archives. After this operation, 1887 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 libtirpc-common all 1.2.5-1 [7632 B] Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 libtirpc3 amd64 1.2.5-1 [77.2 kB] Get:3 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 rpcbind amd64 1.2.5-8 [42.8 kB] Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 keyutils amd64 1.6-6ubuntu1 [45.0 kB] Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 libnfsidmap2 amd64 0.25-5.1ubuntu1 [27.9 kB] Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 nfs-common amd64 1:1.3.4-2.5ubuntu3 [205 kB] Get:7 http://nova.clouds.archive.ubuntu.com/ubuntu focal/main amd64 nfs-kernel-server amd64 1:1.3.4-2.5ubuntu3 [94.8 kB] Fetched 500 kB in 1s (553 kB/s) Selecting previously unselected package libtirpc-common. (Reading database ... 63093 files and directories currently installed.) Preparing to unpack .../0-libtirpc-common_1.2.5-1_all.deb ... Unpacking libtirpc-common (1.2.5-1) ... Selecting previously unselected package libtirpc3:amd64. Preparing to unpack .../1-libtirpc3_1.2.5-1_amd64.deb ... Unpacking libtirpc3:amd64 (1.2.5-1) ... Selecting previously unselected package rpcbind. Preparing to unpack .../2-rpcbind_1.2.5-8_amd64.deb ... Unpacking rpcbind (1.2.5-8) ... Selecting previously unselected package keyutils. Preparing to unpack .../3-keyutils_1.6-6ubuntu1_amd64.deb ... Unpacking keyutils (1.6-6ubuntu1) ... Selecting previously unselected package libnfsidmap2:amd64. Preparing to unpack .../4-libnfsidmap2_0.25-5.1ubuntu1_amd64.deb ... Unpacking libnfsidmap2:amd64 (0.25-5.1ubuntu1) ... Selecting previously unselected package nfs-common. Preparing to unpack .../5-nfs-common_1%3a1.3.4-2.5ubuntu3_amd64.deb ... Unpacking nfs-common (1:1.3.4-2.5ubuntu3) ... Selecting previously unselected package nfs-kernel-server. Preparing to unpack .../6-nfs-kernel-server_1%3a1.3.4-2.5ubuntu3_amd64.deb ... Unpacking nfs-kernel-server (1:1.3.4-2.5ubuntu3) ... Setting up libtirpc-common (1.2.5-1) ... Setting up keyutils (1.6-6ubuntu1) ... Setting up libnfsidmap2:amd64 (0.25-5.1ubuntu1) ... Setting up libtirpc3:amd64 (1.2.5-1) ... Setting up rpcbind (1.2.5-8) ... Created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service → /lib/systemd/system/rpcbind.service. Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /lib/systemd/system/rpcbind.socket. Setting up nfs-common (1:1.3.4-2.5ubuntu3) ... Creating config file /etc/idmapd.conf with new version Adding system user `statd' (UID 113) ... Adding new user `statd' (UID 113) with group `nogroup' ... Not creating home directory `/var/lib/nfs'. Created symlink /etc/systemd/system/multi-user.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target. Created symlink /etc/systemd/system/remote-fs.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target. nfs-utils.service is a disabled or a static unit, not starting it. Setting up nfs-kernel-server (1:1.3.4-2.5ubuntu3) ... Created symlink /etc/systemd/system/multi-user.target.wants/nfs-server.service → /lib/systemd/system/nfs-server.service. Job for nfs-server.service canceled. Creating config file /etc/exports with new version Creating config file /etc/default/nfs-kernel-server with new version Processing triggers for systemd (245.4-4ubuntu3.1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for libc-bin (2.31-0ubuntu9) ... ubuntu@focal2:~$ sudo mkfs.xfs /dev/sda meta-data=/dev/sda isize=512 agcount=4, agsize=65280 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 data = bsize=4096 blocks=261120, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=1566, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 ubuntu@focal2:~$ sudo mount /dev/sda /data ubuntu@focal2:~$ cd /data ubuntu@focal2:/data$ df -h Filesystem Size Used Avail Use% Mounted on udev 2.0G 0 2.0G 0% /dev tmpfs 394M 960K 393M 1% /run /dev/vda1 39G 1.3G 38G 4% / tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/vda15 105M 3.9M 101M 4% /boot/efi /dev/loop0 55M 55M 0 100% /snap/core18/1754 /dev/loop1 70M 70M 0 100% /snap/lxd/15457 /dev/loop2 31M 31M 0 100% /snap/snapd/7777 tmpfs 394M 0 394M 0% /run/user/1000 /dev/sda 1014M 40M 975M 4% /data ubuntu@focal2:/data$ sudo -s root@focal2:/data# mkdir dir1 root@focal2:/data# mkdir dir2 root@focal2:/data# ls dir1 dir2 root@focal2:/data# chown nobody:nogroup dir1 root@focal2:/data# chown nobody:nogroup dir2 root@focal2:/data# chmod 777 dir1 root@focal2:/data# chmod 777 dir2 root@focal2:/data# ll total 4 drwxr-xr-x 4 root root 30 Jun 16 15:57 ./ drwxr-xr-x 20 root root 4096 Jun 16 15:56 ../ drwxrwxrwx 2 nobody nogroup 6 Jun 16 15:57 dir1/ drwxrwxrwx 2 nobody nogroup 6 Jun 16 15:57 dir2/ root@focal2:/data# sudo reboot root@focal2:/data# Connection to 10.5.0.53 closed by remote host. Connection to 10.5.0.53 closed. ubuntu@ganso-bastion:~$ ssh 10.5.0.53 Warning: Permanently added '10.5.0.53' (ECDSA) to the list of known hosts. Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-37-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Jun 16 16:00:05 UTC 2020 System load: 0.11 Processes: 145 Usage of /: 3.1% of 38.60GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 10.5.0.53 Swap usage: 0% 0 updates can be installed immediately. 0 of these updates are security updates. Last login: Tue Jun 16 15:55:53 2020 from 10.5.0.13 ubuntu@focal2:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 55M 1 loop /snap/core18/1754 loop1 7:1 0 69.3M 1 loop /snap/lxd/15457 loop2 7:2 0 30.3M 1 loop /snap/snapd/7777 sda 8:0 0 1020M 0 disk vda 252:0 0 40G 0 disk ├─vda1 252:1 0 39.9G 0 part / ├─vda14 252:14 0 4M 0 part └─vda15 252:15 0 106M 0 part /boot/efi ubuntu@focal2:~$ sudo mount /dev/sda /data ubuntu@focal2:~$ sudo blkid /dev/vda1: LABEL="cloudimg-rootfs" UUID="bfd5b501-4b43-4ee0-9cf2-37ac369e4fe0" TYPE="ext4" PARTUUID="807c9158-e442-4cfd-aa48-46c3b7d5c64b" /dev/vda15: LABEL_FATBOOT="UEFI" LABEL="UEFI" UUID="1E4B-0542" TYPE="vfat" PARTUUID="0e51c68e-0a1a-4c7a-b1ca-6f843f13883c" /dev/loop0: TYPE="squashfs" /dev/loop1: TYPE="squashfs" /dev/loop2: TYPE="squashfs" /dev/vda14: PARTUUID="ca478454-388d-44f5-9883-1739dd525e4a" /dev/sda: UUID="198f308d-2486-462e-bbae-d1bf399cb6b5" TYPE="xfs" ubuntu@focal2:~$ sudo vi /etc/fstab ubuntu@focal2:~$ sudo cat /etc/fstab LABEL=cloudimg-rootfs / ext4 defaults 0 0 LABEL=UEFI /boot/efi vfat defaults 0 0 UUID="198f308d-2486-462e-bbae-d1bf399cb6b5" /data xfs defaults,auto,_netdev 0 0 ubuntu@focal2:~$ cd /data ubuntu@focal2:/data$ ls dir1 dir2 ubuntu@focal2:/data$ sudo reboot Connection to 10.5.0.53 closed by remote host. Connection to 10.5.0.53 closed. ubuntu@ganso-bastion:~$ ssh 10.5.0.53 Warning: Permanently added '10.5.0.53' (ECDSA) to the list of known hosts. Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-37-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Jun 16 16:12:42 UTC 2020 System load: 0.96 Processes: 156 Usage of /: 3.1% of 38.60GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 10.5.0.53 Swap usage: 0% 0 updates can be installed immediately. 0 of these updates are security updates. Last login: Tue Jun 16 16:02:37 2020 from 10.5.0.13 ubuntu@focal2:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 55M 1 loop /snap/core18/1754 loop1 7:1 0 69.3M 1 loop /snap/lxd/15457 loop2 7:2 0 30.3M 1 loop /snap/snapd/7777 sda 8:0 0 1020M 0 disk /data vda 252:0 0 40G 0 disk ├─vda1 252:1 0 39.9G 0 part / ├─vda14 252:14 0 4M 0 part └─vda15 252:15 0 106M 0 part /boot/efi ubuntu@focal2:~$ cd /data ubuntu@focal2:/data$ ls dir1 dir2 ubuntu@focal2:/data$ sudo vi /etc/exports ubuntu@focal2:/data$ sudo cat /etc/exports # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # /data/dir1 *(rw,async,root_squash,subtree_check) /data/dir2 ubuntu@focal2:/data$ systemctl -a | grep nfs proc-fs-nfsd.mount loaded active mounted NFSD configuration filesystem nfs-blkmap.service loaded active running pNFS block layout mapping daemon nfs-config.service loaded inactive dead Preprocess NFS configuration nfs-idmapd.service loaded active running NFSv4 ID-name mapping service nfs-mountd.service loaded active running NFS Mount Daemon nfs-server.service loaded active exited NFS server and services nfs-utils.service loaded inactive dead NFS server and client services nfs-client.target loaded active active NFS client services ubuntu@focal2:/data$ sudo reboot Connection to 10.5.0.53 closed by remote host. Connection to 10.5.0.53 closed. ubuntu@ganso-bastion:~$ ssh 10.5.0.53 Warning: Permanently added '10.5.0.53' (ECDSA) to the list of known hosts. Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-37-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Jun 16 16:14:30 UTC 2020 System load: 0.45 Processes: 137 Usage of /: 3.1% of 38.60GB Users logged in: 0 Memory usage: 4% IPv4 address for ens3: 10.5.0.53 Swap usage: 0% 0 updates can be installed immediately. 0 of these updates are security updates. Last login: Tue Jun 16 16:12:44 2020 from 10.5.0.13 ubuntu@focal2:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 55M 1 loop /snap/core18/1754 loop1 7:1 0 69.3M 1 loop /snap/lxd/15457 loop2 7:2 0 30.3M 1 loop /snap/snapd/7777 sda 8:0 0 1020M 0 disk /data vda 252:0 0 40G 0 disk ├─vda1 252:1 0 39.9G 0 part / ├─vda14 252:14 0 4M 0 part └─vda15 252:15 0 106M 0 part /boot/efi ubuntu@focal2:~$ sudo showmount -e clnt_create: RPC: Program not registered ubuntu@focal2:~$ systemctl -a | grep nfs proc-fs-nfsd.mount loaded active mounted NFSD configuration filesystem nfs-blkmap.service loaded active running pNFS block layout mapping daemon nfs-config.service loaded inactive dead Preprocess NFS configuration nfs-idmapd.service loaded inactive dead NFSv4 ID-name mapping service nfs-mountd.service loaded inactive dead NFS Mount Daemon ● nfs-server.service loaded failed failed NFS server and services nfs-utils.service loaded inactive dead NFS server and client services nfs-client.target loaded active active NFS client services ubuntu@focal2:~$ vi /etc/apt/ apt.conf.d/ auth.conf.d/ preferences.d/ sources.list sources.list.d/ trusted.gpg.d/ ubuntu@focal2:~$ sudo vi /etc/apt/sources.list ubuntu@focal2:~$ sudo cat /etc/apt/sources.list ## Note, this file is written by cloud-init on first boot of an instance ## modifications made here will not survive a re-bundle. ## if you wish to make changes you can: ## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg ## or do the same in user-data ## b.) add sources in /etc/apt/sources.list.d ## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://nova.clouds.archive.ubuntu.com/ubuntu/ focal main restricted # deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ focal main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-updates main restricted # deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-updates main restricted deb http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-proposed main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://nova.clouds.archive.ubuntu.com/ubuntu/ focal universe # deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ focal universe deb http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-updates universe # deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://nova.clouds.archive.ubuntu.com/ubuntu/ focal multiverse # deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ focal multiverse deb http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-updates multiverse # deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse # deb-src http://nova.clouds.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu focal partner # deb-src http://archive.canonical.com/ubuntu focal partner deb http://security.ubuntu.com/ubuntu focal-security main restricted # deb-src http://security.ubuntu.com/ubuntu focal-security main restricted deb http://security.ubuntu.com/ubuntu focal-security universe # deb-src http://security.ubuntu.com/ubuntu focal-security universe deb http://security.ubuntu.com/ubuntu focal-security multiverse # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse ubuntu@focal2:~$ sudo apt update Hit:1 http://nova.clouds.archive.ubuntu.com/ubuntu focal InRelease Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB] Get:3 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed InRelease [265 kB] Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB] Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB] Get:7 http://nova.clouds.archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB] Get:8 http://nova.clouds.archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB] Get:9 http://nova.clouds.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB] Get:10 http://nova.clouds.archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB] Get:11 http://nova.clouds.archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9136 B] Get:12 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [192 kB] Get:13 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [75.1 kB] Get:14 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [5496 B] Get:15 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [11.0 kB] Get:16 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [3000 B] Get:17 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [108 kB] Get:18 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [50.6 kB] Get:19 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [3892 B] Get:20 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [1172 B] Get:21 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [540 B] Get:22 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [116 B] Get:23 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [60.5 kB] Get:24 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed/main Translation-en [26.5 kB] Get:25 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f Metadata [1752 B] Get:26 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed/restricted amd64 Packages [10.7 kB] Get:27 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed/restricted Translation-en [2952 B] Get:28 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed/restricted amd64 c-n-f Metadata [116 B] Get:29 http://nova.clouds.archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [112 B] Get:30 http://nova.clouds.archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B] Get:31 http://nova.clouds.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [2784 B] Get:32 http://nova.clouds.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [1272 B] Get:33 http://nova.clouds.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [192 B] Get:34 http://nova.clouds.archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B] Get:35 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [105 kB] Get:36 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [39.1 kB] Get:37 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [2664 B] Get:38 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [11.0 kB] Get:39 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [3000 B] Get:40 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [34.9 kB] Get:41 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [17.3 kB] Get:42 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [1444 B] Get:43 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [1172 B] Get:44 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [540 B] Get:45 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [116 B] Fetched 15.6 MB in 3s (4941 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 37 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@focal2:~$ sudo apt list --upgradable Listing... Done accountsservice/focal-proposed 0.6.55-0ubuntu12~20.04.1 amd64 [upgradable from: 0.6.55-0ubuntu11] alsa-ucm-conf/focal-proposed 1.2.2-1ubuntu0.1 all [upgradable from: 1.2.2-1] apport/focal-proposed 2.20.11-0ubuntu27.3 all [upgradable from: 2.20.11-0ubuntu27.2] apt-utils/focal-proposed 2.0.3 amd64 [upgradable from: 2.0.2ubuntu0.1] apt/focal-proposed 2.0.3 amd64 [upgradable from: 2.0.2ubuntu0.1] busybox-initramfs/focal-updates,focal-proposed 1:1.30.1-4ubuntu6.1 amd64 [upgradable from: 1:1.30.1-4ubuntu6] busybox-static/focal-updates,focal-proposed 1:1.30.1-4ubuntu6.1 amd64 [upgradable from: 1:1.30.1-4ubuntu6] cloud-init/focal-proposed 20.2-45-g5f7825e2-0ubuntu1~20.04.1 all [upgradable from: 20.1-10-g71af48df-0ubuntu5] fwupd-signed/focal-updates,focal-proposed,focal-security 1.27.1ubuntu1+1.3.9-4ubuntu0.1 amd64 [upgradable from: 1.27+1.3.9-4] fwupd/focal-updates,focal-security 1.3.9-4ubuntu0.1 amd64 [upgradable from: 1.3.9-4] gir1.2-glib-2.0/focal-proposed 1.64.1-1~ubuntu20.04.1 amd64 [upgradable from: 1.64.0-2] grub-efi-amd64-signed/focal-proposed 1.142.1+2.04-1ubuntu26 amd64 [upgradable from: 1.142+2.04-1ubuntu26] initramfs-tools-bin/focal-updates,focal-proposed 0.136ubuntu6.1 amd64 [upgradable from: 0.136ubuntu6] initramfs-tools-core/focal-updates,focal-proposed 0.136ubuntu6.1 all [upgradable from: 0.136ubuntu6] initramfs-tools/focal-updates,focal-proposed 0.136ubuntu6.1 all [upgradable from: 0.136ubuntu6] libaccountsservice0/focal-proposed 0.6.55-0ubuntu12~20.04.1 amd64 [upgradable from: 0.6.55-0ubuntu11] libapt-pkg6.0/focal-proposed 2.0.3 amd64 [upgradable from: 2.0.2ubuntu0.1] libfwupd2/focal-updates,focal-security 1.3.9-4ubuntu0.1 amd64 [upgradable from: 1.3.9-4] libfwupdplugin1/focal-updates,focal-security 1.3.9-4ubuntu0.1 amd64 [upgradable from: 1.3.9-4] libgirepository-1.0-1/focal-proposed 1.64.1-1~ubuntu20.04.1 amd64 [upgradable from: 1.64.0-2] liblzma5/focal-proposed 5.2.4-1ubuntu1 amd64 [upgradable from: 5.2.4-1] libnetplan0/focal-updates,focal-proposed 0.99-0ubuntu3~20.04.2 amd64 [upgradable from: 0.99-0ubuntu3~20.04.1] libseccomp2/focal-proposed 2.4.3-1ubuntu3.20.04.2 amd64 [upgradable from: 2.4.3-1ubuntu1] libsqlite3-0/focal-updates,focal-security 3.31.1-4ubuntu0.1 amd64 [upgradable from: 3.31.1-4] linux-headers-generic/focal-proposed 5.4.0.38.41 amd64 [upgradable from: 5.4.0.37.40] linux-headers-virtual/focal-proposed 5.4.0.38.41 amd64 [upgradable from: 5.4.0.37.40] linux-image-virtual/focal-proposed 5.4.0.38.41 amd64 [upgradable from: 5.4.0.37.40] linux-virtual/focal-proposed 5.4.0.38.41 amd64 [upgradable from: 5.4.0.37.40] netplan.io/focal-updates,focal-proposed 0.99-0ubuntu3~20.04.2 amd64 [upgradable from: 0.99-0ubuntu3~20.04.1] nfs-common/focal-proposed 1:1.3.4-2.5ubuntu3.1 amd64 [upgradable from: 1:1.3.4-2.5ubuntu3] nfs-kernel-server/focal-proposed 1:1.3.4-2.5ubuntu3.1 amd64 [upgradable from: 1:1.3.4-2.5ubuntu3] python3-apport/focal-proposed 2.20.11-0ubuntu27.3 all [upgradable from: 2.20.11-0ubuntu27.2] python3-problem-report/focal-proposed 2.20.11-0ubuntu27.3 all [upgradable from: 2.20.11-0ubuntu27.2] python3-update-manager/focal-proposed 1:20.04.10.1 all [upgradable from: 1:20.04.10] tmux/focal-proposed 3.0a-2ubuntu0.1 amd64 [upgradable from: 3.0a-2] update-manager-core/focal-proposed 1:20.04.10.1 all [upgradable from: 1:20.04.10] xz-utils/focal-proposed 5.2.4-1ubuntu1 amd64 [upgradable from: 5.2.4-1] ubuntu@focal2:~$ sudo apt install nfs-kernel-server Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: nfs-common Suggested packages: watchdog The following packages will be upgraded: nfs-common nfs-kernel-server 2 upgraded, 0 newly installed, 0 to remove and 35 not upgraded. Need to get 303 kB of archives. After this operation, 49.2 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed/main amd64 nfs-common amd64 1:1.3.4-2.5ubuntu3.1 [204 kB] Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu focal-proposed/main amd64 nfs-kernel-server amd64 1:1.3.4-2.5ubuntu3.1 [98.8 kB] Fetched 303 kB in 1s (495 kB/s) (Reading database ... 63254 files and directories currently installed.) Preparing to unpack .../nfs-common_1%3a1.3.4-2.5ubuntu3.1_amd64.deb ... Unpacking nfs-common (1:1.3.4-2.5ubuntu3.1) over (1:1.3.4-2.5ubuntu3) ... Preparing to unpack .../nfs-kernel-server_1%3a1.3.4-2.5ubuntu3.1_amd64.deb ... Unpacking nfs-kernel-server (1:1.3.4-2.5ubuntu3.1) over (1:1.3.4-2.5ubuntu3) ... Setting up nfs-common (1:1.3.4-2.5ubuntu3.1) ... nfs-utils.service is a disabled or a static unit not running, not starting it. Setting up nfs-kernel-server (1:1.3.4-2.5ubuntu3.1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for systemd (245.4-4ubuntu3.1) ... ubuntu@focal2:~$ sudo reboot Connection to 10.5.0.53 closed by remote host. Connection to 10.5.0.53 closed. ubuntu@ganso-bastion:~$ ssh 10.5.0.53 ssh: connect to host 10.5.0.53 port 22: Connection refused ubuntu@ganso-bastion:~$ ssh 10.5.0.53 ssh: connect to host 10.5.0.53 port 22: Connection refused ubuntu@ganso-bastion:~$ ssh 10.5.0.53 Warning: Permanently added '10.5.0.53' (ECDSA) to the list of known hosts. "System is booting up. Unprivileged users are not permitted to log in yet. Please come back later. For technical details, see pam_nologin(8)." Connection closed by 10.5.0.53 port 22 ubuntu@ganso-bastion:~$ ssh 10.5.0.53 Warning: Permanently added '10.5.0.53' (ECDSA) to the list of known hosts. Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-37-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Jun 16 16:18:35 UTC 2020 System load: 0.9 Processes: 157 Usage of /: 3.5% of 38.60GB Users logged in: 0 Memory usage: 6% IPv4 address for ens3: 10.5.0.53 Swap usage: 0% 34 updates can be installed immediately. 5 of these updates are security updates. To see these additional updates run: apt list --upgradable Last login: Tue Jun 16 16:14:31 2020 from 10.5.0.13 ubuntu@focal2:~$ sudo -s root@focal2:/home/ubuntu# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 55M 1 loop /snap/core18/1754 loop1 7:1 0 69.3M 1 loop /snap/lxd/15457 loop2 7:2 0 30.3M 1 loop /snap/snapd/7777 sda 8:0 0 1020M 0 disk /data vda 252:0 0 40G 0 disk ├─vda1 252:1 0 39.9G 0 part / ├─vda14 252:14 0 4M 0 part └─vda15 252:15 0 106M 0 part /boot/efi root@focal2:/home/ubuntu# sudo showmount -e Export list for focal2: /data/dir2 * /data/dir1 * root@focal2:/home/ubuntu# systemctl -a | grep nfs proc-fs-nfsd.mount loaded active mounted NFSD configuration filesystem nfs-blkmap.service loaded active running pNFS block layout mapping daemon nfs-config.service loaded inactive dead Preprocess NFS configuration nfs-idmapd.service loaded active running NFSv4 ID-name mapping service nfs-mountd.service loaded active running NFS Mount Daemon nfs-server.service loaded active exited NFS server and services nfs-utils.service loaded inactive dead NFS server and client services nfs-client.target loaded active active NFS client services root@focal2:/home/ubuntu#