OS 및 기타/리눅스
개발서버 스펙조사
bright jazz music
2023. 3. 28. 16:48
fdisk -l
: 시스템에 연결된 모든 디스크와 파티션의 상세 정보를 보여준다.
- 디스크의 크기와 모델
- 파티션 테이블 유형
- 각 파티션의 시작/끝 섹터, 크기, 유형
- 논리 볼륨(LVM) 정보
시스템의 스토리지 구성을 파악하고, 디스크 공간 사용 현황을 확인하며, 필요한 경우 파티션 관리나 문제 해결을 위한 기초 정보를 수집할 수 있다.
grep 'cpu cores' /proc/cpuinfo | tail -1
: CPU 정보 중 코어 수에 관한 정보를 추출.
- /proc/cpuinfo 파일에서 'cpu cores' 문자열이 포함된 줄 탐색.
- tail -1을 사용해 마지막 줄만 출력.
이 명령어를 실행한 의도는 시스템의 CPU 코어 수를 빠르게 확인하기 위함임. 멀티코어 시스템에서 실제 물리적 코어의 수를 알고 싶을 때 사용.
root@test:~# fdisk -l
Disk /dev/sda: 894.25 GiB, 960197124096 bytes, 1875385008 sectors
Disk model: INTEL SSDSC2KB96
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4599F7D5-130D-4DDB-B76B-1A842378AB65
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 2099199 2097152 1G EFI System
/dev/sda3 2099200 1875384974 1873285775 893.3G Linux LVM
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000NM0008-2F3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A1963D86-C16E-4C7D-A306-DB999E165BAA
Device Start End Sectors Size Type
/dev/sdb1 34 2047 2014 1007K BIOS boot
/dev/sdb2 2048 1050623 1048576 512M EFI System
/dev/sdb3 1050624 3907029134 3905978511 1.8T Linux LVM
Disk /dev/mapper/pve-swap: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/pve-root: 96 GiB, 103079215104 bytes, 201326592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/pve--OLD--2F4FF2A2-swap: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/pve--OLD--2F4FF2A2-root: 96 GiB, 103079215104 bytes, 201326592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/pve--OLD--2F4FF2A2-vm--100--disk--0: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x000ceef9
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve--OLD--2F4FF2A2-vm--100--disk--0-part1 * 2048 2099199 2097152 1G 83 Linux
/dev/mapper/pve--OLD--2F4FF2A2-vm--100--disk--0-part2 2099200 67108863 65009664 31G 8e Linux LVM
Disk /dev/mapper/pve--OLD--2F4FF2A2-vm--101--disk--0: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x3135ced3
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve--OLD--2F4FF2A2-vm--101--disk--0-part1 * 2048 1050623 1048576 512M b W95 FAT32
/dev/mapper/pve--OLD--2F4FF2A2-vm--101--disk--0-part2 1052670 67106815 66054146 31.5G 5 Extended
/dev/mapper/pve--OLD--2F4FF2A2-vm--101--disk--0-part5 1052672 67106815 66054144 31.5G 83 Linux
Partition 2 does not start on physical sector boundary.
Disk /dev/mapper/pve-vm--107--disk--0: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x000a4533
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--107--disk--0-part1 * 2048 2099199 2097152 1G 83 Linux
/dev/mapper/pve-vm--107--disk--0-part2 2099200 67108863 65009664 31G 8e Linux LVM
Disk /dev/mapper/pve-vm--108--disk--0: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x000a4533
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--108--disk--0-part1 * 2048 2099199 2097152 1G 83 Linux
/dev/mapper/pve-vm--108--disk--0-part2 2099200 67108863 65009664 31G 8e Linux LVM
Disk /dev/mapper/pve-vm--109--disk--0: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x000a4533
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--109--disk--0-part1 * 2048 2099199 2097152 1G 83 Linux
/dev/mapper/pve-vm--109--disk--0-part2 2099200 67108863 65009664 31G 8e Linux LVM
Disk /dev/mapper/pve-vm--110--disk--0: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x000a4533
Device Boot Start End Sectors Size Id Type
/dev/mapper/pve-vm--110--disk--0-part1 * 2048 2099199 2097152 1G 83 Linux
/dev/mapper/pve-vm--110--disk--0-part2 2099200 67108863 65009664 31G 8e Linux LVM
root@test:~# grep 'cpu cores' /proc/cpuinfo | tail -1