使用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

 

posted on 2017-02-23 16:56  Digital_life  阅读(5027)  评论(0编辑  收藏  举报

导航