【服务器搭建】硬盘挂载

本文执行命令为:abysw blog 硬盘挂载
===================以下为编写内容=================================
_ 项目需求:挂载新硬盘到服务器
_ 操作系统:CentOS Linux release 7.9.2009 (AltArch)
_ CPU:鲲鹏920 48核 2.6GHZ 2路
_ 内存:2T
_ 描述:由于项目需要,新买两个机械硬盘,需要挂载为一个阵列。
=================================================================

其他信息见博客https://abysw.github.io/,加载可能有点慢,以下是截图:

主要内容包括:创建逻辑卷,挂载,删除逻辑卷,重新挂载。

 

 

umount /Urpath

lvremove /dev/vgjenkins/lvjenkins
[root@Yuan-SW-F 2022-06-02 16:23 /]
$ lvremove /dev/vgjenkins/lvjenkins
Do you really want to remove active logical volume vgjenkins/lvjenkins? [y/n]: y
Logical volume “lvjenkins” successfully removed

vgremove vgjenkins
[root@Yuan-SW-F 2022-06-02 16:24 /]
$ vgremove vgjenkins
Volume group “vgjenkins” successfully removed

vgcreate abysw /dev/sda1
vgextend abysw /dev/sdb1

$ vgs
VG #PV #LV #SN Attr VSize VFree
abysw 2 0 0 wz–n- <29.11t <29.11t
centos 1 3 0 wz–n- 445.90g 0

lvcreate -L 29.1T abysw
$ lvcreate -L 29.1T abysw
Rounding up size to full physical extent 29.10 TiB
Logical volume “lvol0” created.
这里我没有输入创建名,默认为lvol0

fdisk -l 找到新创建的盘
Disk /dev/mapper/abysw-lvol0: 31995.8 GB, 31995790884864 bytes, 62491779072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

格式化:
mkfs -t ext4 /dev/mapper/abysw-lvol0

再挂载,搞定了。

  • 题外话:现在国产机器也算不错了,conda也有较好的支持。

posted on 2022-06-02 17:02  Yuan-SW-F(abysw)  阅读(178)  评论(0编辑  收藏  举报

导航