Solved

Re-installing Ubuntu Server with Samba Question

Posted on 2014-11-11
6
265 Views
Last Modified: 2014-11-12
I have a Ubuntu 12.04 server that has gotten totally out of sync with the kernal upgrades. So far, none of the apt-get package commands will clean up the system. I have decided to blow the system away and start with a fresh install.

My main question has to do with the Samba server. If I keep the RAID intact, and therefore my Samba data stores, /srv/samba/share/xxx, when I reinstall the O/S and Samba, will Samba be able to see my shared volumes as before?
0
Comment
Question by:RayRider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40436712
You can upgrade system in place to a supported kernel:
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
No, it is not so easy with samba shares, you need databases from /var/lib/samba too. I'd start installing a new server instead of messing with existing one.
0
 

Author Comment

by:RayRider
ID: 40438719
Gheist:

Tell me this: If I do a clean install of  server version 14.01.1 LTS, and do NOT repartition the RAID, therefore keeping my Samba stores, can I simply point the smb.conf share stanzas to the pre-install share directories, and keep my old share points?

I am forced to do a clean install. This problem started out with /boot filling up. I am unable to say what I did wrong in freeing up space. But, none of any package updates would work. I followed every suggestion in the blogs, etc., to clean up. But, every package upgrade would complain about dependencies. In other words, the upgrades were looking for kernel level xxx, but I had yyy. I finally, manually deleted the series of files in /boot related to old kernels, i.e., config*, initrd* and system*. However the upgrade to 14 LTS seemed to be flowing along OK until near the end, but failed and left the box in an unusual state where many things no longer work. I am forced to do a clean install, but would like to keep my Samba shares if possible.
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 40438748
'apt-get autoremove'
will clean up old kernels.

If samba is on separate filesystem it may work
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:RayRider
ID: 40438784
Gheist:

'apt-get autoremove' failed to clean out any old kernels. After looking for a solution for so long, it became apparent to me that I didn't have the expertise to "fix this beast", and decided that a clean install was my best move. It would be nice to keep the old Samba shares. But, I probably have the data in other places, but will be a pain to find it all, and restore after the rebuild.

This server has been such a stable and reliable machine, not requiring me to spend much time with it. Therefore, I lose my expertise after so long. Actually, it will be fun to go through a complete rebuild.

Thanks for your help. I will award the points to close this out.
0
 

Author Closing Comment

by:RayRider
ID: 40438785
Thanks again!!
0
 
LVL 62

Expert Comment

by:gheist
ID: 40438816
you can boot off a livecd and copy shares .
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
centos linux 65 189
fedora linux on laptop - setup sendmail - or some kind of email 5 65
CENTOS DHCP Server / PXE/TFTP 14 211
Exchange Server Send connector and DNS Round Robin ? 6 44
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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