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.
means c0t0d0s0 had been filled by 91% and c0t0d0s7 is only 1%.
So my question is that can I increase the space of c0t0d0s0 by distracting it from c0t0d0s7 ??
is it then how can I do it ??
thanks in advance...
You can, but you'll probably lose all the data in /export/home when you re-write the partition table. I'd look in / first, since you've probably got all your log files and everything else under it, based on this, and see what you can remove. You can probably free up a good amount of space.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Here is one way to do it:
create /export/home-slash
move /export/home/* to /export/home-slash
unmount /export/home
remove /export/home from vfstab
remove /export/home directory
rename /export/home-slash to /export/home
save the disk vtoc to an external media just in case
boot on an installation CD/DVD and launch a shell from it
move all data from slice 0 to slice 7 with dd
extract the disk vtoc to a file
edit the file and swap slice 0 and slice 7
overwrite the disk vtoc
reboot ...
If everything is ok, create a new filesytem on slice 7, a mount point for it and add it to your vfstab
Of course, this is quite tricky and there are several steps where mistakes can be disastrous for all of your data.
Alternatively, could merge slice 7 to slice 0 and growfs while on the boot shell.
Finally, if you have external storage space, backup (ufsdump) both of your slices, recreate a single one and restore from the backup.
Can you remove or /dev/null some files under /var/tmp or logs under /var/adm /var/log to free up some space? Any other logs? 40GB is a lot for a solaris install. Even with the second largest install option you can do it for far less than 20GB. Sounds like you might be able to get yourself temporarily out of trouble by cleaning up logs and stuff. Can't hurt to look for core files and that sort of thing too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.