BackupUsersHomeDirs

From T2B Wiki
Revision as of 12:28, 26 August 2015 by Maintenance script (talk | contribs) (Created page with " === Automoatic procedure === Not yet in place. Could be easy done with a cronjob every week. For the moment it is done manually every Tuesday. === Make sure the rem...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Automoatic procedure

Not yet in place. Could be easy done with a cronjob every week. For the moment it is done manually every Tuesday.


Make sure the remote partitions are correctly mounted

  • Run df -h and look at the last lines:
[root@jefke /]$ df -h 
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/s10x_u8wos_08a
############8T    29G   1.8T     2%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   3.7G   400K   3.7G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap2.so.1
############8T    29G   1.8T     2%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   3.7G    52K   3.7G     1%    /tmp
swap                   3.7G    32K   3.7G     1%    /var/run
rpool/export           1.8T   235K   1.8T     1%    /export
rpool/export/home      1.8T   234K   1.8T     1%    /export/home
rpool                  1.8T   244K   1.8T     1%    /rpool
storage                 62T   265K    40T     1%    /storage
storage/localgrid      4.0T   2.8T   1.2T    70%    /storage/localgrid
storage/pooluser       500G   7.5G   493G     2%    /storage/pooluser
storage/sandbox        500G   153G   327G    32%    /storage/sandbox
storage/user            62T    14T    40T    27%    /storage/user
storage/userbackup      62T   103G    40T     1%    /storage/userbackup
134.184.129.203:/fs-iihe01
                       9.8T   6.9T   2.9T    71%    /mnt/nas-disk1
134.184.129.203:/fs-iihe02
                       9.8T   6.1T   3.7T    62%    /mnt/nas-disk2
  • should be automatically done via /etc/vsftab (equivalent to /etc/fstab in Linux)
[root@jefke /]$ cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/zvol/dsk/rpool/swap        -       -       swap    -       no      -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
134.184.129.203:/fs-iihe01  -  /mnt/nas-disk1 nfs - yes vers=3,rsize=32768,wsize=32768
134.184.129.203:/fs-iihe02  -  /mnt/nas-disk2 nfs - yes vers=3,rsize=32768,wsize=32768
  • If it is not yet the case run:
[root@jefke /]$ mount -a
mount: /tmp is already mounted or swap is busy


Rsync commands

Usualy I open a VNC session on ccq (ask Olivier for details) and I run the following commands on two separeted consoles:

  • First part of the alphabet
rsync -av --delete --exclude='/[n-z]*' --exclude Backup --exclude alkaloge/Workspace/MG5v1.1/Submit /user/ /mnt/nas-disk1/ > rsync-Alpha1-050720111130.log 2>&1
  • Second part of the alphabet
rsync -av --delete --exclude='/[a-m]*' /user/ /mnt/nas-disk2/ > rsync-Alpha2-050720111131.log 2>&1

Notice --exclude Backup and --exclude alkaloge/Workspace/MG5v1.1/Submit are two special cases.



Template:TracNotice