Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Migrate /export/home from storage path to local

Solaris


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-20-2016
Deeo Deeo is offline
Registered User
 
Join Date: Dec 2016
Last Activity: 21 December 2016, 6:59 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Migrate /export/home from storage path to local

I am newbies in solaris, hope u guys can help me,

I need to transfer /export/home directory that currently mount at storage and migrate into local disk. may i know the best way to do it?

Thanks
Sponsored Links
    #2  
Old Unix and Linux 12-20-2016
gull04 gull04 is offline Forum Advisor  
Registered User
 
Join Date: Dec 2004
Last Activity: 22 March 2017, 5:14 AM EDT
Location: Isle-of-Skye
Posts: 699
Thanks: 17
Thanked 126 Times in 112 Posts
Hi Deeo,

Can you tell us what the OS is for /export/home what is the destination machine type.

There are a number of options here and having the requested information would help.

Regards

Gull04
Sponsored Links
    #3  
Old Unix and Linux 12-20-2016
Deeo Deeo is offline
Registered User
 
Join Date: Dec 2016
Last Activity: 21 December 2016, 6:59 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
OS is solaris 10 and machine type m9000 domain. The destination is the same server as current path just i need to transfer the path from from storge lun into local disk
    #4  
Old Unix and Linux 12-20-2016
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 24 March 2017, 12:41 PM EDT
Location: Lancashire, UK
Posts: 3,052
Thanks: 1,280
Thanked 583 Times in 528 Posts
Do you have a volume manager in play here? If so, then you might be best to use local disk to extend the volume group and then ask the volume manager to migrate the logical volume across. This should be possible with the system active, although there will be an IO overhead.

What would concern me is the target hardware and why you would want to leave the protection that a SAN gives you. Are you looking to move the data to local and then off to a new SAN, or have you now got a local disk array that you are looking to exploit? The worry is that if it is truly local disk, then the OS is responsible for every disk write and will make the thread/process wait until it is completed to the real spinning media. It might sound counter intuitive, but local disk can therefore be significantly slower that properly configured RAID or SAN disk. SAN (or a good local RAID device) will have a serious chunk of cache so it can accept the write request and signal that it is complete much faster. The SAN will then complete the action to the spinning media in its own time, leaving the OS to continue with further processing.


Can you tell us the end goal here?


Robin
Sponsored Links
    #5  
Old Unix and Linux 12-20-2016
Deeo Deeo is offline
Registered User
 
Join Date: Dec 2016
Last Activity: 21 December 2016, 6:59 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
We don't have volume manager in place currently just using standard ufs fstyp since this is UAT server, vol manager like infoscale require licensed and its expensive.

Our end goal is we want to replace the storage that currently attached to /export/home directory. So im planning to move 1st /export/home dir to local disk then plugoff the current storage and provision a new storage. Then later on /export/home directory will remain in local disk or transfer back the new storage will depend on my management.
Sponsored Links
    #6  
Old Unix and Linux 12-21-2016
gull04 gull04 is offline Forum Advisor  
Registered User
 
Join Date: Dec 2004
Last Activity: 22 March 2017, 5:14 AM EDT
Location: Isle-of-Skye
Posts: 699
Thanks: 17
Thanked 126 Times in 112 Posts
Hi Deeo,

Gotta say that I agree with Robin, however what would look like the way to go would simply to pesent some disk and mount it up on a suitable directory say /mnt/xfer and do the following.


Code:
cd /export/home
tar cf - * | (cd /mnt/xfer; tar xfp -)
cd /
umount /export/home
umount /mnt/xfer

You would now have to ensure that the /etc/vfstab file is correct and either mount the device manually or reboot the domain (I'm betting the manual mount would be preferred here).

To manually mount the disk/slice you just use the standard Solaris command, but to make it persistent you have to edit the vfstab file.

Regards

Gull04
The Following User Says Thank You to gull04 For This Useful Post:
rbatte1 (12-21-2016)
Sponsored Links
    #7  
Old Unix and Linux 12-21-2016
Deeo Deeo is offline
Registered User
 
Join Date: Dec 2016
Last Activity: 21 December 2016, 6:59 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Do i need to boot into init 1 or single user mode for this operation?
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to change /export/home/user dir to /home /user in solaris kalyankalyan Solaris 2 05-31-2010 08:19 AM
Quotas on /export/home grajp002 Solaris 4 12-14-2009 10:34 PM
A query regarding /export/home in Solaris saagar Solaris 4 04-06-2009 03:23 PM
/export/home question venhart UNIX for Dummies Questions & Answers 1 07-25-2008 12:43 PM
Problems with /export/home Anthony UNIX for Dummies Questions & Answers 2 08-09-2001 02:16 AM



All times are GMT -4. The time now is 04:08 AM.