disk

check status

  • $ lsblk

  • $ ncdu

  • $ pvs

  • $ lvs

  • $ vgs

  • $ pvscan

  • $ lvscan

  • $ pvdisplay

  • $ vgdisplay

  • $ lvdisplay

  • $ fdisk -l

  • $ sfdisk -l -uM

  • $ lshw -class disk

  • $ hwinfo --block --short

  • $ cat /proc/partitions

  • $ sudo blkid

mount

mount smb

[!NOTE] references:

macos

[!NOTE|label:references:]

  • via GUI :

    • Go -> Connect toServer -> smb://<domain.com>/secured

      samba
  • via cmd

  • check

linux

mount cifs

[!NOTE|label:references:]

  • environment setup

  • create credential file

  • mount

  • NFS share info

mount nfs

references

check mount

Check if folder is a mounted remote filesystem

check nfs mount points

check mount version

setup nfs mount by default server boot

related configure

  • /etc/fstab

  • /etc/nsswitch.conf

  • /etc/nfsmount.conf

  • /etc/nfs.conf

  • /proc/mounts

disconnect the mount

LVM

[!NOTE|label:reference:]

COMMAND
NAME

vg

Volume Group

pv

Physical Volume

lv

Logical Volume

check current status

  • lvm

  • disk status

add new pv ( Physical Volume )

moving home with lvm

[!NOTE|label:references]

extend lv

remove LVM

[!TIP]

example

  • extends the logical volume /dev/myvg/homevol to 12 gigabytes

  • adds another gigabyte to the logical volume /dev/myvg/homevol

others

NFS

references:

squid

references:

performance

check NFS performance

iostat

[!TIP|label:references:]

sar

hdparm

[!NOTE] hdparm - get/set SATA/IDE device parameters

references:

dd

[!NOTE|label:references:]

  • write speed

  • read spead

  • server latency time

samba

[!NOTE] references:

setup

configure

  • for anonymous

  • for secured

firewall is necessary

enable services

  • config

    [!TIP] FILES :

    • /etc/nsmb.conf

      • The global configuration file.

    • ~/Library/Preferences/nsmb.conf

      • The user's configuration file, conflicts will be overwritten by the global file.

smbclient

  • if no permission

Last updated

Was this helpful?