Results 1 to 1 of 1

Thread: add new partition under raid-1 array

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default add new partition under raid-1 array

    i have small /tmp partition , and i want to create new partition with size 10 G.B ext3 /tmp than current one , i have two hard disk on raid-1 array

    Code:
    # mdadm --query --detail /dev/md0
    /dev/md0:
            Version : 0.90
      Creation Time : Sat May 26 19:45:25 2012
         Raid Level : raid1
         Array Size : 33553344 (32.00 GiB 34.36 GB)
      Used Dev Size : 33553344 (32.00 GiB 34.36 GB)
       Raid Devices : 2
      Total Devices : 2
    Preferred Minor : 0
        Persistence : Superblock is persistent
    
        Update Time : Tue Nov 13 05:09:09 2012
              State : clean
     Active Devices : 2
    Working Devices : 2
     Failed Devices : 0
      Spare Devices : 0
    
               UUID : 95977b4c:6be67738:776c2c25:004bd7b2
             Events : 0.400
    
        Number   Major   Minor   RaidDevice State
           0       8        1        0      active sync   /dev/sda1
           1       8       17        1      active sync   /dev/sdb1
    
    
    
    
    
    root@server [~]# fdisk -l
    
    WARNING: The size of this disk is 3.0 TB (3000592982016 bytes).
    DOS partition table format can not be used on drives for volumes
    larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
    partition table format (GPT).
    
    
    Disk /dev/sda: 3000.5 GB, 3000592982016 bytes
    64 heads, 32 sectors/track, 2861588 cylinders
    Units = cylinders of 2048 * 512 = 1048576 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               2       32768    33553408   fd  Linux raid autodetect
    /dev/sda2           32769       33280      524288   fd  Linux raid autodetect
    /dev/sda3           33281     1081856  1073741824   fd  Linux raid autodetect
    /dev/sda4         1081857     2861588  1822445568   85  Linux extended
    /dev/sda5         1081857     2861588  1822445567+  fd  Linux raid autodetect
    
    WARNING: The size of this disk is 3.0 TB (3000592982016 bytes).
    DOS partition table format can not be used on drives for volumes
    larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
    partition table format (GPT).
    
    
    Disk /dev/sdb: 3000.5 GB, 3000592982016 bytes
    64 heads, 32 sectors/track, 2861588 cylinders
    Units = cylinders of 2048 * 512 = 1048576 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               2       32768    33553408   fd  Linux raid autodetect
    /dev/sdb2           32769       33280      524288   fd  Linux raid autodetect
    /dev/sdb3           33281     1081856  1073741824   fd  Linux raid autodetect
    /dev/sdb4         1081857     2861588  1822445568   85  Linux extended
    /dev/sdb5         1081857     2861588  1822445567+  fd  Linux raid autodetect
    
    Disk /dev/md2: 1099.5 GB, 1099511562240 bytes
    2 heads, 4 sectors/track, 268435440 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes
    
    Disk /dev/md2 doesn't contain a valid partition table
    
    Disk /dev/md3: 1866.1 GB, 1866184130560 bytes
    2 heads, 4 sectors/track, 455611360 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes
    
    Disk /dev/md3 doesn't contain a valid partition table
    
    Disk /dev/md1: 536 MB, 536805376 bytes
    2 heads, 4 sectors/track, 131056 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes
    
    Disk /dev/md1 doesn't contain a valid partition table
    
    Disk /dev/md0: 34.3 GB, 34358624256 bytes
    2 heads, 4 sectors/track, 8388336 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes
    
    Disk /dev/md0 doesn't contain a valid partition table
    
    
    root@server [~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/md2             1016G  779G  186G  81% /
    /dev/md1              496M   42M  429M   9% /boot
    /dev/md3              1.7T  165G  1.5T  11% /home
    /usr/tmpDSK           1.9G   42M  1.8G   3% /tmp
    how could i do it ?
    Last edited by iLinux85; 14th November 2012 at 07:13 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Store data to an Array
    By ramneim in forum Shell scripting
    Replies: 10
    Last Post: 27th August 2012, 12:54 PM
  2. Linux Software Raid Disk / Partition Fail
    By patel.rocky9 in forum CentOS / RHEL / Fedora
    Replies: 3
    Last Post: 4th March 2011, 05:53 PM
  3. How to add a logical partition to an extended partition?
    By jester in forum CentOS / RHEL / Fedora
    Replies: 3
    Last Post: 17th December 2010, 04:32 PM
  4. Process Killing -9 vs -10 and RAID 0+1 vs RAID 1+0
    By amsreeku in forum Linux software
    Replies: 1
    Last Post: 7th July 2008, 03:44 PM
  5. Difference between Linux RAID 0, RAID 1 and RAID 5
    By jerry in forum Linux software
    Replies: 3
    Last Post: 26th June 2006, 06:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41