Solved

Unmount opt dir under / dir and mounting it as a separate dir provided via SAN storage

Posted on 2009-05-14
6
464 Views
Last Modified: 2013-12-15
Hi Experts,

I have a server that will be allocated 1 terabyte of space via SAN Storage EVA8000. This server is a Redhat 5.1 server and has already been partitioned as follow:
/ Partition under the root partition the is an opt directory
/swap partition
/var partition

I only discovered later that the opt directory should be mount as a separate partition /opt and the space for this partition will be provided via storage SAN. Please advise on how to unmount the /opt partition under the / partition and mount it as a separate partition of 1 terabyte in Linux.

I will highly appreciate your help or guidence with this problem!!!!!

Regards
The Duke
0
Comment
Question by:LinuxDuke
  • 3
  • 2
6 Comments
 
LVL 19

Accepted Solution

by:
jools earned 125 total points
ID: 24386841
/opt can be under / if you want...however... back to the question...


create a partition on the SAN disk using fdisk, I'll call it /dev/sdc1. Create the partition how ever big you need and save it to the disk (write).

run partprobe.

create a filesystem; mkfs -t ext3 /dev/sdc1

mount it;
   mkdir /newopt
   mount /dev/sdc1 /newopt

Copy /opt to /newopt
   cd /opt
   find . | cpio -pudm /newopt

!! make sure you have no services running that use it.... etc etc

modify /etc/fstab to use /dev/sdc1 or LABEL /dev/sdc1 as /opt and then run `mount -a`

dont think I forgot anything....
0
 

Author Comment

by:LinuxDuke
ID: 24396754
Jools nice let me test it should take me a week to get the san requirements then I'll follow your steps.
Please assist me when I get problems with this when its working I will inform you.
I'll leave this open till I have done testing.

Thanks
The Duke
0
 
LVL 19

Expert Comment

by:jools
ID: 24397053
absolutely, just post back here and I take a look.
0
 

Author Comment

by:LinuxDuke
ID: 24468583
Thanks Jools still waiting for storage to be provided and once that is done will fallow your steps and update you that is why I'm leaving this post open.

Thanks
Duke
0
 
LVL 19

Expert Comment

by:jools
ID: 24469287
no worries, thx for the update
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to demonstrate how we can use conditional statements using Python.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question