1..安装远程控制卡
2.开机后按ctrl + e进入远程控制卡
iDRAC6 LAN.......On (开启远程控制卡)
LAN Parameters:
(1).NIC Selection :选择独立或集成的远程控制卡,Dedicated(独立),share(集成)
(2).IPV4 Address...(IP地址),一般都是静态的
Subnet Mask...(子网掩码)
Default Gateway...(网关)
(3).LAN UserConfiguration(配置用户)
Account User Name ...(用户名)
Enter Password...()密码
Confirm Password ...
3.在运维电脑上登陆远程服务器控制卡
(1).在电脑上安装 jdk-6u2-windows-i586-p编程开发.EXE
(2).在IE地址栏输入"https://ip[服务器IP地址]"进入配置dell界面
系统-控制台/介质-(虚拟控制台)已启用(是)-插件类型(java)-(虚拟介质)状况(附加)-应用-下载插件(用刚下载的jdk软件打开)-连接远程服务器
4#.设置radio级别( ctrl + r )
No Configuration Present !(按F2选择),安装提示-Create New VD-安装提示完成
5.磁盘分区(启动Linux)
[root@centos7 ~]# fdisk -l(查看硬盘信息)
Disk /dev/sda: 10.7 GB, 10737418240 bytes, 20971520 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: 0x000b5bb9
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 411647 204800 83 Linux
/dev/sda2 411648 2508799 1048576 82 Linux swap / Solaris
/dev/sda3 2508800 20971519 9231360 83 Linux
Disk /dev/sdb: 213 MB, 213909504 bytes, 417792 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/sdc: 213 MB, 213909504 bytes, 417792 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
[root@centos7 ~]# fdisk -l|grep 'sd[a-d]'
Disk /dev/sda: 10.7 GB, 10737418240 bytes, 20971520 sectors
/dev/sda1 * 2048 411647 204800 83 Linux
/dev/sda2 411648 2508799 1048576 82 Linux swap / Solaris
/dev/sda3 2508800 20971519 9231360 83 Linux
Disk /dev/sdb: 213 MB, 213909504 bytes, 417792 sectors
Disk /dev/sdc: 213 MB, 213909504 bytes, 417792 sectors
fdisk:(MBR分区表)支持小于2TB磁盘
parted:(GPT分区表)支持大于2TB磁盘
p: print显示磁盘分区信息
n:new 创建磁盘分区
d:delete 删除
w: 保存并退出
[root@centos7 ~]# fdisk /dev/sdb
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.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x68ff4c51.
Command (m for help): p (显示磁盘分区信息)
Disk /dev/sdb: 213 MB, 213909504 bytes, 417792 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: 0x68ff4c51
Device Boot Start End Blocks Id System
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-417791, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-417791, default 417791):
Using default value 417791
Partition 1 of type Linux and of size 203 MiB is set
Command (m for help): w(保存)
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@centos7 ~]# ll /dev/sdb*
brw-rw---- 1 root disk 8, 16 Aug 3 22:44 /dev/sdb
brw-rw---- 1 root disk 8, 17 Aug 3 22:44 /dev/sdb1
6.创建文件系统(格式化)
[root@centos7 ~]# mkfs.xfs /dev/sdb1
meta-data=/dev/sdb1 isize=512 agcount=4, agsize=12992 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=51968, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=855, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
7.挂载硬盘
[root@centos7 ~]# mkdir -p /data(创建磁盘入口)
[root@centos7 ~]# mount /dev/sdb1 /data
8.检查
[root@centos7 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 8.8G 1.8G 7.0G 21% /
devtmpfs 476M 0 476M 0% /dev
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 487M 7.7M 479M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
/dev/sda1 197M 105M 93M 54% /boot
tmpfs 98M 0 98M 0% /run/user/0
/dev/sdb1 200M 11M 190M 6% /data
9.永久挂载
1.mount命令写入到/etc/rc.local(开机自启动)
2.安装规则写入到/etc/fstab
[root@centos7 ~]# blkid(查看设备对应UID)
/dev/sda1: UUID="de6cdbf0-7d5a-475a-bb51-cde7e0627e06" TYPE="xfs"
/dev/sda2: UUID="0354a10b-4471-4fd4-94ff-d8d802206a31" TYPE="swap"
/dev/sda3: UUID="4dad89b5-9401-42d9-9685-0d9093647979" TYPE="xfs"
/dev/sdb1: UUID="1e5168bf-a2b1-4d6d-a73b-8e025452116a" TYPE="xfs"
/dev/sr0: UUID="2018-11-25-23-54-16-00" LABEL="CentOS 7 x86_64" TYPE="iso9660" PTTYPE="dos"
[root@centos7 ~]# vim /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Mar 26 15:31:31 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=4dad89b5-9401-42d9-9685-0d9093647979 / xfs defaults 0 0
UUID=de6cdbf0-7d5a-475a-bb51-cde7e0627e06 /boot xfs defaults 0 0
UUID=0354a10b-4471-4fd4-94ff-d8d802206a31 swap swap defaults 0 0
/dev/sdb1 /data xfs defaults 0 0(第一个0表示备份,第二个0表示检查)
检查是否成功挂载
[root@centos7 ~]# umount /data
[root@centos7 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 8.8G 1.8G 7.0G 21% /
devtmpfs 476M 0 476M 0% /dev
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 487M 7.7M 479M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
/dev/sda1 197M 105M 93M 54% /boot
tmpfs 98M 0 98M 0% /run/user/0
[root@centos7 ~]# mount -a(根据/etc/fstab信息挂载所有设备)
[root@centos7 ~]# df -h(查看磁盘使用情况)
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 8.8G 1.8G 7.0G 21% /
devtmpfs 476M 0 476M 0% /dev
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 487M 7.7M 479M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
/dev/sda1 197M 105M 93M 54% /boot
tmpfs 98M 0 98M 0% /run/user/0
/dev/sdb1 200M 11M 190M 6% /data
10.云服务器增加swap(默认是没有的)
查看swap
[root@Centos64 ~]# free -h
total used free shared buff/cache available
Mem: 972M 140M 643M 7.7M 189M 651M
Swap: 799M 0B 799M
创建指定大小(500M)的文件
[root@Centos64 ~]# dd if=/dev/zero of=/tmp/500m bs=1M count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 1.77195 s, 296 MB/s
if:表示input file,输入文件
of:表示output file,输出文件
bs:表示block size,每次复制多大的文件(块大小)
count:表示次数
[root@Centos64 ~]# cd /tmp
[root@Centos64 tmp]# ls
500m
ks-script-sqlIbG
systemd-private-42cda662aebf4ce4908bed9856d3ba64-chronyd.service-UJTw7B
vmware-root_6221-1690178113
yum.log
[root@Centos64 tmp]# file 500m
500m: data(数据文件)
将500m改变成swap(格式化)
[root@Centos64 tmp]# mkswap /tmp/500m
Setting up swapspace version 1, size = 511996 KiB
no label, UUID=c28cdc5c-9618-4788-91c5-1e0d383fe048
[root@Centos64 tmp]# file /tmp/500m
/tmp/500m: Linux/i386 swap file (new style), version 1 (4K pages),
size 127999 pages, no label, UUID=c28cdc5c-9618-4788-91c5-1e0d383fe048
生效挂载
[root@Centos64 ~]# free -h
total used free shared buff/cache available
Mem: 972M 140M 643M 7.7M 189M 651M
Swap: 799M 0B 799M
[root@Centos64 tmp]# swapon /tmp/500m
swapon: /tmp/500m: insecure permissions 0644, 0600 suggested.
[root@Centos64 tmp]# free -h
total used free shared buff/cache available
Mem: 972M 140M 124M 7.7M 707M 643M
Swap: 1.3G 0B 1.3G
显示swap的组成
[root@Centos64 tmp]# swapon -s
Filename Type Size Used Priority
/dev/sda2 partition 819196 0 -2
/tmp/500m file 511996 0 -3
永久挂载
[root@Centos64 tmp]# vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sun Aug 4 10:41:10 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
UUID=37253269-2f21-49ad-9621-4e928674487d swap swap defaults 0 0
/tmp/500m swap defaults 0 0
关闭swap后加入的分区:swapoff /tmp/500m
特殊文件系统tmpfs,把数据写入到这个文件系统相当于写入到了内存中,用户读取文件更快
[root@Centos64 tmp]# mount -t tmpfs -o size=500m tmpfs /mem
[root@Centos64 tmp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.1G 2.0G 7.1G 22% /
devtmpfs 476M 0 476M 0% /dev
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 487M 7.7M 479M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
/dev/sda1 197M 105M 93M 54% /boot
tmpfs 98M 0 98M 0% /run/user/0
tmpfs 500M 0 500M 0% /mem
-t:指定类型
-o:指定大小
dd还可以测速
[root@Centos64 tmp]# dd if=/dev/zero of=/mem/600m bs=1M count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 1.39772 s, 375 MB/s(速度)
[root@Centos64 tmp]# dd if=/dev/zero of=/mem/600m bs=1M count=600
dd: error writing ‘/mem/600m’: No space left on device
501+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 0.250703 s, 2.1 GB/s(速度)
永久生效
[root@Centos64 tmp]# vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sun Aug 4 10:41:10 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
UUID=37253269-2f21-49ad-9621-4e928674487d swap swap defaults 0 0
/tmp/500m swap defaults 0 0
tmpfs /mem tmpfs size=500m 0 0