Solved

Re-installing Ubuntu Server with Samba Question

Posted on 2014-11-11
6
266 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

734 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