new disk slices


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers new disk slices
# 1  
Old 03-29-2002
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
# 2  
Old 03-31-2002
It depends what OS and file system you are using. With the UFS file system (native Solaris), you cannot shrink or grow a file system. Depending on the status of the box (can you take it down), the amount of config time and apps, etc, it may be easiest to reinstall the box. If that is not an option, can you post the output of this command:
Code:
/usr/sbin/prtvtoc /dev/rdsk/c0t0d0s2

You may have to change the c0t0d0s2 to be another disk on the system. If you are having problems, post the output of:
Code:
df -k

# 3  
Old 03-31-2002
I almost forgot the cheap fix, though this may not be acceptable in your situation. It is just making links. /opt and /export cannot already exist when you creat the link.

If opt exists, you will need to run this first to make a copy of /opt under /usr.
Code:
find /opt | cpio -pdmv /usr

Then go into single user mode
Code:
reboot -- -s

If /opt is already it's own slice and it is mounted, it will have to be unmounted.
Code:
fuser -uck /opt ; umount /opt

Then, make the links.
Code:
fuser -uck /opt
mv /opt /opt.old
ln -s /usr/opt /opt
mkdir -p /usr/export/home
ln -s /usr/export /export
reboot

This method will not limit the size of each directory tree. If all seems to be working well, you can delete /opt.old
Code:
rm -rf /opt.old

If not, you can roll back
Code:
rm /opt
mv /opt.old /opt


Last edited by 98_1LE; 03-31-2002 at 01:11 AM..
# 4  
Old 04-02-2002
It is UFS file system. So that's out. A developer had asked me the question and thought was that it could not be done. I just needed confirmation. Thanks for your help.
 
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

mirroring root disk using svm - but no free slices for metadb's

Hi all, we have an existing system that was configured using just one of the (two) internal disks. I want to mirror the disk using SVM, but have realised there is no free slice for creating the metadb's. Is there a workaround I can use for this? In the past we have always kept slice 7 free -... (8 Replies)
Discussion started by: badoshi
8 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

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... (5 Replies)
Discussion started by: dangral
5 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