How do I map a lun from a san

I have added a lun to my san and it appears to be seen by the linux server.  How do I mad this lun to a specific directory and how can I copy the contents (including subdirectories) from an existing file structure to it.

I want to map the new volume to /opt/zimbra/backup but first need to move the data already there to the new volume.

Here is the info from the df command on the sysdtem:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      37219896  31290052   4039132  89% /
/dev/sda1               101086     19140     76727  20% /boot
none                   1947656         0   1947656   0% /dev/shm
/dev/sdb1            144189460 104754120  32110908  77% /opt/zimbra
LVL 1
gordonmannAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kent OlsenDBACommented:
Hi gordonmann,

Create a directory, mount the volume, copy the data, and remount it.

mkdir /newdir
mount /dev/sdb1 /newdir
copy -R oldpath /newdir

umount /oldpath
mount /dev/sdb1 oldpath


Good Luck,
Kent
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gordonmannAuthor Commented:
The copy (cp) command did not copy all the subdirectories
0
omarfaridCommented:
use

cp -r
0
gordonmannAuthor Commented:
Thanks to all
0
jghelfman40Commented:
With Zimbra a simple cp -r will copy more than you are looking for.

You will more than likely want to do an rsync -aH  (archive and hard links). With zimbra shared objects you will get far more data to your destination than your source.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.