LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-26-2013, 10:19 AM   #1
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 240

Rep: Reputation: 1
Can I copy one shell "zsh" from one server to another.


Hi Guys,


We are doing one production migration,
we have copied "/etc/shells" file form old to new server.
/etc/shells file contains below entries:-
Code:
bash-3.2# more /etc/shells
/bin/false
/bin/csh
/bin/jsh
/bin/ksh
/bin/rksh
/bin/rsh
/sbin/sh
/sbin/zsh
/usr/bin/zsh
/usr/bin/bash
/usr/bin/csh
/usr/bin/jsh
/usr/bin/rksh
/usr/bin/ksh
/usr/bin/sh
/usr/bin/tcsh
/usr/bin/zsh
/usr/local/bin/pwsh
but one shell is missing:-
[CODE]bash-3.2# ls -l /sbin/zsh
/sbin/zsh: No such file or directory
bash-3.2#

on my old prod server it is present and has no link;-
Code:
-bash-3.00$ cd /sbin
-bash-3.00$ ls -l zsh
-r-xr-xr-x   1 root     bin       507912 Jan 23  2005 zsh
-bash-3.00$
so can i copy this "zsh" shell from my old production server to new prod server ?

Will it cause any issue?

Please advise.

Thanks,

Manali

---------- Post added 04-26-13 at 10:19 AM ----------

System is Solaris 10

Last edited by manalisharmabe; 04-26-2013 at 10:22 AM.
 
Old 04-26-2013, 03:26 PM   #2
rigor
Member
 
Registered: Sep 2011
Posts: 136

Rep: Reputation: Disabled
manalisharmabe,

If someone asked you the question you have asked us, how would you go about trying to solve it?


You have told us that you:

1) are doing one production migration
2) have copied "/etc/shells" file from old to new server
3) but one shell is missing /sbin/zsh
4) on my old prod server it is present and has no link


You have not told us:

A) exactly how you are doing the migration.
B) whether or not you copied the shells themselves over, only that you copied /etc/shells over.
C) why you mention that there is not a link on the old server
D) are there any differences between the hardware of the old server and the new server, or are
you simply moving from one physical location and another?


Please give us the details so we have a starting point to try to help you.

Last edited by rigor; 04-26-2013 at 03:32 PM.
 
Old 04-26-2013, 03:39 PM   #3
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,335
Blog Entries: 5

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
why not just install shells...?
 
Old 04-27-2013, 05:35 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,113

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
I agree with Habitual. It would be a lot more straightforward to just install zsh on the new machine. It probably needs some extra libraries, so simply copying over the binary may not be enough to keep it running. On the other hand, if you don't have any users or scripts that actually use zsh, you can just delete its entry from /etc/shells on the new machine and be done with it.
 
Old 04-28-2013, 11:38 AM   #5
rigor
Member
 
Registered: Sep 2011
Posts: 136

Rep: Reputation: Disabled
I feel that usually the most appropriate way to answer a question is to stay in the context in which the question was asked, and within the scope of the original question.

But in this case I think the context itself may become more important to actually being helpful, than the question.

That's why it would be nice to how how the migration is being accomplished.

Dynamically linked libraries may be needed for plenty of binaries that could be copied over, not just the zsh.

Also, if pieces of things are being copied over, any package management environment may be invalidated. If you copy over a list of installed packages, but don't copy over all the installed components of those packages, the package list is not really valid.

I can more or less understand a desire not to have to spend time re-installing layers of updates that have already been installed.

So if the migration is just to new hardware at a single location, it might not be the worst idea to copy over the files, as long as the system can be made to still boot from the new drive, and in general if the copying is done in the right way. That's of course, IF the "Architecture" of the new machine is compatible with the old.

Otherwise the migration might be most safely accomplished by first installing on the new machine, the OS, any updates and optional packages, Applications etc., which were installed on the original system, then copying over any other data, User files, Application data, etc.

Last edited by rigor; 04-28-2013 at 11:56 AM.
 
Old 04-28-2013, 04:45 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,113

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Agreed that having context is nice, but there are definitely right ways and wrong ways to do a server migration. Randomly copying files over (that will not be tracked by the package manager) does not seem like a good recipe for creating a stable system.
 
Old 04-28-2013, 08:20 PM   #7
rigor
Member
 
Registered: Sep 2011
Posts: 136

Rep: Reputation: Disabled
Quote:
Originally Posted by btmiller View Post
Agreed that having context is nice, but there are definitely right ways and wrong ways to do a server migration. Randomly copying files over (that will not be tracked by the package manager) does not seem like a good recipe for creating a stable system.
The OP still hasn't responded, so we don't know what approach is being taken to the migration. Just because one question was asked about copying the zsh over, doesn't mean that the OP is randomly copying files over.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to replace "ö" to "p" in shell scripting with "sed" meninmech Programming 5 06-22-2012 02:58 PM
Copy "new files found" on my debain (Server) to windows 7 (Home PC) Vodkaholic1983 Linux - Newbie 6 05-13-2012 12:09 AM
What command to copy from desktop to server? Getting "permission denied" tgaler1 Linux - Newbie 3 07-28-2009 12:45 PM
Ntfs-Fuse copy error Debian "Sid" / Ubuntu "6.06" animefriik Linux - General 0 10-06-2006 09:28 AM


All times are GMT -5. The time now is 07:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration