Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

nfs

rpcinfo test

 rpcinfo -p 192.168.7.4
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100005    1   udp    892  mountd
    100005    1   tcp    892  mountd
    100005    2   udp    892  mountd
    100005    2   tcp    892  mountd
    100005    3   udp    892  mountd
    100005    3   tcp    892  mountd
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   udp  60758  nlockmgr
    100021    3   udp  60758  nlockmgr
    100021    4   udp  60758  nlockmgr
    100021    1   tcp  46957  nlockmgr
    100021    3   tcp  46957  nlockmgr
    100021    4   tcp  46957  nlockmgr
    100024    1   udp  42323  status
    100024    1   tcp  55374  status

sample config file

cat /etc/pve/nodes/pve128/qemu-server/742.conf
bios: ovmf
boot: order=scsi0;net0
cores: 2
cpuunits: 1024
efidisk0: local-lvm:vm-742-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:06:00,pcie=1
machine: pc-q35-7.1
memory: 16384
meta: creation-qemu=7.1.0,ctime=1675639736
name: win10gpupt
net0: virtio=E6:C4:47:DC:7C:6D,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local-lvm:vm-742-disk-1,cache=writeback,size=350G
scsihw: virtio-scsi-pci
smbios1: uuid=5467c817-e172-4a79-944d-8d03e44903eb
sockets: 2
vmgenid: 2632d05d-3bcb-455d-b4a8-a72e5f4e269a

mount example

mount -t nfs firs01:/NFS/ /mnt/pve/Backups/
root@pmhost3:/mnt/pve# cd /mnt/pve/Backups/
root@pmhost3:/mnt/pve/Backups# ls
dump  test.txt
root@pmhost3:/mnt/pve/Backups# cat test.txt 
Successfully connected to NFS share.

pvesm list

root@pve128:~# pvesm list
local         local-lvm     smallnas-nfs
root@pve128:~# pvesm list smallnas-nfs
Volid                                Format  Type              Size VMID
smallnas-nfs:742/vm-742-disk-0.qcow2 qcow2   images    322122547200 742

pvesm status

root@pve128:~# pvesm status
Name                Type     Status           Total            Used       Available        %
local                dir     active        98497780        51076320        42371912   51.86%
local-lvm        lvmthin     active       354787328        60597675       294189652   17.08%
smallnas-nfs         nfs     active      5804790912      3078951808      2725736704   53.04%