I have a solaris 10 VM. Its hard disk size is 10gb. In the file system, I have checked the /opt size is around 635mb. So my concern is can I increase the /opt size to 1GB. If so how can I achieve that ?
Please help me.
|
I have a solaris 10 VM. Its hard disk size is 10gb. In the file system, I have checked the /opt size is around 635mb. So my concern is can I increase the /opt size to 1GB. If so how can I achieve that ? Please help me. |
|||||
|
|
You're using Solaris 10 so I assume you're on zfs. Assign another disk to your host or create another zfs file-system with fault tolerance of your choice. Mount it under an arbitrary mount, say /opt-new. Stop any processes using /opt if you can, and recursively copy the contents to your new file-system. At this point, definitely stop any apps using /opt. Move it out the way, say /opt-old and set your mountpoint for your zfs filesystem mounted on /opt-new to /opt. Restart apps and confirm everything is well. Delete /opt-old once you are happy you do not need a roll-back. |
|||
|
|
|
Yes this can be done if you have (or can create) the additional space on another disk or slice. In general terms
You should have a look at the solaris man page for |
||||
|
|