OS/Install & Modify
잡다한 명령어 모음
PeamS
2026. 1. 15. 15:40
OS
WWN 보기
lspci | grep -i Fibre
root@pve:/sys/class/scsi_host# lspci | grep -i Fibre
11:00.0 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
11:00.1 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
61:00.0 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
61:00.1 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
cd /sys/class/scsi_host
ls -l
root@pve:~# cd /sys/class/scsi_host
root@pve:/sys/class/scsi_host# ls -l
total 0
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host0 -> ../../devices/pci0000:00/0000:00:11.5/ata1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host1 -> ../../devices/pci0000:00/0000:00:11.5/ata2/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host10 -> ../../devices/pci0000:60/0000:60:00.0/0000:61:00.1/host10/scsi_host/host10
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host2 -> ../../devices/pci0000:00/0000:00:11.5/ata3/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host3 -> ../../devices/pci0000:00/0000:00:11.5/ata4/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host4 -> ../../devices/pci0000:00/0000:00:11.5/ata5/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host5 -> ../../devices/pci0000:00/0000:00:11.5/ata6/host5/scsi_host/host5
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host6 -> ../../devices/pci0000:b0/0000:b0:00.0/0000:b1:00.0/host6/scsi_host/host6
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host7 -> ../../devices/pci0000:10/0000:10:00.0/0000:11:00.0/host7/scsi_host/host7
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host8 -> ../../devices/pci0000:10/0000:10:00.0/0000:11:00.1/host8/scsi_host/host8
lrwxrwxrwx 1 root root 0 Mar 13 11:22 host9 -> ../../devices/pci0000:60/0000:60:00.0/0000:61:00.0/host9/scsi_host/host9
cat host7/device/fc_host/host7/port_name
root@pve:/sys/class/scsi_host# cat host7/device/fc_host/host7/port_name
0x51402e0000000000
MariaDB
grant
권한주기
GRANT ALL PRIVILEGES ON DB명.* TO 계정ID@localhost;