RAID1 with GPT ?

Discussion in 'Technical' started by dipeshmehta, May 5, 2012.

  1. dipeshmehta

    dipeshmehta Member

    Hello,

    I have successfully installed and tested configuring software RAID1 as guided in http://www.howtoforge.com/how-to-se...-system-incl-grub2-configuration-ubuntu-10.04 on my test environment.

    However, my production server is with 2 TB drives, the partitions during installation created GPT. Now fdisk and sfdisk commands do not work with GPT which have been used in the said howto.

    I installed gdisk to deal with, and its almost similar to fdisk, but couldn't find alternative for sfdisk. Then I came to know about a comment by paul at http://www.howtoforge.com/how-to-se...ystem-incl-grub2-configuration-debian-squeeze. I am going to install it again as commented.

    I would like to invite suggestion and other ways of doing the same.

    Dipesh
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What is GPT?
     
  3. dipeshmehta

    dipeshmehta Member

    Code:
    root@GPT-RAID:~# fdisk -l
    
    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
    
    
    Disk /dev/sda: 2199.0 GB, 2199022206976 bytes
    255 heads, 63 sectors/track, 267349 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1      267350  2147482623+  ee  GPT
    

    Code:
    root@GPT-RAID:~# gdisk -l /dev/sda
    GPT fdisk (gdisk) version 0.5.1
    
    Partition table scan:
      MBR: protective
      BSD: not present
      APM: not present
      GPT: present
    
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sda: 4294965248 sectors, 2.0 TiB
    Disk identifier (GUID): D68031F5-9C77-471F-BE42-DADC86F5B8D5
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 4294965214
    Total free space is 4029 sectors (2.0 MiB)
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1            2048          976895   476.0 MiB   EF00
       2          976896        30273535   14.0 GiB    8200
       3        30273536      4294963199   2.0 TiB     0700
    

    http://de.wikipedia.org/wiki/GUID_Partition_Table
     

Share This Page