Linux 에서 대 용량 저장 소 마 운 트
4471 단어 CentOS_6
//
# cat /etc/redhat-release
CentOS release 6.8 (Final)
# uname -r
2.6.32-642.el6.x86_64
//fdisk -l
# fdisk -l
Disk /dev/sdb: 17998.6 GB, 17998597324800 bytes
255 heads, 63 sectors/track, 2188204 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
//
# yum -y install kmod-xfs xfsprogs
# modprobe xfs // xfs
# lsmod |grep xfs // xfs
// parted , ,
# parted /dev/sdb
GNU Parted 2.1
/dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt // gpt
: 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) mkpart primary 0 -1 // 0 -1 , ,
: The resulting partition is not properly aligned for best performance.
/Ignore/ /Cancel? ignore
(parted) p //
Model: DELL PERC H310 (scsi)
Disk /dev/sdb: 18.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name
1 17.4kB 18.0TB 18.0TB primary
(parted) quit // parted
//
# mkfs.xfs /dev/sdb
sdb sdb1
# mkfs.xfs /dev/sdb1 // sdb1 sdb, sdb2....
meta-data=/dev/sdb1 isize=256 agcount=17, agsize=268435455 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=4394188551, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=521728, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
// ,
// ,
# fdisk -l
Disk /dev/sdb: 17998.6 GB, 17998597324800 bytes
255 heads, 63 sectors/track, 2188204 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 267350 2147483647+ ee GPT
// , /home/storage/
# mount /dev/sdb1 /home/storage/
# df -h //
/dev/sdb1 17T 33M 17T 1% /home/storage
//
# echo "mount /dev/sdb1 /home/storage/" >> /etc/rc.local
// fstab
// UUID
# blkid /dev/sdb1
/dev/sdb1: UUID="6a5ebd95-0d5f-4095-be85-42c95a36b079" TYPE="xfs"
# echo "UUID=6a5ebd95-0d5f-4095-be85-42c95a36b079 /home/storage xfs 1 2" >> /etc/fstab
//
//
//
#fdisk -l
// , ?
// fdisk GPT , WARNING
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
// parted
# parted /dev/sdb
GNU Parted 2.1
/dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: DELL PERC H310 (scsi)
Disk /dev/sdb: 24.0TB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system
(parted)
// Partition Table msdos
// mklabel msdos
(parted) mklabel msdos
: 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) quit
// parted, fdisk -l , , parted
// ,
# mkfs.xfs /dev/sdb1
mkfs.xfs: /dev/sdb1 appears to contain an existing filesystem (xfs).
mkfs.xfs: Use the -f option to force overwrite.
// mkfs.xfs /dev/sdb1 xfs
// , -f
# mkfs.xfs -f /dev/sdb1
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Linux 에서 대 용량 저장 소 마 운 트텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.