使用parted創建gpt大分區例子


[root@VM000000518 ~]# parted /dev/xvde 
GNU Parted 2.1
Using /dev/xvde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Error: /dev/xvde: unrecognised disk label                                 
(parted) mklabel gpt                                                      
(parted) print                                                            
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvde: 66.1TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

(parted) mkpart primary 0 15T                                             
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? I                                                          
(parted) mkpart primary 15T 30T                                           
(parted) mkpart primary 30T 45T                                           
(parted) mkpart primary 45T 60T                                           
(parted) mkpart primary 60T -1                                            
(parted) p                                                                
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvde: 66.1TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  15.0TB  15.0TB               primary
 2      15.0TB  30.0TB  15.0TB               primary
 3      30.0TB  45.0TB  15.0TB               primary
 4      45.0TB  60.0TB  15.0TB               primary
 5      60.0TB  66.1TB  6142GB               primary

(parted) quit                                                             
Information: You may need to update /etc/fstab.                           

[root@VM000000518 ~]# blkid

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM