fdisk versus parted
Date: Thu, 7 Feb 2013 14:32:31 +0000
Message-ID: <BAA6E28B6241F046AED1E62D8697516C6F60AE8A_at_COPDCEXMB08.cable.comcast.com>
We have a company document that says to not use fdisk to partition disks for Oracle. It says to use parted or sfdisk. It says you can't guarantee alignment with fdisk. My best guess is they didn't know about changing fdisk to sector mode, or maybe the risk that you miss it on one, but we are not sure. While building a new system I partitioned one LUN with fdisk and one with parted (just for testing). Using fdisk they both show the same partition, except for parted ended the partition earlier than fdisk, but if I'm looking correctly not at an amount that would somehow make a difference. I also checked the previous RAC I built with fdisk and saw the same result for all those partitions as this fdisked one.
If anyone has any insight on this I'd appreciate it.
Here is what fdisk shows on the partitions. ORADATA01 was fdisk, ORADATA02 was parted. Note the "End" sector. If I'm missing something obvious please let me know.
[root_at_kdb-ch2-a1p ~]# fdisk /dev/mapper/ORADATA01
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to sectors (command 'u').
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): p
Disk /dev/mapper/ORADATA01: 107.4 GB, 107374510080 bytes
255 heads, 63 sectors/track, 13054 cylinders, total 209715840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x215a6aaa
Device Boot Start End Blocks Id System /dev/mapper/ORADATA01p1 2048 209715839 104856896 83 Linux
Command (m for help): q
[root_at_kdb-ch2-a1p ~]# fdisk /dev/mapper/ORADATA02
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to sectors (command 'u').
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): p
Disk /dev/mapper/ORADATA02: 107.4 GB, 107374510080 bytes
255 heads, 63 sectors/track, 13054 cylinders, total 209715840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00007076
Device Boot Start End Blocks Id System /dev/mapper/ORADATA02p1 2048 209713151 104855552 83 Linux
Command (m for help): q
- Jed
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Feb 07 2013 - 15:32:31 CET