The size of this disk is 153.7 TiB (168959982698496 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT)
고용량 하드 Raid 로 구성을 했는데 Partition Table: GPT 방식으로 만들어야 한다 안그러면 인식이 안된다.
# parted /dev/sdb
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to
continue?
Yes/No? yes
(parted) print
Model: AVAGO XF-SAS3508 (scsi)
Disk /dev/sdb: 169TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
(parted)
(parted)
Information: You may need to update /etc/fstab.
[root@localhost /]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition number (1-128, default 1):
First sector (34-329999966174, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-329999966174, default 329999966174):
Created a new partition 1 of type 'Linux filesystem' and of size 153.7 TiB.
Command (m for help): p
Disk /dev/sdb: 153.7 TiB, 168959982698496 bytes, 329999966208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 262144 bytes / 1048576 bytes
Disklabel type: gpt
Disk identifier: 8979159D-E6FB-4185-B15D-ABF5678123EB
Device Start End Sectors Size Type
/dev/sdb1 2048 329999966174 329999964127 153.7T Linux filesystem
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost /]# mount /dev/sdb1 /data
mount: /data: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
[root@localhost /]# mkfs.ext4 /dev/sdb
mke2fs 1.45.6 (20-Mar-2020)
Found a gpt partition table in /dev/sdb
Proceed anyway? (y,N) y
Creating filesystem with 41249995776 4k blocks and 2578124800 inodes
Filesystem UUID: fdb6f4f3-0efc-4522-be6f-6f607f2d61e6
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544, 1934917632,
2560000000, 3855122432, 5804752896, 12800000000, 17414258688,
26985857024
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: 0/1258850
done
[root@localhost /]#
[root@localhost /]# mount /dev/sdb /data
[root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 11M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/mapper/rl-root 381G 12G 369G 4% /
/dev/sda2 1014M 261M 754M 26% /boot
/dev/sda1 599M 5.8M 594M 1% /boot/efi
tmpfs 6.3G 20K 6.3G 1% /run/user/42
tmpfs 6.3G 0 6.3G 0% /run/user/0
/dev/sdb 154T 24K 146T 1% /data
[root@localhost /]#
이렇게 하면 정상적으로 154T 인식된것을 확인 할 수 있다.