Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disk space wasted in slice 2 1

Status
Not open for further replies.

personmann

IS-IT--Management
Apr 28, 2006
10
0
0
US
I just set up a new Sunfire x4100 with solaris 10 preinstalled. It has two 72GB disks.
The boot disk does not seem to be partitioned correctly; there appears to be disk space unused. I can see that there is about 68GB in slice 2, but there is only about 26GB being used in the existing slices.

I'm new to solaris so I dont't know whether I should just reinstall from scratch or if there is an easier way to change the slice configuration. I know this probably stupid question, but I would appreciate any kind of guidance here. Thanks

Here is the all of important info:
Code:
format> inquiry
Vendor:   FUJITSU
Product:  MAY2073RCSUN72G
Code:
partition> pr
Current partition table (original):
Total disk cylinders available: 8921 + 2 (reserved cylinders)
Part Tag  Flag Cylinders  Size            Blocks
  0  root wm   256 - 1658 10.75GB   (1403/0/0)  22539195
  1  swap wu   1 -  25    1.95GB    (255/0/0)    4096575
  2  backup wm 0 - 8920   68.34GB    (8921/0/0) 143315865
  3 unassigned wm 0        0         (0/0/0)            0
  4 unassigned wm 0        0         (0/0/0)            0
  5 var wm    1659 - 2423  5.86GB    (765/0/0)   12289725
  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
Code:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0t2d0 <DEFAULT cyl 8921 alt 2 hd 255 sec 63>
          /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0
       1. c0t3d0 <DEFAULT cyl 8921 alt 2 hd 255 sec 63>
          /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0
Code:
# df -kh
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t2d0s0       11G   3.8G   6.7G    37%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   8.0G   624K   8.0G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
/usr/lib/libc/libc_hwcap2.so.1
                        11G   3.8G   6.7G    37%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/dsk/c0t2d0s5      5.8G   854M   4.9G    15%    /var
swap                   8.0G    52K   8.0G     1%    /tmp
swap                   8.0G    24K   8.0G     1%    /var/run
/export/home/admin      11G   3.8G   6.7G    37%    /home/admin
 
Yea, you are wasting a whole lot of disk space. If there is nothing on it, I would just restart from scratch. If you have critical data and are not using the other hard drive. I would partition that one and do some ufsdumps and ufsrestore to the second hard drive.
 
I really like soft partitions because the disks are getting so large and you only have 7 slices to use 72GB of space that you probably don't need. And if you create 7 slices of only the sizes you need, then you waste the rest of the space. Soft partitons would solve this problem. Also mirror your disks since you have two of them in case of hardware failure.
 
There's nothing wrong with leaving the partitioning as it is, unless it's not meeting your needs for some other reason.

You can allocate the unallocated space to one of the unused slices (3, 4, 6, 7, or 9). Just go to that slice and define it as cylinders 2424 to 8920. Then save the partition map, exit format, run "newfs" on it, define a mount point in /etc/vfstab, create the mount point, then mount it. That filesystem will give you all the "missing" space.
 
I just noticied anyway he said it came with Solaris 10 preinstalled. I would go ahead and reinstall it from scratch...I prefer to build the servers myself and it could be a good learning experience, since you said you are new to it.
 
Thanks for the advice guys good tips all around. I finally got it without repartitioning following sambones instructions - DOH! I knew should be easy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top