?
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
?
491 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
5 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 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