My server cannot lose data or shut down
[hanbin@instance-1 ~]$ sudo parted -l
Model: Google PersistentDisk (scsi)
Disk /dev/sda: 252GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name 标志
1 1049kB 211MB 210MB fat16 EFI System Partition 启动
2 211MB 137GB 137GB xfs
[hanbin@instance-1 ~]$ sudo parted /dev/sda
GNU Parted 3.1
使用 /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart
分区编号? 2
错误: Partition /dev/sda2 is being used. You must unmount it before you modify it with Parted.