?
Solved

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

Posted on 2009-05-14
6
Medium Priority
?
474 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 19

Accepted Solution

by:
jools earned 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

762 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