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
how could i do it ?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

Reply With Quote