How to add partition?


 
Thread Tools Search this Thread
Operating Systems Solaris How to add partition?
# 1  
Old 07-28-2011
How to add partition?

Hello.
I want to grow up ufs partition.
Currently i have such confoguration:

Code:
#format
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 7829 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@0,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1t0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c1t0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c1t0d0s3 is currently mounted on /u. Please see umount(1M).
/dev/dsk/c1t0d0s7 is currently mounted on /export/home. Please see umount(1M).

#fdisk
             Total disk size is 10443 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  7831    7831     75
          2                 Solaris2       7832  10441    2610     25

What I have to do to add additional space from this partition 2 to /u ?

Last edited by pludi; 07-28-2011 at 04:40 AM..
# 2  
Old 07-29-2011
As i understand there is
Code:
growfs -M /mount-point /dev/md/rdsk/volume-name

But how i can get name to my second partition?
# 3  
Old 07-29-2011
try to activate the second partition! you cannot use it at the moment because its invisible to the os!
# 4  
Old 07-29-2011
Quote:
Originally Posted by beta17
try to activate the second partition! you cannot use it at the moment because its invisible to the os!
Hmm, and then your system become unbootable. Not the best suggestion.

---------- Post updated at 14:40 ---------- Previous update was at 14:37 ----------

Quote:
Originally Posted by Agat
Code:
                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  7831    7831     75
          2                 Solaris2       7832  10441    2610     25

What I have to do to add additional space from this partition 2 to /u ?
Having more than one partition of type Solaris2 (or Solaris) is unsupported. You might be confusing slices and primary partitions. If you want to make use of your second primary partition, give it a different type, whatever actually, and then the simpler way would be to create a ZFS pool on it.
# 5  
Old 07-30-2011
I deleted second partition, now i have unallocated space at the end of disk.
When i go format - partition - print, i see
Code:
Total disk cylinders available: 7829 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm      80 - 1454       10.53GB    (1375/0/0)  22089375
  1       swap    wu       1 -   66      517.72MB    (66/0/0)     1060290
  2     backup    wm       0 - 7828       59.97GB    (7829/0/0) 125772885
  3 unassigned    wm    1455 - 7828       48.83GB    (6374/0/0) 102398310
  4 unassigned    wm       0               0         (0/0/0)            0
  5 unassigned    wm       0               0         (0/0/0)            0
  6 unassigned    wm       0               0         (0/0/0)            0
  7       home    wm      67 -   79      101.98MB    (13/0/0)      208845
  8       boot    wu       0 -    0        7.84MB    (1/0/0)        16065
  9 unassigned    wm       0               0         (0/0/0)            0

How i can manage slices here if cylinders more than 7832 are unreachable?

Last edited by Agat; 07-30-2011 at 12:59 AM..
# 6  
Old 07-30-2011
Deleting the second partition isn't the best way to use the space it contains. Once again: If you want to make use of your second primary partition, give it a different type than Solaris2 and then create a ZFS pool on it.
# 7  
Old 08-01-2011
It is not important to use one or two primary partitions. The task is to grow /dev/dsk/c1t0d0s3.
Is it possible to do growfs on non ufs partition?

For "zpool create" i need a name of new area. I create again second partition with Unix type.
But it name does not appear in format output.

Last edited by Agat; 08-01-2011 at 04:23 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

2. Shell Programming and Scripting

How to add nodev for /dev/shm partition in Linux using shell script?

Hi, Please guide me how to add nodev option for /dev/shm partition. I am new to scripting and looking to do via command line. Thanks Litu (13 Replies)
Discussion started by: Litu1988
13 Replies

3. Filesystems, Disks and Memory

Ask concept soft partition vs hard partition

Hi Experts I would like to know different between soft partition concept and hard partition concept on solaris. Here is little explanation between soft partition concept and hard partition concept on solaris. Soft Partition: 1TB total space available in storage in all mapped to the OS to... (2 Replies)
Discussion started by: edydsuranta
2 Replies

4. Filesystems, Disks and Memory

Failed raid 1 partition cannot re-add

I found out that the raid 1 was degraded: # cat /proc/mdstat Personalities : md3 : active raid1 sda5 sdb5 1822445428 blocks super 1.0 md2 : active raid1 sda3(F) sdb3 1073741688 blocks super 1.0 md1 : active raid1 sda2 sdb2 524276 blocks super 1.0 md0 : active raid1 sda1... (0 Replies)
Discussion started by: ZaNaToS
0 Replies

5. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

6. Shell Programming and Scripting

rsync from partition to partition fastest

Gentleman, Please move if I have chose the incorrect forum section. I am trying to move data that is not backed up from partition 1 to partition 2 on a SAN that has a GFS2 filesystem. Since the data is not backed up I am rsyncing this data and once verified I will delete from the source... (6 Replies)
Discussion started by: jaysunn
6 Replies

7. Red Hat

add lvm space from a regular partition

Hi, I have red hat enterprise 4. I would like to add more space on my lvm from the first partition that is not lvm type. Here's the config # fdisk -l Disk /dev/sda: 73.4 GB, 73406611456 bytes 255 heads, 63 sectors/track, 8924 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes... (6 Replies)
Discussion started by: itik
6 Replies

8. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

9. UNIX for Dummies Questions & Answers

Need to add aditional space on an exsisting Linux Partition..

Hi, I need to add more space to an exsisting /u partition by adding an additional physical drive, so that the additional space is added in continuation to the exsisting /u diskspace. Is it possible...if yes....how do I go about it. Thanks, Amit (1 Reply)
Discussion started by: amitsayshii
1 Replies

10. UNIX for Dummies Questions & Answers

understanding logical partition, physical partition

hi, 1) is logical partition the same as physical partition except that one is physical and the other is logical? 2) then it must a one to one ratio? (3 Replies)
Discussion started by: yls177
3 Replies
Login or Register to Ask a Question