We help IT Professionals succeed at work.

Moving mounting points from one Linux server to another

386 Views
Last Modified: 2015-10-27
An old server needs to be put down...

The new one needs the old servers mounting points.

I copy the information from the fstab file to the new one yet not sure what else needs to be done.

I need this in the new Ubuntu v14 server:

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p5     232M  156M   65M  71% /
tmpfs                 507M     0  507M   0% /lib/init/rw
udev                   10M   60K   10M   1% /dev
tmpfs                 507M   16K  507M   1% /dev/shm
/dev/cciss/c0d0p2      70M   26M   41M  39% /boot
/dev/cciss/c0d0p6     3.3G  2.4G  674M  79% /usr
/dev/cciss/c0d0p7     123G   99G   24G  81% /var
/dev/cciss/c0d0p8     6.3G  2.1G  3.9G  35% /home
smac-blah01:/storehistory
                      1.5T  1.3T  264G  83% /var/local/pos
smac-sancs01:/snap03  394G  302G   93G  77% /srv/snap03
//172.16.255.20/dax_data
                      144G   37G  108G  26% /var/local/dablahx/daxdata
//172.16.255.20/proddata
                      144G   37G  108G  26% /var/local/dablahx/proddata
Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Many things do not make sense.

Mounting points are localized to the local server. One matches mounting points when application/services are migrated from one to another and one wants to  maintain configuration.

You have an external SAN NFS server

more /etc/fstab
external resources such as the SAN/SNAP have to be configured to allow the new server to access the same resources with the same settings. Note depending on the type of access, (NFS/SAMBA) you can have multiple hosts accessing/mounting the same resources. ISCSI and FC you can only have one resource accessing/mounting the LUN..

df -h does not

what is the df -h from the old versus the new?

Unless you are cloning the old one from the begining, I am not sure what your difficulty is.

Adjust/adapt to what you have unless you can reinstall the new in exactly the same layout as the old......
CERTIFIED EXPERT
Most Valuable Expert 2012

Commented:
This looks like an HP Proliant DL360 (or similar) with RAID 5 with 3-4 72GB high speed drives.

If that's true, then when you setup the new server, you have to partition the main system to account for these:
/dev/cciss/c0d0pX

The remainders (as arnold says)  are network mounts. These should be in /etc/fstab, but (as you say) you copied those over. Do the directories actually exist on the new server? (If not, there is nothing to mount).

What does mount on both machines say?
CERTIFIED EXPERT
Most Valuable Expert 2012

Commented:
Additionally, if the new server is a different server, with different controllers, the /dev/cciss/ devices will show up completely differently. But, I think its irrelevant to what you're probably trying to accomplish...
marceloNYCMiddle-Tier Administrator

Author

Commented:
Okay,

I did not make the best question. Sorry and thank you for your time with this.

From old server what I need is this:

mount:
 

smac-blahblah01:/storehistory on /var/local/pos type nfs (rw,hard,intr,tcp,rsize=32768,wsize=32768,timeo=600,retrans=15,addr=172.16.xx.35)
smac-Blahblah01:/snap03 on /srv/snap03 type nfs (rw,hard,intr,tcp,rsize=32768,wsize=32768,timeo=600,retrans=15,addr=172.16.xx.35)
//172.16.255.20/dax_data on /var/local/dax/daxdata type cifs (rw,mand)
//172.16.255.20/proddata on /var/local/dax/proddata type cifs (rw,mand)
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
marceloNYCMiddle-Tier Administrator

Author

Commented:
excellent this should get me going.

Thank you
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.