Hardware >> NAS >> Asustor >> AS6104T >> Cheatsheet

 

Category Command or File Description
Software RAID

mdadm --detail /dev/md0

Show details of the RAID configuration for /dev/md0
  mdadm --query /dev/md1

Show details of the RAID configuration for /dev/md1,

e.g. when disks in slot 1 & slot 2 are configured as RAID 1,

this (/dev/md1) is the software raid device

 User Accounts /volume0/etc/passwd  the user accounts for the NAS
 Windows Share /volume0/usr/builtin/etc/samba/smb.conf  SAMBA server config file
Disk Management smartctl  command to manage the S.M.A.R.T (Self-Monitoring Analysis and Report Technology) feature of Hard Disks
 

smartctl -i /dev/sdb

smartctl -i /dev/sdc

sample output

smartctl 6.3 2016-09-19 r34 [x86_64-linux-4.4.24] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     HGST HDN726040ALE614
Serial Number:    K4JR9WJB
LU WWN Device Id: 5 000cca 25de6544a
Firmware Version: APGNW7JH
Disk Size:        4000787030016
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Aug  9 22:41:36 2017 SGT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

show information of SATA disks 1 & 2.

disk 1 (first from left) is /dev/sdb

disk 2 is /dev/sdc

USB lsb list USB devices detected
Network ethtool eth0 Show configuration of network interface, e.g. speed, duplex etc