Files
2026-05-19 14:28:44 +08:00

19 lines
999 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

root@ecs-98418537-002:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 100G 0 disk
└─sda1 8:1 0 100G 0 part /
sdb 8:16 0 1T 0 disk
└─sdb1 8:17 0 1024G 0 part
└─datavg-lvdata 253:0 0 1024G 0 lvm
sr0 11:0 1 474K 0 rom
root@ecs-98418537-002:~# df -TH
Filesystem Type Size Used Avail Use% Mounted on
tmpfs tmpfs 14G 1.2M 14G 1% /run
/dev/sda1 ext4 106G 19G 83G 19% /
tmpfs tmpfs 68G 0 68G 0% /dev/shm
tmpfs tmpfs 5.3M 0 5.3M 0% /run/lock
tmpfs tmpfs 14G 0 14G 0% /run/user/0
你是一名出色的shell开发专家我有一台服务器的磁盘如上面所示我发现sdb的磁盘并没有实际的挂载点。
我现在需要将sdb整个磁盘格式化为 lvm的格式然后挂载到 /var/lib/docker目录请你给出一个shell脚本能够实现上面的需求