[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1006442: NFS setup BTRFS RAID



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

andrew@a68n:~$ cd projects/
andrew@a68n:~/projects$ wget
https://attachment.irregulaire.info/mini-NAS-etc.txz --2022-02-26 08:35:50--
https://attachment.irregulaire.info/mini-NAS-etc.txz Resolving
attachment.irregulaire.info (attachment.irregulaire.info)... 188.40.28.11
Connecting to attachment.irregulaire.info
(attachment.irregulaire.info)|188.40.28.11|:443... connected. HTTP request
sent, awaiting response... 200 OK Length: 542472 (530K) Saving to:
‘mini-NAS-etc.txz’

mini-NAS-etc.txz    100%[===================>] 529.76K  --.-KB/s    in
0.1s    

2022-02-26 08:35:51 (4.50 MB/s) - ‘mini-NAS-etc.txz’ saved [542472/542472]

andrew@a68n:~/projects$ CD ~
bash: CD: command not found
andrew@a68n:~/projects$ cd ~
andrew@a68n:~$ ssh root@t555
Linux t555 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Feb 25 14:29:53 2022 from 192.168.0.58
root@t555:~# ls
root@t555:~# fdisk -l
Disk /dev/sda: 488.8 MiB, 512483328 bytes, 1000944 sectors
Disk model: 512MB ATA Flash 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start     End Sectors   Size Id Type
/dev/sda1  *       63 1000943 1000881 488.7M  e W95 FAT16 (LBA)


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS541010A9
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xd8b13c68

Device     Boot     Start        End    Sectors  Size Id Type
/dev/sdb1            2048  780142591  780140544  372G 83 Linux
/dev/sdb2       780142592 1950353407 1170210816  558G 83 Linux


Disk /dev/sdc: 14.3 GiB, 15376000000 bytes, 30031250 sectors
Disk model: Ultra           
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009e0b6

Device     Boot    Start      End  Sectors   Size Id Type
/dev/sdc1  *        2048 11718655 11716608   5.6G 83 Linux
/dev/sdc2       11718656 29296639 17577984   8.4G 83 Linux
/dev/sdc3       29296640 30031249   734610 358.7M 83 Linux


Disk /dev/sdd: 931.5 GiB, 1000204883968 bytes, 1953525164 sectors
Disk model: External USB 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3310346d

Device     Boot      Start        End    Sectors  Size Id Type
/dev/sdd1             2048 1170212863 1170210816  558G 83 Linux
/dev/sdd2       1170212864 1950353407  780140544  372G 83 Linux
root@t555:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sde1 during installation
UUID=a688f3f3-2e04-4e4a-abf7-cf783eaee140 /               ext4
noatime,nodiratime,errors=remount-ro 0       1 # swap was on /dev/sde3 during
installation UUID=62439a72-3dc3-4232-abac-1b4ec4663182 none
swap    sw              0       0 root@t555:~# apt search nfs
Sorting... Done
Full Text Search... Done
4pane/oldstable 5.0-2 amd64
  four-pane detailed-list file manager

arch-install-scripts/oldstable 21-1 all
  scripts aimed at automating some menial tasks when debootstrapping

argonaut-fai-nfsroot/oldstable 1.2.3-2 all
  Argonaut (tools, queues and status management)

argonaut-fai-server/oldstable 1.2.3-2 all
  Argonaut (scripts to enable Argonaut integration with FAI)

backuppc/oldstable 3.3.2-2+deb10u1 amd64
  high-performance, enterprise-grade system for backing up PCs

bootcd/oldstable 5.14 all
  run your system from cd without need for disks

cinder-api/oldstable 2:13.0.3-1 all
  OpenStack block storage system - API server

cinder-backup/oldstable 2:13.0.3-1 all
  OpenStack block storage system - Backup server

cinder-common/oldstable 2:13.0.3-1 all
  OpenStack block storage system - common files

cinder-doc/oldstable 2:13.0.3-1 all
  OpenStack block storage system - doc

cinder-scheduler/oldstable 2:13.0.3-1 all
  OpenStack block storage system - Scheduler server

cinder-volume/oldstable 2:13.0.3-1 all
  OpenStack block storage system - Volume server

collectd-core/oldstable 5.8.1-1.3 amd64
  statistics collection and monitoring daemon (core system)

collectl/oldstable 4.3.0-1 all
  Utility to collect Linux performance data

daemonfs/oldstable 1.1-1+b2 amd64
  real time monitoring software

diod/oldstable 1.0.24-4 amd64
  I/O forwarding server for 9P

dracut-core/oldstable 048+80-2 amd64
  dracut is an event driven initramfs infrastructure (core tools)

dracut-network/oldstable 048+80-2 all
  dracut is an event driven initramfs infrastructure (network modules)

dsniff/oldstable 2.4b1+debian-29 amd64
  Various tools to sniff network traffic for cleartext insecurities

fai-nfsroot/oldstable 5.8.4 all
  Fully Automatic Installation nfsroot package

fam/oldstable 2.7.0-17.3 amd64
  File Alteration Monitor

gfarm-client/oldstable 2.7.11+dfsg-1.1 amd64
  Gfarm file system clients

gfarm-doc/oldstable 2.7.11+dfsg-1.1 all
  Gfarm file system documentation

gfarm2fs/oldstable 1.2.11-1 amd64
  FUSE program to mount the Gfarm file system

gfmd/oldstable 2.7.11+dfsg-1.1 amd64
  Gfarm file system metadata server

gfsd/oldstable 2.7.11+dfsg-1.1 amd64
  Gfarm file system daemon

gnome-system-tools/oldstable 3.0.0-8 amd64
  Cross-platform configuration utilities

golang-github-hanwen-go-fuse-dev/oldstable 0.0~git20190214.58dcd77-1 all
  Native Go bindings for the FUSE kernel module

hydra/oldstable 8.8-1 amd64
  very fast network logon cracker

hydra-gtk/oldstable 8.8-1 amd64
  very fast network logon cracker - GTK+ based GUI

ioprocess/oldstable 0.15.1-3 amd64
  Slave process to perform risky IO

jftp/oldstable 1.60+dfsg-3 all
  Java GUI client for FTP, SMB, SFTP and NFS

kdenetwork-filesharing/oldstable 4:17.08.3-1+b1 amd64
  network filesharing configuration module

kio/oldstable 5.54.1-1 amd64
  resource and network access abstraction

libfile-fcntllock-perl/oldstable 0.22-3+b5 amd64
  Perl module for file locking with fcntl(2)

libfile-nfslock-perl/oldstable 1.29-1 all
  perl module to do NFS (or not) locking

libfst-dev/oldstable 1.6.3-2 amd64
  weighted finite-state transducers library (development)

libfst-tools/oldstable 1.6.3-2 amd64
  weighted finite-state transducers library (tools)

libfst8/oldstable 1.6.3-2 amd64
  weighted finite-state transducers library (runtime)

libfst8-plugins-base/oldstable 1.6.3-2 amd64
  weighted finite-state transducers library (base plugins)

libgfarm-dev/oldstable 2.7.11+dfsg-1.1 amd64
  Gfarm file system development files

libgfarm1/oldstable 2.7.11+dfsg-1.1 amd64
  Gfarm file system runtime library

libio-aio-perl/oldstable 4.60-1+b1 amd64
  asynchronous IO module for Perl

libkf5kio-dev/oldstable 5.54.1-1 amd64
  resource and network access abstraction (development files)

libkf5kio-doc/oldstable 5.54.1-1 all
  resource and network access abstraction (documentation)

libkf5kiocore5/oldstable 5.54.1-1 amd64
  resource and network access abstraction (KIO core library)

libkf5kiofilewidgets5/oldstable 5.54.1-1 amd64
  resource and network access abstraction (KIO file widgets library)

libkf5kiogui5/oldstable 5.54.1-1 amd64
  resource and network access abstraction (KIO gui library)

libkf5kiontlm5/oldstable 5.54.1-1 amd64
  resource and network access abstraction (KIO NTLM library)

libkf5kiowidgets5/oldstable 5.54.1-1 amd64
  resource and network access abstraction (KIO widgets library)

liblockfile1/oldstable 1.14-1.1 amd64
  NFS-safe locking library

libnfft3-2/oldstable 3.3.2-2 amd64
  library for computing non-uniform Fourier transforms

libnfft3-dev/oldstable 3.3.2-2 amd64
  development files for the NFFT library

libnfft3-doc/oldstable 3.3.2-2 all
  documentation for the NFFT library

libnfft3-double2/oldstable 3.3.2-2 amd64
  library for computing non-uniform Fourier transforms (double precision)

libnfft3-long2/oldstable 3.3.2-2 amd64
  library for computing non-uniform Fourier transforms (long-double precision)

libnfft3-single2/oldstable 3.3.2-2 amd64
  library for computing non-uniform Fourier transforms (single precision)

libnfs-dev/oldstable 3.0.0-2 amd64
  NFS client library (development files)

libnfs-utils/oldstable 3.0.0-2 amd64
  NFS client library (binaries)

libnfs12/oldstable 3.0.0-2 amd64
  NFS client library (shared library)

libnfsidmap-dev/oldstable 0.25-5.1 amd64
  header files and docs for libnfsidmap

libnfsidmap2/oldstable 0.25-5.1 amd64
  NFS idmapping library

libntirpc-dev/oldstable 1.7.1-1 amd64
  new transport-independent RPC library - development files

libntirpc1.7/oldstable 1.7.1-1 amd64
  new transport-independent RPC library

libsys-gamin-perl/oldstable 0.1-2+b6 amd64
  Perl interface to Gamin (File Access Monitor implementation)

libtirpc-common/oldstable 1.1.4-0.4 all
  transport-independent RPC library - common files

libtirpc-dev/oldstable 1.1.4-0.4 amd64
  transport-independent RPC library - development files

libtirpc3/oldstable 1.1.4-0.4 amd64
  transport-independent RPC library

libyanfs-java/oldstable 0.0+cvs20070825-4 all
  Yet Another NFS - a Java NFS library

manpages/oldstable,now 4.16-2 all [installed]
  Manual pages about using a GNU/Linux system

manpages-de/oldstable 2.12-1 all
  German manpages

manpages-pl/oldstable 1:0.7-1 all
  Polish man pages

manpages-pt/oldstable 20040726-4 all
  Portuguese Versions of the Manual Pages

manpages-tr/oldstable 1.0.5.1-3 all
  Turkish version of the manual pages

mb2md/oldstable 3.20-9 all
  Convert Mbox mailboxes to Maildir format

mergerfs/oldstable 2.24.2-4 amd64
  another FUSE union filesystem

mhddfs/oldstable 0.1.39+nmu1+b1 amd64
  file system for unifying several mount points into one

nagios-plugins-contrib/oldstable 24.20190301 amd64
  Plugins for nagios compatible monitoring systems

nbd-client/oldstable 1:3.19-3 amd64
  Network Block Device protocol - client

nbd-server/oldstable 1:3.19-3 amd64
  Network Block Device protocol - server

nfs-common/oldstable 1:1.3.4-2.5+deb10u1 amd64
  NFS support files common to client and server

nfs-ganesha/oldstable 2.7.1-2 amd64
  NFS server in User Space

nfs-ganesha-ceph/oldstable 2.7.1-2 amd64
  nfs-ganesha fsal ceph libraries

nfs-ganesha-doc/oldstable 2.7.1-2 all
  Documentation for nfs-ganesha

nfs-ganesha-gluster/oldstable 2.7.1-2 amd64
  nfs-ganesha fsal gluster libraries

nfs-ganesha-gpfs/oldstable 2.7.1-2 amd64
  nfs-ganesha fsal gpfs libraries

nfs-ganesha-mem/oldstable 2.7.1-2 amd64
  nfs-ganesha fsal mem libraries

nfs-ganesha-mount-9p/oldstable 2.7.1-2 amd64
  nfs-ganesha mount.9P

nfs-ganesha-nullfs/oldstable 2.7.1-2 amd64
  nfs-ganesha fsal nullfs libraries

nfs-ganesha-proxy/oldstable 2.7.1-2 amd64
  nfs-ganesha fsal proxy libraries

nfs-ganesha-vfs/oldstable 2.7.1-2 amd64
  nfs-ganesha fsal vfs libraries

nfs-ganesha-xfs/oldstable 2.7.1-2 amd64
  nfs-ganesha fsal xfs libraries

nfs-kernel-server/oldstable 1:1.3.4-2.5+deb10u1 amd64
  support for NFS kernel server

nfs4-acl-tools/oldstable 0.3.3-3 amd64
  Commandline and GUI ACL utilities for the NFSv4 client

nfstrace/oldstable 0.4.3.2-1 amd64
  NFS tracing/monitoring/capturing/analyzing tool

nfstrace-doc/oldstable 0.4.3.2-1 all
  NFS tracing/monitoring/capturing/analyzing tool (documentation)

nfswatch/oldstable 4.99.11-6 amd64
  Program to monitor NFS traffic for the console

nmon/oldstable 16i+debian-2 amd64
  performance monitoring tool for Linux

petitboot/oldstable 13.05.29.14.00-g4dc604b-1+b7 amd64
  ncurses version of petitboot, a kexec based bootloader

petitboot-twin/oldstable 13.05.29.14.00-g4dc604b-1+b7 amd64
  Twin GUI version of petitboot, a kexec based bootloader

portsentry/oldstable 1.2-14+b1 amd64
  Portscan detection daemon

python-flufl.lock-doc/oldstable 3.2-1 all
  NFS-safe file-based lock with timeouts (common documentation)

python-ioprocess/oldstable 0.15.1-3 all
  Python bindings for ioprocess

python-nfs-ganesha/oldstable 2.7.1-2 all
  Python bindings for nfs-ganesha

python-reconfigure/oldstable 0.1.81+git20171214.2b8729a8-1 all
  simple config file management library (Python 2)

python-tackerclient/oldstable 0.14.0-2 all
  CLI and Client Library for OpenStack Tacker - Python 2.7

python-tackerclient-doc/oldstable 0.14.0-2 all
  CLI and Client Library for OpenStack Tacker - doc

python3-cinder/oldstable 2:13.0.3-1 all
  OpenStack block storage system - Python libraries

python3-flufl.lock/oldstable 3.2-1 all
  NFS-safe file-based lock with timeouts (Python 3)

python3-reconfigure/oldstable 0.1.81+git20171214.2b8729a8-1 all
  simple config file management library (Python 3)

python3-tackerclient/oldstable 0.14.0-2 all
  CLI and Client Library for OpenStack Tacker - Python 3.x

quota/oldstable 4.04-2+deb10u1 amd64
  disk quota management tools

resource-agents/oldstable 1:4.2.0-2+deb10u2 amd64
  Cluster Resource Agents

ruby-lockfile/oldstable 2.1.3-1 all
  create NFS-safe lockfiles

ruby-spring-watcher-listen/oldstable 2.0.1-1 all
  Makes spring watch files using the listen library

s3ql/oldstable 3.0+dfsg-1 amd64
  Full-featured file system for online data storage

s3ql-dbg/oldstable 3.0+dfsg-1 amd64
  Full-featured file system for online data storage (debugging symbols)

sbrsh/oldstable 7.6.1+b2 amd64
  Scratchbox Remote Shell client

sbrshd/oldstable 7.6.1+b2 amd64
  Scratchbox Remote Shell daemon

slack/oldstable 1:0.15.2-9 all
  configuration management program for lazy admins

tcpdump/oldstable 4.9.3-1~deb10u2 amd64
  command-line network traffic analyzer

texlive-latex-base/oldstable 2018.20190227-2 all
  TeX Live: LaTeX fundamental packages

texlive-latex-extra/oldstable 2018.20190227-2 all
  TeX Live: LaTeX additional packages

texlive-luatex/oldstable 2018.20190227-2 all
  TeX Live: LuaTeX packages

texlive-plain-generic/oldstable 2018.20190227-2 all
  TeX Live: Plain (La)TeX packages

tiger-otheros/oldstable 1:3.2.4~rc1-1 amd64
  Scripts to run Tiger in other operating systems

udpcast/oldstable 20120424-2 amd64
  multicast file transfer tool

unburden-home-dir/oldstable 0.4.1.1 all
  Remove or move cache files automatically from user's home

unionfs-fuse/oldstable 1.0-1+b1 amd64
  Fuse implementation of unionfs

vagrant-libvirt/oldstable 0.0.45-2 all
  Vagrant plugin that adds an Libvirt provider to Vagrant

vagrant-sshfs/oldstable 1.3.1-1 all
  vagrant plugin that adds synced folder support with sshfs

vbackup/oldstable 1.0.1-1.1 all
  modular backup utility

root@t555:~# apt search btrfs
Sorting... Done
Full Text Search... Done
btrbk/oldstable 0.27.1-1+deb10u1 all
  backup tool for btrfs subvolumes

btrfs-compsize/oldstable 1.3-1 amd64
  calculate compression ratio of a set of files on btrfs

btrfs-heatmap/oldstable 8-1 all
  Visualize the layout of data on your btrfs filesystem

btrfs-progs/oldstable 4.20.1-2 amd64
  Checksumming Copy on Write Filesystem utilities

btrfsmaintenance/oldstable 0.4.2-1 all
  automate btrfs maintenance tasks on mountpoints or directories

disktype/oldstable 9-8 amd64
  detection of content format of a disk or disk image

duperemove/oldstable 0.11.1-3 amd64
  extent-based deduplicator for file systems

extlinux/oldstable 3:6.04~git20190206.bf6db5b4+dfsg1-1 amd64
  collection of bootloaders (Linux ext2/ext3/ext4, btrfs, and xfs bootloader)

fssync/oldstable 1.6-1 all
  File system synchronization tool (1-way, over SSH)

golang-github-containerd-btrfs-dev/oldstable 0.0~git20180306.2e1aa0d-1 all
  Btrfs bindings for Go

gpart/oldstable 1:0.3-6 amd64
  Guess PC disk partition table, find lost partitions

isolinux/oldstable 3:6.04~git20190206.bf6db5b4+dfsg1-1 all
  collection of bootloaders (ISO 9660 bootloader)

jdupes/oldstable 1.12-1 amd64
  identify and delete or link duplicate files

libblockdev-btrfs-dev/oldstable 2.20-7+deb10u1 amd64
  BTRFS plugin for libblockdev - development

libblockdev-btrfs2/oldstable 2.20-7+deb10u1 amd64
  BTRFS plugin for libblockdev

libblockdev-dev/oldstable 2.20-7+deb10u1 amd64
  Library for manipulating block devices - development

libblockdev-plugins-all/oldstable 2.20-7+deb10u1 amd64
  All plugins for libblockdev

libblockdev2/oldstable 2.20-7+deb10u1 amd64
  Library for manipulating block devices

libbtrfs-dev/oldstable 4.20.1-2 amd64
  Checksumming Copy on Write Filesystem utilities (development headers)

libbtrfs0/oldstable 4.20.1-2 amd64
  Checksumming Copy on Write Filesystem utilities (runtime library)

libbtrfsutil-dev/oldstable 4.20.1-2 amd64
  Checksumming Copy on Write Filesystem utilities (util development headers)

libbtrfsutil1/oldstable 4.20.1-2 amd64
  Checksumming Copy on Write Filesystem utilities (runtime util library)

libguestfs0/oldstable 1:1.40.2-2 amd64
  guest disk image management system - shared library

monitoring-plugins-btrfs/oldstable 11-2 all
  btrfs plugin for nagios compatible monitoring systems

munin-plugins-btrfs/oldstable 11-2 all
  munin plugin for monitoring btrfs filesystems

parted/oldstable 3.2-25 amd64
  disk partition manipulator

pxelinux/oldstable 3:6.04~git20190206.bf6db5b4+dfsg1-1 all
  collection of bootloaders (PXE network bootloader)

python3-btrfs/oldstable 11-2 all
  python module to inspect btrfs filesystems

python3-btrfsutil/oldstable 4.20.1-2 amd64
  Checksumming Copy on Write Filesystem utilities (python3 bindings)

refind/oldstable 0.11.3-1 amd64
  boot manager for EFI-based computers

schroot/oldstable 1.6.10-6+b1 amd64
  Execute commands in a chroot environment

snapper/oldstable 0.8.2-1 amd64
  Linux filesystem snapshot management tool

snapper-gui/oldstable 0git.960a94834f-3 all
  graphical user interface for snapper

syslinux/oldstable 3:6.04~git20190206.bf6db5b4+dfsg1-1 amd64
  collection of bootloaders (DOS FAT and NTFS bootloader)

syslinux-common/oldstable 3:6.04~git20190206.bf6db5b4+dfsg1-1 all
  collection of bootloaders (common)

syslinux-efi/oldstable 3:6.04~git20190206.bf6db5b4+dfsg1-1 all
  collection of bootloaders (UEFI bootloader)

syslinux-utils/oldstable 3:6.04~git20190206.bf6db5b4+dfsg1-1 amd64
  collection of bootloaders (utilities)

timeshift/oldstable 19.01+ds-2+deb10u1 amd64
  System restore utility

udisks2-btrfs/oldstable 2.8.1-4 amd64
  BTRFS support for udisks2

root@t555:~# apt install nfs-kernel-server btrfs-progs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  keyutils libevent-2.1-6 liblzo2-2 libnfsidmap2 libtirpc-common libtirpc3
  nfs-common rpcbind
Suggested packages:
  duperemove open-iscsi watchdog
The following NEW packages will be installed:
  btrfs-progs keyutils libevent-2.1-6 liblzo2-2 libnfsidmap2 libtirpc-common
  libtirpc3 nfs-common nfs-kernel-server rpcbind
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,431 kB of archives.
After this operation, 5,842 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian buster/main amd64 liblzo2-2 amd64 2.10-0.1
[56.1 kB] Get:2 http://deb.debian.org/debian buster/main amd64 btrfs-progs
amd64 4.20.1-2 [602 kB] Get:3 http://deb.debian.org/debian buster/main amd64
keyutils amd64 1.6-6 [51.7 kB] Get:4 http://deb.debian.org/debian buster/main
amd64 libevent-2.1-6 amd64 2.1.8-stable-4 [177 kB] Get:5
http://deb.debian.org/debian buster/main amd64 libnfsidmap2 amd64 0.25-5.1
[32.0 kB] Get:6 http://deb.debian.org/debian buster/main amd64
libtirpc-common all 1.1.4-0.4 [16.7 kB] Get:7 http://deb.debian.org/debian
buster/main amd64 libtirpc3 amd64 1.1.4-0.4 [93.5 kB] Get:8
http://deb.debian.org/debian buster/main amd64 rpcbind amd64
1.2.5-0.3+deb10u1 [47.1 kB] Get:9 http://deb.debian.org/debian buster/main
amd64 nfs-common amd64 1:1.3.4-2.5+deb10u1 [231 kB] Get:10
http://deb.debian.org/debian buster/main amd64 nfs-kernel-server amd64
1:1.3.4-2.5+deb10u1 [124 kB] Fetched 1,431 kB in 1s (1,197 kB/s) Selecting
previously unselected package liblzo2-2:amd64. (Reading database ... 31835
files and directories currently installed.) Preparing to
unpack .../0-liblzo2-2_2.10-0.1_amd64.deb ... Unpacking liblzo2-2:amd64
(2.10-0.1) ... Selecting previously unselected package btrfs-progs. Preparing
to unpack .../1-btrfs-progs_4.20.1-2_amd64.deb ... Unpacking btrfs-progs
(4.20.1-2) ... Selecting previously unselected package keyutils. Preparing to
unpack .../2-keyutils_1.6-6_amd64.deb ... Unpacking keyutils (1.6-6) ...
Selecting previously unselected package libevent-2.1-6:amd64.
Preparing to unpack .../3-libevent-2.1-6_2.1.8-stable-4_amd64.deb ...
Unpacking libevent-2.1-6:amd64 (2.1.8-stable-4) ...
Selecting previously unselected package libnfsidmap2:amd64.
Preparing to unpack .../4-libnfsidmap2_0.25-5.1_amd64.deb ...
Unpacking libnfsidmap2:amd64 (0.25-5.1) ...
Selecting previously unselected package libtirpc-common.
Preparing to unpack .../5-libtirpc-common_1.1.4-0.4_all.deb ...
Unpacking libtirpc-common (1.1.4-0.4) ...
Selecting previously unselected package libtirpc3:amd64.
Preparing to unpack .../6-libtirpc3_1.1.4-0.4_amd64.deb ...
Unpacking libtirpc3:amd64 (1.1.4-0.4) ...
Selecting previously unselected package rpcbind.
Preparing to unpack .../7-rpcbind_1.2.5-0.3+deb10u1_amd64.deb ...
Unpacking rpcbind (1.2.5-0.3+deb10u1) ...
Selecting previously unselected package nfs-common.
Preparing to unpack .../8-nfs-common_1%3a1.3.4-2.5+deb10u1_amd64.deb ...
Unpacking nfs-common (1:1.3.4-2.5+deb10u1) ...
Selecting previously unselected package nfs-kernel-server.
Preparing to
unpack .../9-nfs-kernel-server_1%3a1.3.4-2.5+deb10u1_amd64.deb ... Unpacking
nfs-kernel-server (1:1.3.4-2.5+deb10u1) ... Setting up libtirpc-common
(1.1.4-0.4) ... Setting up liblzo2-2:amd64 (2.10-0.1) ...
Setting up libevent-2.1-6:amd64 (2.1.8-stable-4) ...
Setting up keyutils (1.6-6) ...
Setting up libnfsidmap2:amd64 (0.25-5.1) ...
Setting up libtirpc3:amd64 (1.1.4-0.4) ...
Setting up btrfs-progs (4.20.1-2) ...
Setting up rpcbind (1.2.5-0.3+deb10u1) ...
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.5+deb10u1) ...

Creating config file /etc/idmapd.conf with new version
Adding system user `statd' (UID 107) ...
Adding new user `statd' (UID 107) 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.5+deb10u1) ... 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 libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u8) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-18-amd64
W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3
root@t555:~# apt show net-tools
Package: net-tools
Version: 1.60+git20180626.aebd88e-1
Priority: optional
Section: net
Maintainer: net-tools Team <team+net-tools@tracker.debian.org>
Installed-Size: 1,002 kB
Depends: libc6 (>= 2.14), libselinux1 (>= 1.32)
Homepage: http://sourceforge.net/projects/net-tools/
Tag: admin::configuring, implemented-in::c, interface::commandline,
 network::configuration, network::routing, network::vpn, protocol::ipv6,
 role::program, scope::utility, use::routing
Download-Size: 248 kB
APT-Manual-Installed: yes
APT-Sources: http://deb.debian.org/debian buster/main amd64 Packages
Description: NET-3 networking toolkit
 This package includes the important tools for controlling the network
 subsystem of the Linux kernel.  This includes arp, ifconfig, netstat,
 rarp, nameif and route.  Additionally, this package contains utilities
 relating to particular network hardware types (plipconfig, slattach,
 mii-tool) and advanced aspects of IP configuration (iptunnel, ipmaddr).
 .
 In the upstream package 'hostname' and friends are included. Those are
 not installed by this package, since there is a special "hostname*.deb".

root@t555:~# ifconfig
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.90  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::9e8e:99ff:fed9:964b  prefixlen 64  scopeid 0x20<link>
        ether 9c:8e:99:d9:96:4b  txqueuelen 1000  (Ethernet)
        RX packets 2451  bytes 1619936 (1.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1512  bytes 170513 (166.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 28  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 2  bytes 190 (190.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 190 (190.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@t555:~# ls -l  /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Feb 26 08:35 0004-C8A3 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 26 08:35 62439a72-3dc3-4232-abac-1b4ec4663182
- -> ../../sdc3 lrwxrwxrwx 1 root root 10 Feb 26 08:35
6e9dda46-770a-433b-80bb-1d6256e873d1 -> ../../sdb1 lrwxrwxrwx 1 root root 10
Feb 26 08:35 a688f3f3-2e04-4e4a-abf7-cf783eaee140 -> ../../sdc1 lrwxrwxrwx 1
root root 10 Feb 26 08:35 c6afcd5e-2da6-4575-ab64-cdf8df9178c2 -> ../../sdd1
root@t555:~# fdisk -l Disk /dev/sda: 488.8 MiB, 512483328 bytes, 1000944
sectors Disk model: 512MB ATA Flash 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start     End Sectors   Size Id Type
/dev/sda1  *       63 1000943 1000881 488.7M  e W95 FAT16 (LBA)


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS541010A9
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xd8b13c68

Device     Boot     Start        End    Sectors  Size Id Type
/dev/sdb1            2048  780142591  780140544  372G 83 Linux
/dev/sdb2       780142592 1950353407 1170210816  558G 83 Linux


Disk /dev/sdc: 14.3 GiB, 15376000000 bytes, 30031250 sectors
Disk model: Ultra           
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009e0b6

Device     Boot    Start      End  Sectors   Size Id Type
/dev/sdc1  *        2048 11718655 11716608   5.6G 83 Linux
/dev/sdc2       11718656 29296639 17577984   8.4G 83 Linux
/dev/sdc3       29296640 30031249   734610 358.7M 83 Linux


Disk /dev/sdd: 931.5 GiB, 1000204883968 bytes, 1953525164 sectors
Disk model: External USB 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3310346d

Device     Boot      Start        End    Sectors  Size Id Type
/dev/sdd1             2048 1170212863 1170210816  558G 83 Linux
/dev/sdd2       1170212864 1950353407  780140544  372G 83 Linux
root@t555:~# man useradd
root@t555:~# man adduser
root@t555:~# adduser --uid=1003 andrew
Adding user `andrew' ...
Adding new group `andrew' (1003) ...
Adding new user `andrew' (1003) with group `andrew' ...
Creating home directory `/home/andrew' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for andrew
Enter the new value, or press ENTER for the default
        Full Name []: andrew
        Room Number []: 
        Work Phone []: 
        Home Phone []: 
        Other []: 
Is the information correct? [Y/n] 
root@t555:~# nano /etc/fstab
root@t555:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sde1 during installation
UUID=a688f3f3-2e04-4e4a-abf7-cf783eaee140 /               ext4
noatime,nodiratime,errors=remount-ro 0       1 # swap was on /dev/sde3 during
installation UUID=62439a72-3dc3-4232-abac-1b4ec4663182 none
swap    sw              0       0 ##
##BTRFS arrays:
UUID=c6afcd5e-2da6-4575-ab64-cdf8df9178c2 /mnt/btrd1    btrfs
noatime,nodiratime,compress=lzo 0       0
UUID=c6afcd5e-2da6-4575-ab64-cdf8df9178c2 /mnt/btrd1    btrfs
noatime,nodiratime,compress=lzo 0       0

root@t555:~# mkdir /mnt/btrd1
root@t555:~# chown andrew /mnt/btrd1
root@t555:~# nano /etc/fstab
root@t555:~# nano /etc/fstab
root@t555:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sde1 during installation
UUID=a688f3f3-2e04-4e4a-abf7-cf783eaee140 /               ext4
noatime,nodiratime,errors=remount-ro 0       1 # swap was on /dev/sde3 during
installation UUID=62439a72-3dc3-4232-abac-1b4ec4663182 none
swap    sw              0       0 ##
##BTRFS arrays:
UUID=c6afcd5e-2da6-4575-ab64-cdf8df9178c2 /mnt/btrd1    btrfs
noatime,nodiratime,compress=lzo 0       0
UUID=6e9dda46-770a-433b-80bb-1d6256e873d1 /mnt/btrb2    btrfs
noatime,nodiratime,compress=lzo 0       0

root@t555:~# cat /dev/disk/by-uuid/
cat: /dev/disk/by-uuid/: Is a directory
root@t555:~# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Feb 26 08:35 0004-C8A3 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 26 08:35 62439a72-3dc3-4232-abac-1b4ec4663182
- -> ../../sdc3 lrwxrwxrwx 1 root root 10 Feb 26 08:35
6e9dda46-770a-433b-80bb-1d6256e873d1 -> ../../sdb1 lrwxrwxrwx 1 root root 10
Feb 26 08:35 a688f3f3-2e04-4e4a-abf7-cf783eaee140 -> ../../sdc1 lrwxrwxrwx 1
root root 10 Feb 26 08:35 c6afcd5e-2da6-4575-ab64-cdf8df9178c2 -> ../../sdd1
root@t555:~# mount /mnt/btrd1 root@t555:~# mount /mnt/btrb2
mount: /mnt/btrb2: mount point does not exist.
root@t555:~# ls -l /mnt/
total 16
drwxr-xr-x 1 andrew root 180 Jan 22  2020 btrd1
root@t555:~# mkdir /mnt/btrb2
root@t555:~# chown andrew /mnt/btrb2/
root@t555:~# mount /mnt/btrb2
root@t555:~# nano /etc/exports
root@t555:~# 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)
#
/mnt/btrd1      192.168.0.1/24(rw,sync,no_subtree_check,anongid=132)
/mnt/btrb2      192.168.0.1/24(rw,sync,no_subtree_check,no_root_squash)

root@t555:~# service nfs-kernel-server restart
root@t555:~# 


> So that's all, no big deal.
> Device is safe to shut down, this is going to work.

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQTF9uNaslvnJpWt8kXn6sEfJS3nCwUCYhnewAAKCRDn6sEfJS3n
CzRLAKC8EbFeqj0Mww02WH5MU35rEf6K3gCcC1pYmVzzZhzKotoeGiuxzv4vMTs=
=akQj
-----END PGP SIGNATURE-----

Reply to: