Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i installed solaris 10 11/06 in x86.. The ouput of df command shows that 5.5GB is in /dev/dsk/c1d0s0 which is mounted in / and 38GB in /dev/dsk/c0d0s7 which is mounted in /export/home.. of the 5.5GB in / only 23MB is free... I need modify the partition table such that i need to decrease the size of /export/home and increase the size of /..
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
Are there unused/unmounted partitions between s0 and s7? You can use format to modify the partition tables, but shrinking one is a totally different story from growing one. I'm not sure you can get away with that. If you had almost nothing in /export/home and were willing to newfs it, then you could do it. Or tar it out to somewhere, make the changes, newfs it, and then tar it back.
I've changed partition tables on live drives and gotten away with it, but I was just changing unused partitions before putting them into use. You have to be absolutely careful, because, if you make a mistake, you could blow the whole thing. Since you are wanting to increase /, I believe you will have to use growfs after changing the tables.
Check all the man pages. Double check everything you do before committing. Do a backup before you start if you want to be extra careful.
Or you could just go through the whole install again and just allocate space appropriately.
i installed solaris 10 11/06 in x86.. The ouput of df command shows that 5.5GB is in /dev/dsk/c1d0s0 which is mounted in / and 38GB in /dev/dsk/c0d0s7 which is mounted in /export/home.. of the 5.5GB in / only 23MB is free... I need modify the partition table such that i need to decrease the size of /export/home and increase the size of /..
I'd recommend starting over and rebuilding the box if you can. If you try to modify the / partition and aren't careful with you start/stop cylinders you'll end up blowing away the partition.
Another option if you can't rebuild is to offload some of the stuff off of root to a different partition and setup sym links to point back. For example you could mv /opt and sym link it to /export/home/opt... Good luck!
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by OuterVillage.com
Another option if you can't rebuild is to offload some of the stuff off of root to a different partition and setup sym links to point back. For example you could mv /opt and sym link it to /export/home/opt... Good luck!
Beware that you need to be very careful when selecting directories to offload. Some directories are required to be on / for the boot process to succeed.
Another point: /opt is a good choice to be relocated on a different filesystem. I would however recommend not to use symbolic links for directories containing files belonging to packages. The reason is the symlink would be broken after any patch or further package installation.
Use lofs mounts instead which do not exhibit this issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.