How to create multiple raw partition from single raw partition ?

[root@racdb1 ~]# fdisk /dev/mapper/36f84abf1005fc774000d6e8b00000000

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): p

Disk /dev/mapper/36f84abf1005fc774000d6e8b00000000: 1724.4 GB, 1724429369344 bytes
255 heads, 63 sectors/track, 209649 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: 0x56b0f8c7

                                         Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-209649, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-209649, default 209649): +10G

Command (m for help): p

Disk /dev/mapper/36f84abf1005fc774000d6e8b00000000: 1724.4 GB, 1724429369344 bytes
255 heads, 63 sectors/track, 209649 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: 0x56b0f8c7

                                         Device Boot      Start         End      Blocks   Id  System
/dev/mapper/36f84abf1005fc774000d6e8b00000000p1               1        1306    10490413+  83  Linux

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1307-209649, default 1307):
Using default value 1307
Last cylinder, +cylinders or +size{K,M,G} (1307-209649, default 209649): +10G 

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (2613-209649, default 2613):
Using default value 2613
Last cylinder, +cylinders or +size{K,M,G} (2613-209649, default 209649): +10G

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Selected partition 4
First cylinder (3919-209649, default 3919):
Using default value 3919
Last cylinder, +cylinders or +size{K,M,G} (3919-209649, default 209649):
Using default value 209649

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@racdb1 ~]# partprobe
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sde (Device or resource busy).  As a result, it may not reflect all of your changes until after reboot.
[root@racdb1 ~]#
[root@racdb1 ~]#
[root@racdb1 ~]#
[root@racdb1 ~]# fdisk /dev/mapper/36f84abf1005fc774000d6e8b00000000

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): p

Disk /dev/mapper/36f84abf1005fc774000d6e8b00000000: 1724.4 GB, 1724429369344 bytes
255 heads, 63 sectors/track, 209649 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: 0x56b0f8c7

                                         Device Boot      Start         End      Blocks   Id  System
/dev/mapper/36f84abf1005fc774000d6e8b00000000p1               1        1306    10490413+  83  Linux
/dev/mapper/36f84abf1005fc774000d6e8b00000000p2            1307        2612    10490445   83  Linux
/dev/mapper/36f84abf1005fc774000d6e8b00000000p3            2613        3918    10490445   83  Linux
/dev/mapper/36f84abf1005fc774000d6e8b00000000p4            3919      209649  1652534257+  83  Linux

Command (m for help):
Command (m for help):
Command (m for help):
Command (m for help): q
[root@racdb1 ~]#
[root@racdb1 ~]# id
uid=0(root) gid=0(root) groups=0(root),487(sfcb)
[root@racdb1 ~]#
[root@racdb1 ~]#
[root@racdb1 ~]# fdisk -l

Disk /dev/sda: 1724.4 GB, 1724429369344 bytes
255 heads, 63 sectors/track, 209649 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: 0x56b0f8c7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1306    10490413+  83  Linux
/dev/sda2            1307        2612    10490445   83  Linux
/dev/sda3            2613        3918    10490445   83  Linux
/dev/sda4            3919      209649  1652534257+  83  Linux

Disk /dev/sde: 598.0 GB, 597998698496 bytes
255 heads, 63 sectors/track, 72702 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0008c0af

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sde2              26       29347   235520000   83  Linux
/dev/sde3           29347       34446    40960000   83  Linux
/dev/sde4           34446       72703   307297280    5  Extended
/dev/sde5           34446       38621    33531904   83  Linux
/dev/sde6           38621       41808    25600000   83  Linux
/dev/sde7           41808       43897    16777216   82  Linux swap / Solaris
/dev/sde8           43897       72703   231384064   83  Linux

Disk /dev/sdc: 1724.4 GB, 1724429369344 bytes
255 heads, 63 sectors/track, 209649 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: 0x56b0f8c7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        1306    10490413+  83  Linux
/dev/sdc2            1307        2612    10490445   83  Linux
/dev/sdc3            2613        3918    10490445   83  Linux
/dev/sdc4            3919      209649  1652534257+  83  Linux

Disk /dev/sdb: 1724.4 GB, 1724429369344 bytes
255 heads, 63 sectors/track, 209649 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: 0x56b0f8c7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1306    10490413+  83  Linux
/dev/sdb2            1307        2612    10490445   83  Linux
/dev/sdb3            2613        3918    10490445   83  Linux
/dev/sdb4            3919      209649  1652534257+  83  Linux

Disk /dev/sdd: 1724.4 GB, 1724429369344 bytes
255 heads, 63 sectors/track, 209649 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: 0x56b0f8c7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        1306    10490413+  83  Linux
/dev/sdd2            1307        2612    10490445   83  Linux
/dev/sdd3            2613        3918    10490445   83  Linux
/dev/sdd4            3919      209649  1652534257+  83  Linux

Disk /dev/mapper/36f84abf1005fc774000d6e8b00000000: 1724.4 GB, 1724429369344 bytes
255 heads, 63 sectors/track, 209649 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: 0x56b0f8c7

                                         Device Boot      Start         End      Blocks   Id  System
/dev/mapper/36f84abf1005fc774000d6e8b00000000p1               1        1306    10490413+  83  Linux
/dev/mapper/36f84abf1005fc774000d6e8b00000000p2            1307        2612    10490445   83  Linux
/dev/mapper/36f84abf1005fc774000d6e8b00000000p3            2613        3918    10490445   83  Linux
/dev/mapper/36f84abf1005fc774000d6e8b00000000p4            3919      209649  1652534257+  83  Linux

Disk /dev/mapper/36f84abf1005fc774000d6e8b00000000p1: 10.7 GB, 10742183424 bytes
255 heads, 63 sectors/track, 1305 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


Disk /dev/mapper/36f84abf1005fc774000d6e8b00000000p2: 10.7 GB, 10742215680 bytes
255 heads, 63 sectors/track, 1306 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


Disk /dev/mapper/36f84abf1005fc774000d6e8b00000000p3: 10.7 GB, 10742215680 bytes
255 heads, 63 sectors/track, 1306 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


Disk /dev/mapper/36f84abf1005fc774000d6e8b00000000p4: 1692.2 GB, 1692195079680 bytes
255 heads, 63 sectors/track, 205731 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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s