Solved

Re-installing Ubuntu Server with Samba Question

Posted on 2014-11-11
6
256 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
  • 3
  • 3
6 Comments
 
LVL 61

Expert Comment

by:gheist
Comment Utility
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
Comment Utility
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 61

Accepted Solution

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

If samba is on separate filesystem it may work
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:RayRider
Comment Utility
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
Comment Utility
Thanks again!!
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
you can boot off a livecd and copy shares .
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now