Mounting hdd

From wikiluntti
Revision as of 16:27, 30 June 2024 by Mol (talk | contribs) (→‎QNAP NAS)

RAID

cat /proc/mdstat
mdadm

LVM 2

sudo vgscan
sudo vgchange -ay ubuntu-vg
sudo lvs
sudo mount /dev/ubuntu-vg/lvstuff /media/mol -o ro,user

Mount lv2m

https://superuser.com/questions/116617/how-to-mount-an-lvm-volume

Note that the mounting option needs to be read/write: $ sudo mount /dev/VolGroup00/LogVol00 /mnt/fcroot -o rw,user

LVM2 (logical volume manager)

vgdisplay
vgrename
vgchange
vgs
lvscan

PV (physical volume)

pvcreate

QNAP NAS

My QNAP NAS is TS-431P. Usually at https://192.168.8.167.

Volume or Storage Pool

  • A storage pool combines many physical disks into one large pool of storage space and may contain one or more RAID groups.
    • However, with different sized HDDs, there will be wasted space as the minimum is the dominant.
  • Multiple volumes can be created in a storage pool, enabling you to divide the storage space among different users and applications.
  • Disks of different sizes and types can be mixed into one large storage space.
  • Volume
    • Thick is recommended for most cases.


Raid levels. I have multiple HDD with different sizes, and need to add more hdds if needed.

  • RAID 0 (striping) but losing any disk means losing all the data. Not really a RAID.
  • RAID 1 (mirroring). All hdds should be identical.
  • RAID 5 (parity striping) but requires at least 3 similar drives.

https://en.wikipedia.org/wiki/Standard_RAID_levels

How to convert RAID 0 to RAID 5 without losing any data?

SMB works on Network tab in Ubuntu PCManFM

SSH

ssh admin@192.168.8.192

The folder structure is following:

NFS

Samba

Samba server works almost out of the box. Use

smbclient -L 192.168.8.192 -U admin

to see the folders and

smbclient //192.168.8.192/Public -U admin

to actually connect the server. The get command allows to download files to local computer.

Samba works on Thunar (or Nautilus) after installing gvfs, gvfs-smb and sshfs packages, see https://wiki.archlinux.org/title/Thunar#Using_Thunar_to_browse_remote_locations. Use smb://192.168.8.192 only.