!["무료" 옵션과 분리되어 경우에 따라 잘못된 토큰이 발생함](https://rvso.com/image/76406/%22%EB%AC%B4%EB%A3%8C%22%20%EC%98%B5%EC%85%98%EA%B3%BC%20%EB%B6%84%EB%A6%AC%EB%90%98%EC%96%B4%20%EA%B2%BD%EC%9A%B0%EC%97%90%20%EB%94%B0%EB%9D%BC%20%EC%9E%98%EB%AA%BB%EB%90%9C%20%ED%86%A0%ED%81%B0%EC%9D%B4%20%EB%B0%9C%EC%83%9D%ED%95%A8.png)
디스크 끝에 할당되지 않은 공간(파티션에서 사용되지 않음)이 있는 경우 "무료" 옵션으로 분할을 실행하면 이 오류가 발생합니다.
[root@sprintlab423vm4 ~]# parted /dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:1:0 unit MB print free
Error: The backup GPT table is not at the end of the disk, as it should be. This might mean that another operating system believes the disk is smaller. Fix, by
moving the backup to the end (and removing the old backup)?
parted: invalid token: free
Fix/Ignore/Cancel? Ignore
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra 20971520 blocks) or continue with the
current setting?
Fix/Ignore? Ignore
Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 783832MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1.05MB 773093MB 773092MB primary
[root@sprintlab423vm4 ~]# rpm -qa | grep parted
parted-2.1-25.el6.x86_64
디스크가 파티션을 통해 완전히 할당된 것으로 의심되는 다른 경우에도 동일한 명령이 작동합니다.(경고가 표시되지 않음)
[root@blrvse12vm04 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
[root@blrvse12vm04 ~]# parted /dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0 unit MB print free
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 102005MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
0.03MB 1.05MB 1.02MB Free Space
1 1.05MB 158MB 157MB primary ext4 boot
2 158MB 91268MB 91110MB primary lvm
91268MB 102005MB 10737MB Free Space
[root@blrvse12vm04 ~]# rpm -qa | grep parted
parted-2.1-29.el6.x86_64
할당되지 않은 공간에 대한 경고를 내보낼 때 "여유"를 인식하지 못하는 이유는 무엇입니까?