Koozali.org: home of the SME Server

what is this sme box used for?

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: what is this sme box used for?
« Reply #45 on: September 19, 2013, 12:56:45 PM »
winecooler

I just reviewed the earlier post about resetting default repos.
Please do this
confirm you have version 17 smeserver-yum installed
rpm -q smeserver-yum

If it is not installed then do this
yum clean all
(copy and paste the following lines, note the "obsolete" tree location):
rpm -Uhv \
http://mirror.canada.pialasse.com/releases/obsolete/\
/7.6/smeupdates/i386/RPMS/smeserver-yum-2.0.0-17.el4.sme.noarch.rpm

then do
signal-event yum-update

and check with
rpm -q smeserver-yum

When you are sure v 17 is installed
then do
mv /home/e-smith/db/yum_repositories /home/e-smith/db/yum_repositories.po2
/etc/e-smith/events/actions/initialize-default-databases
signal-event post-upgrade
signal-event reboot

The post-upgrade & reboot were missing from the earlier command in this thread & perhaps the default repos did not get reset correctly.
It's worth trying again as that is probably the easiest way to reset them.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: what is this sme box used for?
« Reply #46 on: September 19, 2013, 02:30:18 PM »
this will help me move along a little faster now ;)

Good. Now to get back to your original problem, you can see what files are located on that server by doing:

ls -R /home/e-smith/files | less

Or use 'mc' to browse around.

I haven't been following in detail - why are you going to so much trouble to update that system?

Offline winecooler

  • *
  • 37
  • +0/-0
Re: what is this sme box used for?
« Reply #47 on: September 20, 2013, 03:12:05 AM »
What is probably not right are the actual BaseURL or MirrorList locations for those repos, so we need to check them. The smseserver-yum update should have fixed those. Please show output of:
rpm -q smeserver-yum
db yum_repositories show smeos
db yum_repositories show smeupdates
db yum_repositories show smecontribs
db yum_repositories show base
db yum_repositories show updates

output:

Code: [Select]
[root@backup ~]# rpm -q smeserver-yum
warning: only V3 signatures can be verified, skipping V4 signature
smeserver-yum-2.0.0-17.el4.sme
[root@backup ~]# db yum_repositories show smeos
smeos=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://mirrorlist.contribs.org/mirrorlist/smeos-7
    Name=SME Server - os
    Visible=yes
    status=enabled
[root@backup ~]# db yum_repositories show smeupdates
smeupdates=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://mirrorlist.contribs.org/mirrorlist/smeupdates-7
    Name=SME Server - updates
    Visible=yes
    status=enabled
[root@backup ~]# db yum_repositories show smecontribs
smecontribs=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=http://mirrorlist.contribs.org/mirrorlist/smecontribs-7
    Name=SME Server - contribs
    Visible=no
    status=disabled
[root@backup ~]# db yum_repositories show base
base=repository
    BaseURL=http://vault.centos.org/4.9/os/$basearch
    EnableGroups=no
    Exclude=kernel,kernel-smp,kernel-xenU,mkinitrd,mdadm,initscripts
    GPGCheck=yes
    Name=CentOS - os
    Visible=yes
    status=enabled
[root@backup ~]# db yum_repositories show updates
updates=repository
    BaseURL=http://vault.centos.org/4.9/updates/$basearch
    EnableGroups=no
    Exclude=kernel,kernel-smp,kernel-xenU,mkinitrd,mdadm,initscripts
    GPGCheck=yes
    Name=CentOS - updates
    Visible=yes
    status=enabled
[root@backup ~]#

Offline winecooler

  • *
  • 37
  • +0/-0
Re: what is this sme box used for?
« Reply #48 on: September 20, 2013, 03:24:54 AM »
Good. Now to get back to your original problem, you can see what files are located on that server by doing:

ls -R /home/e-smith/files | less

Or use 'mc' to browse around.

I haven't been following in detail - why are you going to so much trouble to update that system?

From the OP: "put simply the old tech who installed this back up sme server is gone and I want to know what it was backing up. I believe it was windows server data, unsure if it was a full server backup or workstations or a share folder or ....?" There is a new Windows back up system in place now, but I am still curious what the purpose of this smeserver box is/was. Actually I had no plans whatsoever to update it, but janet has been graciously helping me and insists on it.

I found some backup data in an ibays folder, the weekly is from 2012 only, and there appears to be dailies from this year but only for a few selected employees rather than all. hmm. The old tech couldn't print his own name properly let alone document anything he did, job security I'm guessing, and now the company has paid the price for it.

« Last Edit: September 20, 2013, 03:26:45 AM by winecooler »

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: what is this sme box used for?
« Reply #49 on: September 20, 2013, 06:54:09 AM »
winecooler

The reason for suggesting to update was to get rid of repo errors, which were interfering with running diagnostics.
You do not have to update if you do not want to.
I saw it as a simple way to get your box fixed, but your lack of knowledge & skills has hampered a simple enough exercise.

The base & updates repos appear correct, I'm not sure about the other repos, would have to check an old sme7 box.
Maybe someone else can advise.

Can you do these now (without errors) ?
/sbin/e-smith/audittools/newrpms

This will advise what backup contribs (if any) are installed.

Does server manager work from a workstation ?
https://serverIP/server-manager
replace with your server local IP

In server manager you can see what backup jobs are setup.

Also see this to see if a default backup is set
config show backupwk
« Last Edit: September 21, 2013, 02:00:31 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline winecooler

  • *
  • 37
  • +0/-0
Re: what is this sme box used for?
« Reply #50 on: September 22, 2013, 12:39:44 AM »
Yes, server manager works from a workstation now. root doesn't work I found out, but Admin does.

In server manager, when I click on Backups, it says "tape backups are disabled. workstation backups are disabled."
There is no tape drive in the backup server.
When I go to "Configure workstation backup", it shows:
Workstation IP or hostname = host <--- there is no machine on the network named "host"
backup share = share <--- I cannot find a share on the network called "share"

My guess is that these are default values, and it was never configured?

There are, however, a bunch of entries under ibays that correspond to company resources. Am going to see what I can find under these. None are configured for web or ftp access. Where on the folder structure are these ibays located? I can't seem to find them using mc.


Code: [Select]
[root@backup files]# clear
[root@backup files]# /sbin/e-smith/audittools/newrpms


Cannot find a valid baseurl for repo: smeupdates
Loading "installonlyn" plugin
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
[root@backup files]# config show backupwk
backupwk=service
    BackupTime=22:00
    Compression=6
    CompressionProg=gzip
    DaysInSet=1
    IncOnlyTimeout=no
    Login=backup
    Password=backup
    Program=dar
    SetsMax=1
    SmbHost=host
    SmbShare=share
    Timeout=8
    VFSType=cifs
    status=disabled
« Last Edit: September 22, 2013, 12:58:23 AM by winecooler »

Offline Frank VB

  • ***
  • 127
  • +0/-0
Re: what is this sme box used for?
« Reply #51 on: September 22, 2013, 10:09:17 AM »
Where on the folder structure are these ibays located?

All ibays are located in a subfolder of the "/home/e-smith/files/ibays" folder. Log in with PuTTY and type:

Code: [Select]
mc /home/e-smith/files/ibays
You'll see a directory listing of all ibays. The "Primary" ibay is SME's default ibay. If there's no web access enabled for a particular ibay, it's files will be located in a subfolder "files", e.g. if there's an ibay called "foobar" then it's files are located in "/home/e-smith/files/ibays/foobar/files".
 

Offline winecooler

  • *
  • 37
  • +0/-0
Re: what is this sme box used for?
« Reply #52 on: September 22, 2013, 07:44:27 PM »
When I do an "ls -al" or use mc, it shows the dates on the backup files as "20 Sept" but it doesn't say a year. How do I get it to display the year?

Also, the files are in .tar.gz format, is there I tool I can use to browse these gzip files?

Offline winecooler

  • *
  • 37
  • +0/-0
Re: what is this sme box used for?
« Reply #53 on: September 22, 2013, 11:00:33 PM »
Okay poked around some more and it looks like the backup files are from 2009 - 2011. Awesome. (not)

Thank you guys, especially Janet, for all your help. :)


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: what is this sme box used for?
« Reply #54 on: September 23, 2013, 02:03:17 AM »
winecooler

Quote
Cannot find a valid baseurl for repo: smeupdates

For the time being you could temporarily disable that repo using
db yum_repositories setprop smeupdates status disabled
signal-event yum-modify

Then try
/sbin/e-smith/audittools/newrpms

Quote
server manager works from a workstation now. root doesn't work I found out, but Admin does.

Only admin user can access server manager

Quote
it shows the dates on the backup files as "20 Sept" but it doesn't say a year. How do I get it to display the year?

IIRC, usually they are recent files & it is the current year. Older file dates will show the year.
« Last Edit: September 23, 2013, 02:07:26 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: what is this sme box used for?
« Reply #55 on: September 23, 2013, 02:35:04 AM »
winecooler

Quote
config show backupwk
backupwk=service
    BackupTime=22:00
    status=disabled

The backup is disabled.

I would be looking more closely at the cron jobs you mentioned earlier in  this thread.
I gave instructions how to read them, or you can use the viewer (F3) in mc.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: what is this sme box used for?
« Reply #56 on: September 23, 2013, 11:44:59 PM »
winecooler

The sme 7 mirror repos were removed so the MirrorList property is non functional.
Setting the repos to something that works ie looks at the obsolete tree locations, should resolve your errors

db yum_repositories set smecontribs repository \
BaseURL 'http://mirror.canada.pialasse.com/releases/obsolete/7.6/smecontribs/$basearch' \
EnableGroups yes \
GPGCheck yes \
Name 'SME Server - smecontribs' \
Visible yes \
status disabled

db yum_repositories set smeos repository \
BaseURL 'http://mirror.canada.pialasse.com/releases/obsolete/7.6/smeos/$basearch' \
EnableGroups yes \
GPGCheck yes \
Name 'SME Server - smeos' \
Visible yes \
status enabled

db yum_repositories set smeupdates repository \
BaseURL 'http://mirror.canada.pialasse.com/releases/obsolete/7.6/smeupdates/$basearch' \
EnableGroups yes \
GPGCheck yes \
Name 'SME Server - smeupdates' \
Visible yes \
status enabled

db yum_repositories delprop smecontribs MirrorList
db yum_repositories delprop smeos MirrorList
db yum_repositories delprop smeupdates MirrorList

signal-event yum-modify
yum clean all
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.