잡다한 명령어 모음

2026. 1. 15. 15:40·OS/Install & Modify

OS

블럭추적

파일의 block 위치 보기

[root@localhost ~]# filefrag -e CP046110.zip
Filesystem type is: 58465342
File size of CP046110.zip is 17614425 (4301 blocks of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..    4300:    6360384..   6364684:   4301:             last,eof
CP046110.zip: 1 extent found

# 0 ~ 4300 : 4096 bytes 크기로 4300개를 쓴다
# 6360384 ~ 6364684 : 해당 지점에 연속적으로 기록되어 있음

 

블럭 정보로 inode 추적하기

[root@localhost ~]# xfs_db -r -c "blockget -b 13" /dev/vdb1
setting block 0/13 to dir
setting inode to 131 for block 0/13
inode 131 block 13 at offset 8388608
dir inode 131 block 8388608=13

 

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;
저작자표시 비영리 변경금지 (새창열림)

'OS > Install & Modify' 카테고리의 다른 글

[Rocky Linux] LVM 정리  (0) 2026.03.16
[Windows 11] 선택적 기능 WMIC, .NET Framework 3.5 수동 설치하기  (0) 2026.03.10
[Rocky Linux] opendkim 설치하기  (0) 2025.12.15
[Linux] MariaDB 10.6 수동 설치  (2) 2025.09.15
[WS 2025] 선택적 기능(WMIC, .NET Framework 3.5) 및 언어 팩 수동 설치하는 방법  (0) 2025.06.11
'OS/Install & Modify' 카테고리의 다른 글
  • [Rocky Linux] LVM 정리
  • [Windows 11] 선택적 기능 WMIC, .NET Framework 3.5 수동 설치하기
  • [Rocky Linux] opendkim 설치하기
  • [Linux] MariaDB 10.6 수동 설치
PeamS
PeamS
본 블로그의 글들은 제 주관적인 생각이 반영되어 있으니, 항상 절대적인 정답이 아닐 수 있음을 유의해 주세요. 모든 글은 수시로 바뀝니다. 미완성에 주의하세요. 위키 처럼 사용중
  • PeamS
    각박딱딱
    PeamS
  • 전체
    오늘
    어제
    • 분류 전체보기 (42)
      • MAIN (1)
      • SERVER (12)
        • HPE (10)
        • DELL (2)
      • OS (12)
        • Install & Modify (6)
        • Troubleshooting (4)
        • Command (1)
      • Network (3)
        • OmniSwitch (3)
      • 컨테이너 (0)
      • Synology (0)
      • 백업 (4)
        • Veeam (1)
        • ETC (0)
      • 가상화 (2)
        • proxmox (2)
      • ETC (0)
        • 기록 (0)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
  • 링크

  • 공지사항

    • 위키처럼 쓰는 블로그
  • 인기 글

  • 태그

    윈도우 서버 설치 시 드라이브 안 보임
    opendkim
    Linux
    MariaDB 10.6
    펌웨어
    선택적기능 수동설치
    mariadb
    opendkim 설치
    root 접속하기
    Veeam Backup Replication
    proxmox
    언어팩 수동설치
    sum
    수동설치
    .NET Framework 3.5 수동설치
    v13
    wmic 수동설치
    20.0.0 Beta
    일괄업데이트
    hpe
    source install
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
PeamS
잡다한 명령어 모음
상단으로

티스토리툴바