?
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
?
485 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

650 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