BackupPC-users

Re: [BackupPC-users] Almost working

2008-10-15 21:31:16
Subject: Re: [BackupPC-users] Almost working
From: "Kenneth L. Owen" <tx836519 AT bellsouth DOT net>
To: "'General list for user discussion, questions and support'" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 15 Oct 2008 21:24:42 -0400
Well, I'll work on remote access later.

Now that I have BackupPC working on the system in the original distribution
file setup, I am ready to change the storage location to a large hard disk
just for archiving.  I stopped BackupPC and removed the client definition.
I then removed the /var/lib/BackupPC directory and all sub trees.  Next, I
created a LVM for the 500 GB disk and mounted it as /var/lib/BackupPC and
created the directories:
       cpool    pool    pc      trash   .ssh (containing my ssh keys)

When I thought I had everything back like it needed to be, I rebooted and
verified service BackupPC started with no errors.  Next I logged into
BackupPC.  I am getting a SELinux AVC error "SELinux is preventing
nm-system-setti (NetworkManager_t) "read" to ./PolicyKit (hald_var_lib_t).
It also said "You could try to restore the default system file context for
./PolicyKit,

        restorecon -v './PolicyKit'

I ran this as root and got the following response:

[root@archiver ~]# restorecon -v './PolicyKit'
restorecon:  stat error on ./PolicyKit:  No such file or directory
[root@archiver ~]# restorecon -v './PolicyKit(hald_var_lib_t)'
restorecon:  stat error on ./PolicyKit(hald_var_lib_t):  No such file or
directory

Below is my resulting disk structure when adding the 500 GB hd (/dev/sdc).
See if you see where this novice user failed to follow standard Linux
procedure.

[ken@winserver ~]$ ssh archiver
ken@archiver's password: 
Last login: Wed Oct 15 15:39:59 2008 from winserver
[ken@archiver ~]$ su -
Password: 
[root@archiver ~]# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x49e249e1

   Device Boot      Start         End      Blocks   Id  System
        Note:  This is my WinXP boot system.
/dev/sda1   *           1        3825    30724281    7  HPFS/NTFS
/dev/sda2            3826       38913   281844360    f  W95 Ext'd (LBA)
/dev/sda5            3826       21303   140392003+   7  HPFS/NTFS
/dev/sda6           21304       38913   141452293+   7  HPFS/NTFS

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0000af4d

   Device Boot      Start         End      Blocks   Id  System
        Note:  This is my Linux boot system.
/dev/sdb1   *           1          26      208813+  83  Linux
/dev/sdb2              27        3914    31230360   8e  Linux LVM
/dev/sdb3            3915       38913   281129467+   f  W95 Ext'd (LBA)
/dev/sdb5            3915        3978      514048+  83  Linux
/dev/sdb6            3979       21444   140295613+  83  Linux
/dev/sdb7           21445       38913   140319711   83  Linux

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
        Note:  This is the disk that to be used for archive storage.
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table   <<< Is this normal
when a disk is set up as LVM storage?

Disk /dev/dm-0: 29.8 GB, 29863444480 bytes
255 heads, 63 sectors/track, 3630 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 483.1 GB, 483183820800 bytes
255 heads, 63 sectors/track, 58743 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

[root@SMBSrvr2 ~]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/archive/BackupPC          <<<  BackupPC
storage
  VG Name                archive
  LV UUID                VXNkp0-40rE-V9of-xAzx-SRoO-JkJY-0DMftP
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                450.00 GB
  Current LE             115200
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:2
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00       <<<  Linux System
  VG Name                VolGroup00
  LV UUID                3Kd6WX-G3ZO-e41S-TIuA-w8VN-jR3Z-BDY1VE
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                27.81 GB
  Current LE             890
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01               
  VG Name                VolGroup00
  LV UUID                IjSXzH-Ujtu-sWb0-56LC-gTLT-71sv-MfRZvG
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.94 GB
  Current LE             62
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:1
   
[root@SMBSrvr2 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       27G  4.2G   22G  17% /
/dev/sdb1             198M   20M  169M  11% /boot
tmpfs                 501M   12K  501M   1% /dev/shm
/dev/mapper/archive-BackupPC
                      443G   11G  411G   3% /var/lib/BackupPC
/dev/sda6             135G  4.0G  131G   3% /media/DATA2
/dev/sdb7             130G  3.5G  120G   3% /media/ARCHIVE2
/dev/sda5             134G   58G   77G  44% /media/DATA1
/dev/sdb6             130G   33G   91G  27% /media/ARCHIVE1
[ken@archiver etc]$ cat fstab
/dev/VolGroup00/LogVol00 /      ext3                            defaults
1  1
LABEL=/boot                             /boot                   ext3
defaults                1  2
Tmpfs                                   /dev/shm                tmpfs
defaults                0  0
Devpts                          /dev/pts                devpts
gid=5,mode=620  0  0
Sysfs                                   /sys                    sysfs
defaults                0  0
Proc                                    /proc                   proc
defaults                0  0
/dev/VolGroup00/LogVol01        swap                    swap    defaults
0  0
/dev/archive/BackupPC           /var/lib/BackupPC       ext3    defaults
0  0
[ken@archiver etc]$ 

-----Original Message-----
From: Nils Breunese (Lemonbit) [mailto:nils AT lemonbit DOT com] 
Sent: Wednesday, October 15, 2008 3:57 AM
To: General list for user discussion,questions and support
Subject: Re: [BackupPC-users] Almost working

Kenneth L. Owen wrote:

> That only leaves one issue:  I can't log into the web GUI from the  
> Windows server.  I have ssl setup and can get the default web page
> with > https://Archiver/  but https://Archiver/BackupPC/ gets a 403
> screen - Not Authorized .  This is the same line that I use on
> Archiver to pull up the BackupPC GUI.  -- ken

I guess the default config shipping with the package you installed  
only allows access from localhost.

Nils Breunese.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/