xenserver 安装新硬盘_xenserver挂载新硬盘
注意:新加硬盘请不要加入raid,否则不认盘
一:
1.1:查看磁盘列表
fdisk -l
[root@xenserver zz]# fdisk -l
Disk /dev/sdb: 7999.4 GB, 7999376588800 bytes, 15623782400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4294967295 2147483647+ ee GPT
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0000023f
Device Boot Start End Blocks Id System
Disk /dev/mapper/VG_XenStorage--342bacfc--f135--104c--bd2b--9963ffa9b0bb-MGT: 4 MB, 4194304 bytes, 8192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
1.2:建立分区
fdisk /dev/sda
[root@xenserver zz]# fdisk /dev/sda
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
g create a new empty GPT partition table
G create an IRIX (SGI) partition table
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p):
Using default response p
Partition number (1-4, default 1):
First sector (2048-3907029167, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-3907029167, default 3907029167):
Using default value 3907029167
Partition 1 of type Linux and of size 1.8 TiB is set
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
g create a new empty GPT partition table
G create an IRIX (SGI) partition table
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
1.3:格式化分区
mkfs.ext4 /dev/sda
[root@xenserver zz]# mkfs.ext4 /dev/sda
mke2fs 1.42.9 (28-Dec-2013)
/dev/sda is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
122101760 inodes, 488378646 blocks
24418932 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2636120064
14905 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@xenserver zz]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 120K 2.0G 1% /dev/shm
tmpfs 2.0G 1.5M 2.0G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sdb1 18G 2.1G 15G 13% /
xenstore 2.0G 0 2.0G 0% /var/lib/xenstored
/dev/loop0 45M 45M 0 100% /var/xen/xc-install
/dev/sdb5 3.9G 245M 3.4G 7% /var/log
tmpfs 393M 0 393M 0% /run/user/0
[root@xenserver zz]# fdisk -l
Disk /dev/sdb: 7999.4 GB, 7999376588800 bytes, 15623782400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4294967295 2147483647+ ee GPT
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/VG_XenStorage--342bacfc--f135--104c--bd2b--9963ffa9b0bb-MGT: 4 MB, 4194304 bytes, 8192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
1.4:创建挂载点
mkdir /data
1.5:挂载
mount /dev/sda /data
[root@xenserver /]# mount /dev/sda /data
[root@xenserver /]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 120K 2.0G 1% /dev/shm
tmpfs 2.0G 1.5M 2.0G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sdb1 18G 2.1G 15G 13% /
xenstore 2.0G 0 2.0G 0% /var/lib/xenstored
/dev/loop0 45M 45M 0 100% /var/xen/xc-install
/dev/sdb5 3.9G 246M 3.4G 7% /var/log
tmpfs 393M 0 393M 0% /run/user/0
/dev/sda 1.8T 77M 1.7T 1% /data
1.6:开机自动挂载
vim /etc/fstab
添加
/dev/sda /data ext4 defaults 0 0
LABEL=root-gjnvrn / ext3 defaults 1 1
LABEL=swap-gjnvrn swap swap defaults 0 0
LABEL=logs-gjnvrn /var/log ext3 defaults 0 2
/opt/xensource/packages/iso/XenCenter.iso /var/xen/xc-install iso9660 loop,ro 0 0
/dev/sda /data ext4 defaults 0 0
感谢:
https://jingyan.baidu.com/article/a681b0de5b46db3b184346fc.html
xenserver 安装新硬盘_xenserver挂载新硬盘相关推荐
- centos7扫描新硬盘_centos7 挂载新硬盘
1.查看硬盘# fdisk -l 发现硬盘为/dev/sdb 大小4T 2.如果此硬盘以前有过分区,则先对磁盘格式化:# mkfs -t ext4 /dev/sdb 此命令会对整个磁盘格式化 3.对新 ...
- xenserver 安装新硬盘_xenserver 添加本地硬盘
系统:XenServer7.4 安装XenSserver7.4后,Local Storage,挂载的盘过小,需要增加一块硬盘进行扩容. 操作如下: 首先获取 host-uuid [root@xense ...
- xenserver 安装新硬盘_xenserver 添加和卸载硬盘
最近在浪潮服务器上安了xenserver系统,创建虚拟机,没注意磁盘超负载就重启了服务导致各种坑,一言难尽,忧伤逆流成河啊,所以准备将各种操作整理总结记录下,持续更新ing~~ 查看是否分区 cat ...
- xenserver 安装新硬盘_怎么为为 XenServer 添加新磁盘
要在XenServer主机上安装一台虚拟机有三种方法--从顶部的菜单栏安装:在AC上部右击主机安装:从AC上部的任务栏安装.当选择安装虚拟机时,在标签窗口会出现第五个标签--"安装XenVM ...
- vmware添加新硬盘 挂载新硬盘 硬盘扩容
vmware添加新硬盘 挂载新硬盘 硬盘扩容 平时都用虚拟机做实验,做一些linux方面的开发应用,但是很烦人的是经常遇到预先装好的linux虚拟机的硬盘空间过小 现在好多软件都没法安装了.自己重新装 ...
- CentOS添加并挂载新硬盘
1.查看当前硬盘使用状况: [test@master Desktop]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 13G ...
- Linux挂载新加硬盘
1.安装完新硬盘后 输入命令su进入root模式后 终端输入指令 fdisk -l查看当前硬盘状态 可寻找到新加磁盘状态: 图中显示了硬盘但并未分区 2.添加新分区 fdisk /dev/sda 按照 ...
- centos7中通过LVM挂载新硬盘
系统环境:centos7 需求:虚机中新增加了两块硬盘如下: 使用fdisk -l 查看当前系统新增的硬盘信息: 需求是:先将 /dev/sdb 硬盘挂载到 /test 目录中,后期如果不够用再将 / ...
- Linux之挂载新的硬盘(超详细!)
在使用linux的过程中,我们可能会出现硬盘容量不够用的情况.这种情况下,就需要考虑下磁盘挂载的问题了.下面小菌为大家归纳了挂载磁盘的详细步骤和需要注意的事项. 目录 添加硬盘 分区 格式化 挂载 总 ...
最新文章
- 【微服务架构】SpringCloud之Feign
- 深入微服务 API 网关之架构实践篇
- 【OH】Oracle软件安装需要的软件包(官方文档)
- java 日志输出 上下文_java – 使用ServletContextListener和SLF4J在contextDestroyed上没有日志输出...
- transform与fit_transform的区别
- Left 4 Dead升级补丁总汇(3663-3986)
- c#: 协变和逆变深度解析
- Entity Framework Core 2.0 使用代码进行自动迁移
- 作者:寇纲(1975-),男,博士,西南财经大学工商管理学院教授、博士生导师、执行院长...
- Flutter基础—定位对齐之对齐
- 用十句简单英语激活你的口语
- 实名认证 芝麻认证 人脸识别 集成
- 服务器红帽操作系统安装,怎么安装red hat操作系统
- 【秋钓皮皮】 奔跑吧,皮皮!(有图了)
- 读《哈佛情商课》有感
- lodop设置html字体大小无效,LODOP设置纸张无效问题
- AntDB基于WAL日志的DML数据闪回实现
- 如何管理自己的时间?
- 2019中国(深圳)IT领袖峰会大咖云集 引爆IT朋友圈
- PCIe转28串口8串口CH384设计注意事项