Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阿里云扩容 #84

Open
yangweijie opened this issue Jan 20, 2020 · 0 comments
Open

阿里云扩容 #84

yangweijie opened this issue Jan 20, 2020 · 0 comments

Comments

@yangweijie
Copy link
Owner

0.Check以下
fdisk -l

1.检查数据
fdisk -lu /dev/[disk] (sdb)
确定是否mbr

fdisk -lu /dev/vdb

2.卸载挂载,如果挂载了的话
umount /dev/[设备盘名] (sdb1)

umount /dev/vdb2

3.删除旧分区
fdisk -u /dev/[disk] (sdb)

fdisk -u /dev/vdb

p
d
p
w

4.新建分区
fdisk -u /dev/[disk] (sdb)
fdisk -u /dev/vdb

p
n
p
default
default
default
w

5.检查
lsblk /dev/[disk] (sdb)

lsblk /dev/vdb

e2fsck -n /dev/[设备盘名] (sdb1)

e2fsck -n /dev/vdb2

partprobe /dev/[disk] (sdb)

partprobe /dev/vdb

e2fsck -f /dev/[设备盘名] (sdb1)

e2fsck -f /dev/vdb2

resize2fs /dev/[设备盘名] (sdb1)

resize2fs /dev/vdb2

6.Final最终
mount /dev/[设备盘名] /alidata

mount /dev/vdb2 /alidata

df -h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant