Advertisement

在centos7系统上使用parted命令进行LVM分区挂盘

阅读量:

进入parted操作步骤

复制代码
 [root@host-10-14-65-165 mapper]# parted /dev/vdb

    
  
    
 GNU Parted 3.1
    
  
    
 Using /dev/vdb
    
  
    
 Welcome to GNU Parted! Type 'help' to view a list of commands.
    
    
    
    
    AI写代码R
    
    运行

② 创建新的磁盘标签

复制代码
 (parted) mklabel

    
  
    
 New disk label type? gpt
    
 Warning: The existing disk label on /dev/vdb will be destroyed and all data on this disk will be lost. Do you want to continue?
    
  
    
 Yes/No? yes
    
  
    
 (parted) mkpart    #做一个分区
    
  
    
 Partition name? []? #直接回车
    
  
    
 File syste

全部评论 (0)

还没有任何评论哟~