Using the rest of my hard drive

Hi

When I installed opensolaris, I installed it on a 20GB partition. How do I make use of the other 300GB I have spare?

format shows:-

-bash-3.2# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c3d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
Specify disk (enter its number): 0
selecting c3d0
NO Alt slice
No defect list found
[disk formatted, no defect list found]
/dev/dsk/c3d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
/dev/dsk/c3d0s1 is currently used by swap. Please see swap(1M).


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 2607 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm     132 - 2606       18.96GB    (2475/0/0) 39760875
  1       swap    wu       1 -  131        1.00GB    (131/0/0)   2104515
  2     backup    wu       0 - 2606       19.97GB    (2607/0/0) 41881455
  3 unassigned    wm       0               0         (0/0/0)           0
  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 unassigned    wm       0               0         (0/0/0)           0
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 unassigned    wm       0               0         (0/0/0)           0

partition>

Your slice2 (whole disk space) shows only 20G from the partition table.
Did you do a clone or at least did you assigned the remaining size to any unused partition during install ? I'm not sure if you can expand beyond this now, and afraid that you might loose your data if you try purging the disk to get back its original volume of 300G

you can use "fdisk" to make use of the rest of your harddrive... add a new partition to use for solaris. don't try to grow your existing partition!

Thanks DukeNuke2

             Total disk size is 38913 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  2610    2610      7
          2                 Solaris2       2610  38798    36189     93




SELECT ONE OF THE FOLLOWING:
   1. Create a partition
   2. Specify the active partition
   3. Delete a partition
   4. Change between Solaris and Solaris2 Partition IDs
   5. Exit (update disk configuration and exit)
   6. Cancel (exit without updating disk configuration)
Enter Selection: 

i just installed a bunch of x4200m2 servers from sun with solarisx86 and i've to use fdisk alot ;).

Ouch.
You can't have more than one Solaris/Solaris2 partition. It might make your system unbootable.

Set partition 2 type to something else and create a ZFS pool on it if you are running Solaris 10. If you aren't, you can create a ufs partition on c3d0p2 but that's not straightforward.

Edit: just noticed your root partition is on ZFS, so you are definitely using Solaris 10u6 or Solaris Express, so just create a ZFS pool and you are set.

Ok, I've changed it to 'UNIX System' how would I make a zfs pool named 'minisan'?

read the manpage of "zpool".

# zpool create yourpool dev

zpool create yourpool /dev/dsk/c3d0p2 ??

cool, it all works :slight_smile:

it's easy, isn't it? :wink:

indeed, I was expecting it to be harder, I've already installed VirtualBox, and installed XP Pro in 11 minutes!

zfs is a beautiful thing!! they really got the initial setup of this fs right. super easy.