UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Commodore
Commodore
1354 views

move /opt to new primary partition

OES2 SP3 vmware vm

I am running out of room and would like to move /opt (sda2) to sda3. how do I go about doing this without losing the data in /opt?

thank you,
brad
Labels (2)
0 Likes
6 Replies
Knowledge Partner Knowledge Partner
Knowledge Partner

Mount /dev/sda3 at /mnt/newopt and be sure all services that rely on /opt
are stopped. This will mean just about everything on an OES box....
eDirectory and everything else.

Copy everything over from /opt to /mnt/newopt as shown below (all commands
as 'root'):

Code:
--------------------
cp -a /opt/* /mnt/newopt/
--------------------

Modify /etc/fstab to mount /dev/sda3 at /opt, and then go ahead and do the
remounting with a reboot or the following commands:

Code:
--------------------
umount /opt
mount /opt #should mount /dev/sda3 now... verify below
mount | grep opt #should show sda3, not sda2
--------------------

Good luck.
Knowledge Partner Knowledge Partner
Knowledge Partner

As one last point, this is why you should use LVM for all of your volumes
except (currently, because Grub does not support it) /boot since if you
were using LVM you could simply grow the volume. Much easier and safer,
and a lot of other possible functions come from LVM as well.

Good luck.
Commodore
Commodore

That worked perfectly - thank you. I will be using LVM in the future.

Thanks again,
bp
0 Likes
Knowledge Partner Knowledge Partner
Knowledge Partner

Great to hear it! Thank-you for posting back your results.

Good luck.
Fleet Admiral
Fleet Admiral

On 21/08/2013 16:16, BPainter wrote:

> That worked perfectly - thank you. I will be using LVM in the future.


Beware that NSS volumes cannot be created on devices managed by LVM - in
OES2 you need to use EVMS whereas OES11 (based on SLES11) has NLVM, an
enhanced version of LVM.

HTH.
--
Simon
Novell Knowledge Partner

------------------------------------------------------------------------
Do you work with Novell technologies at a university, college or school?
If so, your campus could benefit from joining the Technology Transfer
Partner (TTP) program. See novell.com/ttp for more details.
------------------------------------------------------------------------
Knowledge Partner Knowledge Partner
Knowledge Partner

BPainter;2278307 wrote:
That worked perfectly - thank you. I will be using LVM in the future.

Thanks again,
bp


Feedback is important (both negative and positive) and always appreciated. In the past we have we have not actively solicited feedback from the Community and left it up to individual Members to provide feedback (as you did in your post) when they saw fit... but this is changing.

When you, or anyone for that matter, see a post you find particularly helpful you can show your appreciation by clicking on the star below the post. You can optionally leave a brief comment which is always appreciated but it is not necessary.

Clicking on the star assigns reputation points to the poster but more importantly it identifies those posts you find most helpful and notifies both the poster and website administrators. Our goal is to improve the way we support the Community by providing the type of information you find most useful. For that to happen, Members' feedback is essential!

Thank you.
_____
Kevin Boyle - Knowledge Partner - Calgary, Alberta, Canada
Who are the Knowledge Partners?
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.