RE: fdisk versus parted

From: Amaral, Rui <Rui.Amaral_at_tdsecurities.com>
Date: Thu, 7 Feb 2013 09:50:55 -0500
Message-ID: <CC45762506E4C84A8612307613CDCB2564693E76_at_EX7T2-SV08.TDBFG.COM>



Look in the caveats section:

https://blogs.oracle.com/dlutz/entry/partition_alignment_guidelines_for_unified

Rui Amaral
Senior Oracle DBA
Oracle Database Engineering, TDBFG

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Walker, Jed S Sent: Thursday, February 07, 2013 9:33 AM To: oracle-l_at_freelists.org
Subject: fdisk versus parted

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-l



NOTICE: Confidential message which may be privileged. Unauthorized use/disclosure prohibited. If received in error, please go to www.td.com/legal for instructions.
AVIS : Message confidentiel dont le contenu peut être privilégié. Utilisation/divulgation interdites sans permission. Si reçu par erreur, prière d'aller au www.td.com/francais/avis_juridique pour des instructions.
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Feb 07 2013 - 15:50:55 CET

Original text of this message