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.
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:
You may have to change the c0t0d0s2 to be another disk on the system. If you are having problems, post the output of:
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.
Then go into single user mode
If /opt is already it's own slice and it is mounted, it will have to be unmounted.
Then, make the links.
This method will not limit the size of each directory tree. If all seems to be working well, you can delete /opt.old
If not, you can roll back
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)