Getting errors when running sfdisk to create partitions using sectors
Issue
- As part of the SAN provisioning, we create partitions using sfdisk using the units of 'sectors'. for large disks (19GB), the script works fine. For smaller disks (5.6GB), it fails and reports discrepancies between the C/H/S geometry.
[root@hostname ~]# for L in $( < l.txt ); do echo "1,,L" | sfdisk -L -uS /dev/mapper/$L; done
Environment
- Red Hat Enterprise Linux 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.