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!

allocating space to un-used slice

Status
Not open for further replies.

misjay01

Technical User
Jun 17, 2003
50
0
0
GB
Hi,

I would like to allocate space to slice 7. I tried this by reducing /home (slice 5) down but slice 7 remains zero. I have performed label and save options but no luck. I have tried it from slice 2 (commonly known as backup) as well and still remains zero.

Can someone help asap ?

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 2835 3.91GB (2836/0/0) 8193204
1 var wm 2836 - 9216 8.79GB (6381/0/0) 18434709
2 unassigned wm 9217 - 15024 8.00GB (5808/0/0) 16779312
3 unassigned wm 15598 - 19656 5.59GB (4059/0/0) 11726451
4 unassigned wm 19657 - 21074 1.95GB (1418/0/0) 4096602
5 home wm 21075 - 22492 1.95GB (1418/0/0) 4096602
6 usr wm 22493 - 24619 2.93GB (2127/0/0) 6144903
7 unassigned wm 0 0 (0/0/0) 0
 
Is slice 4 used for anything? Would it be feasible to use this slice instead of slice 7?
 
Yes slice 4 is used for /export see below:-

sunfire_v120# df -k | pg
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 4032504 105771 3886408 3% /
/dev/dsk/c1t0d0s6 3008649 1233638 1714839 42% /usr
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
/dev/dsk/c1t0d0s1 9073334 3229306 5753295 36% /var
swap 1272760 40 1272720 1% /var/run
/dev/dsk/c1t0d0s4 1984564 9 1925019 1% /export
/dev/dsk/c1t0d0s5 1984564 63008 1862020 4% /home
/dev/dsk/c1t0d0s2 9073334 1357603 7624998 16% /opt
/dev/dsk/c1t0d0s3 5771767 1029548 4684502 19% /tmp
 
It does not matter where the space is taken from I think slice 7 still remain zero.
 
Generally speaking, in Solaris /home hangs from the root filesystem and is not a filesystem in it's own right. /export/home would usually provide the location of the users' home directories, unlike many other varieties of *nix. How did /home end up as it's own filesystem here? Is there any possibility you could reinstall and choose customise to reallocate the space you have on the disk. As far as I know it's not a good idea to reduce the size of an existing slice to allocate to another, so this may be your only option. Others, of course, may take a different view!
 
I was hoping to get away without re-installing software. I had customised the slices for better management.
 
Did you run format and set slice seven to all available space? Set the beginning cylinder to the next in line and the end to '$' and it should take whatever remaining space is on the drive. The system won't do this automatically... This assumes that the slices are set in sequential order relative to the cylinders and there are not misc unused cylinders between slices...
 
You've got a very odd disk layout there - slice 2 should represent the whole disk 'backup' cyl 0 - xxxxxx and is generally not allocated to a filesystem. This may be your problem - your server now thinks it has an 8Gb disk since thats the size of slice 2 and so won't allocate any more space. You can't reallocate from slice 2 since that's mounted as /opt now. However, you don't seem to have anything in /export and there is no swap partition, tmp on a filesystem .

As wtrepani says you should be able to call format <p> <p> <7> and allocate start cyl 24620 plus no. of cyls (remaining space)

What size is your disk (36Gb?) - can't tell from the above. Can you post the contents of /etc/vfstab and the output from format </dev/null ?
 
Is there going to be a problem with allocating slice 2 to a file system ? I dont think it will be I've just used all the space. I have 2 x 36Gb disks. I have the second disk formated the same as the first since I need to mirror both disks. The second disk is currently un-used.

I did manage to allocate slice 7 with space from slice 2 with the starting cylinder set to where slice to ends.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top