账号: administrator
密码: 登录密码
无需重启,先在后台挂载,若无法挂载,请确认数据盘的所在区和服务器的所在区是在同一个区。
umount /dev/vdb1
df -lh
fdisk -l
fdisk /dev/vdb
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): d
Selected partition 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1664406, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1664406, default 1664406):
Using default value 1664406
Command (m for help): wq
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@iZ11jtkmz4xZ ~]# e2fsck -f /dev/vdb1
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/vdb1: 2590/26214400 files (39.6% non-contiguous), 92671816/104857570 blocks
[root@iZ11jtkmz4xZ ~]# resize2fs /dev/vdb1
resize2fs 1.41.12 (17-May-2010)
Resizing the filesystem on /dev/vdb1 to 209715148 (4k) blocks.
The filesystem on /dev/vdb1 is now 209715148 blocks long.
[root@iZ11jtkmz4xZ ~]# mount /dev/vdb1 /var/opt
只允许子账号访问某一台服务器:
{
"Version": "1",
"Statement": [
{
"Action": "ecs:*",
"Resource": "acs:ecs:cn-hangzhou:*:*",
"Effect": "Allow"
},
{
"Action": [
"vpc:DescribeVpcs",
"vpc:DescribeVSwitches"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
(KMS地域分布)[https://help.aliyun.com/document_detail/43350.html]
oss: 类似于网盘,但是你可以拿到文件直链。 可以作为网站、app等web应用的: 附件服务器、头像服务器、图片服务器、下载服务器。
cdn: 内容分发,相当于网络传输的高速路。解决机房节点不好访问速度慢的问题。
mount: /dev/vdb1 写保护,将以只读方式挂载
mount: 未知的文件系统类型“(null)”
格式化分区后的磁盘
mkfs.ext4 /dev/vdb1