天天看点

IBM X3850 X6 raid组添加硬盘扩容操作步骤+linux服务器操作

服务器操作参考PDF  链接:https://pan.baidu.com/s/1bYI3qJ_RntqNZ4ehP9AIiQ 密码:31wn  (注意加硬盘的时候,最好机器关机断电之后再插盘)我这边重构的时候把raid1改成了raid5,没有问题。

重构100%之后,进linux系统里操作(分区大于2T,用parted):

parted网上都有,我这边也引用别人操作,会用fdisk,基本上都能看懂:

[[email protected] ~]# parted /dev/sdb  #进入/dev/sdb进行分区 GNU Parted 2.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mktable New disk label type? New disk label type? gpt  #选择分区格式为gpt Warning: 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? y  #输入“y”,表示确定,进行下一步 (parted) mkpart #在命令行输出分区指令 Partition name?  []? primary  #分区类型为主分区,这是给分区起个名字,你可以自定义的,可以不用写我这里的参数,这里没有扩展分区一说,都是主分区。 File system type?  [ext2]? ext4  #设置文件系统为ext4 Start? 0  #设置起始分配位置 End? 2G   #设置结束分配位置 Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? i  #输入i,忽略此提示即可 (parted) mkpart  #继续分区 Partition name?  []? primary  #自定义名称 File system type?  [ext2]? ext4  #指定文件系统格式为ext4 Start? 2G  #由于上块磁盘分区的结束位置是2G,所以我们从最2G开始分配即可 End? 5G   #定义结束位置为5G (parted) mkpart  #继续分区 Partition name?  []? primary  #自己自定义一个名字 File system type?  [ext2]? ext4  #设置文件系统为ext4 Start? 5G  #设置卷标的起始位置 End? 100%   #输入100%,表示将剩下的所有容量都分配给该分区. (parted) p  #打印分区结果 Model: VMware, VMware Virtual S (scsi) Disk /dev/sdb: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: gpt   Number  Start   End     Size    File system  Name     Flags  1      17.4kB  2000MB  2000MB               primary  2      2001MB  5000MB  2999MB               primary  3      5000MB  21.5GB  16.5GB               primary   (parted) quit  #退出分区模式,不需要输入保存的按钮,退出来它会自动保存分区表信息。 Information: You may need to update /etc/fstab.

转载于:https://www.cnblogs.com/lp19910807/p/9268367.html

继续阅读