resizing slices


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers resizing slices
# 1  
Old 12-15-2002
resizing slices

I downloaded the Solaris recommended patched for x86 and tried to install it, but I got the message that I dont have enough disk space. I don't want to install the patches without the option to back out. Anyway I did a df -k and found that my root mount point is in 948MB whereas my /export/home is 8GB. I would like to resize to make things a bit more even. I have some idea what to do( use the format command) but I read that doing this will cause me to lose all my data. Could someone please clarify-- will I lose data? Also, please explain what I need to do to resize slices.
Much appreciated.
# 2  
Old 12-16-2002
unlike aix, hpux, sun doesnt ofter LVM which has the flexibility to extend, configure as required... if i am not wrong, for sun platform, once u configure, there is no way u can reconfigure unless with the option of reslice everything again... and that of course will lose all the data.

please correct me if i am wrong..

thanks
yls177
# 3  
Old 12-17-2002
Solstice DiskSuite is available with Sol9x86 (now available).

I don't believe it came packaged with Sol8x86.
# 4  
Old 12-17-2002
And to answer the question, yes, you will lose your data unless you make a backup of it onto tape or whatever means you have. Do not backup to the same disk you are going to format.
# 5  
Old 12-18-2002
A unix admin suggested that if I do not want to lose my data then I can just move my root filesystem to the /export/home slice. I didnt really have anything I needed in export home so what I did was a ufsdump/restore from s0 (root slice) to s7 (/export/home). I then edited the vfstab in the /export/home/etc directory on s7 to point the root filesystem to s7. Then, made a bootblock on s7 with installboot.
My question is, how do I tell the OS to boot off of slice 7 instead of slice 0? I am running Solaris 8 intel.
# 6  
Old 12-18-2002
You didn't lose your data dumping to the same disk since you didn't format (changing the sizes of the partitions). You are attempting to 'get around' the normal way of doing things (not wrong mind you...that is something we all try).

But, the problem is this. You aren't running Solaris 8 on a SUN system which would allow this. You are running X86. And according to SUN, it can't be done.


Quote:
[cpj@west 5/24/96]
The install program has always provided a feature to allow choosing which
slice will contain which partition. The root and swap partition can be located
anywhere. devconf appears to have a hardcoded ":a" in the constructed bootpath
which breaks this feature. Pehaps there's a swap limitation as well?

This feature can be used to allow multiple solaris versions to install on a
single
disk. By preserving the old filesystems, and installing into new slices, both
installations can be held on one disk (and switched between by setting
the appropriate root partition to type "root" with the format program).

In any event, the root partition should be determined as the other boot
stages do, by examing the vtoc for the first "root" partition.

The description field as copied from bug report 1261782 follows:

If a system is installed with the root filesystem on a slice other than slice 0,
the
installed system cannot be booted.

An attempt to boot from the hard drive will cause this screen to be displayed:

SunOs Secondary Boot version 3.00

<bootdev>:a: can't open - too many open devices
prom_panic: Could not mount filesystem.

use Ctl-Alt-Del to reboot

An attempt to boot using the boot floppy will cause these messages to appear:

Unable to mount a Solaris root filesystem from device:

......

/isa/ata@`,1f0/cmdk@0,0:a: can't open - slice not allocated
/isa/ata@`,1f0/cmdk@0,0:a: can't open - too many open devices

I tested this by installing an IDE system with the root on slice 7. I also
tried
a system with a buslogic ISA adapter with the root on slice 7. These systems
work fine if the root is on slice 0.
Work Around Top

The work around field as copied from bug report 1261782 follows:

Install with root on slice 0.
So you are back to square 1. You can either backup your data to tape, format the drive, and dump the tape back on, OR, reinstall from scratch. I don't believe there are any other choices.

One thing you might try...

IF your swap partition is set up right next to your root partition (on slice 1), you could cut a piece from slice 7 {insure you restored your data first that you put there onto the correct slice [0]} to move swap to. Then you could increase the size of your root partition....all this is dependent on what your partitions look like (please post how you had it set up originally and how it is set up now).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

partition of slices

Hello, I am using solaris 10 x86. my root and backup slices is having same memory 10 GB and same cylinders numbers . My root and backup cylinders ends at same cylinder number 1031. so for creating a new slice i am giving starting cylinder from 1302 and this is giving me error as "out of range" .... (2 Replies)
Discussion started by: bhargav90
2 Replies

2. Solaris

Scrapping slices

Hi Admins, Server is sparc solaris 9 I am new into solaris with little experiemce with SVM. /dev/dsk/c3t0d1s4 /u05 /dev/dsk/c3t0d1s3 /u02 /dev/dsk/c3t0d1s5 /u11 There are 3 file system created on slices of disk c3t0d1. Now i want to scrap all the slices and... (5 Replies)
Discussion started by: newsol
5 Replies

3. BSD

NetBSD, SPARC, UFS slices

I need to shrink a UFS slice with NetBSD on SPARC. seems the only way is backup+reformat. can someone please give me exact commands for that? presumably backup is file-by-file instead of sector-by-sector, but how to preserve permissions/dates/attributes.. ? thanks. (0 Replies)
Discussion started by: orange47
0 Replies

4. Solaris

ufs slices info in solaris

how do you get start and end sector of a UFS slice? (2 Replies)
Discussion started by: orange47
2 Replies

5. Solaris

Partitioning hard disk. Want 8 slices...have 9

Hi all I'm having difficulty setting up a proper disk structure on a 72GB HDD. The drive was previously part of a zfs pool. The zpool has ben destroyed and now I want to use the disk in a raid 5 array. I need to partition the disk accordingly though. This is what the partition table currently... (7 Replies)
Discussion started by: notreallyhere
7 Replies

6. Solaris

SAN DISKS - Number of slices ?

Good morning to one and all :-) Thank god its Friday, as its bee na rubbish week for me ! So, a quick question. Disks ! Ive got a few local disks, and a few SAN disks used on my solaris server. Whats confusing me, and Im not sure if there's an issue at the SAN end, or my end, regarding the... (3 Replies)
Discussion started by: sbk1972
3 Replies

7. UNIX for Dummies Questions & Answers

Resize root disk slices

I have a Sun box running Solaris 9. My root disk was slices too small when it was installed and I am now at 99% capacity for my root partition. Is it possible, and if so how?, to increase the size of slice 0 and decrease the size of slice 7?? Thanks! Current partition table... (6 Replies)
Discussion started by: FredSmith
6 Replies

8. Filesystems, Disks and Memory

*BSD slices - multiple questions

Can you have a second primary slice on a second hdd? I know that primary slices are defined in the mbr, but where are all the sub partitions defined at? From the OBSD installation FAQ: What exactly is in the PBR? (0 Replies)
Discussion started by: Derrek
0 Replies

9. UNIX for Dummies Questions & Answers

new disk slices

How do I create new disk slices taking space from an existing slice? Right now I have slice 6 (/usr) with 16G. I'd like to create slices 5 (/opt) and 7 (/export/home) and steal space from slice 6. Thanks (3 Replies)
Discussion started by: kmgrady01
3 Replies

10. UNIX for Dummies Questions & Answers

Solaris 8 installation slices

Anyone know if SUN recommends users to install the root parition on 1 single slice or break out the /var , /etc, /opt etc on separate slices? What if i only have a single hdd that is only 2 GB (1 Reply)
Discussion started by: owls
1 Replies
Login or Register to Ask a Question