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 

좋은 웹페이지 즐겨찾기