Re: NFS second disk -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/14/2018 08:07 AM, Bob Goodwin wrote:
> I assembled an NFS server about a month ago and it seems to work
> properly, has been in use continuouslysince then ...
> 
> However I installed two 3TB discs and only enabled /dev/sda. I would
> like to simply copy data from time to time from /dev/sda to /dev/sdb.
> 
> I cant work out how to accomplish this and am about at the point of just
> moving the second disk into a works station and doing an rsync
> occasionally for a back up. I would prefer to keep the /sda/sdb drive in
> the server. Presently the server has in fstab:
> 
> [bobg@ASRock-J3455M ~]$ cat /etc/fstab
> 
> #
> # /etc/fstab
> # Created by anaconda on Thu Apr 12 16:33:43 2018
> #
> # Accessible filesystems, by reference, are maintained under '/dev/disk'
> # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
> #
> /dev/mapper/fedora-root / ext4    defaults        1 1
> UUID=d9715d27-426c-4e6f-8741-ea052fe7bab2 /boot                  
> ext4    defaults        1 2
> UUID=1128-BE6B          /boot/efi vfat    umask=0077,shortname=winnt 0 2
> /dev/mapper/fedora-home /home ext4    defaults        1 2
> /dev/mapper/fedora-swap swap
> 
> and for exports:
> 
> [bobg@ASRock-J3455M ~]$ cat /etc/exports
> /home    192.168.1.0/24(rw,no_root_squash)
> 
> #/exports/home
> 192.168.1.0/24(rw,sync,insecure,no_root_squash,no_subtree_check,fsid=0)
> 
> # /exports   192.168.1.0/255.255.255.0(ro,sync)
> # /exports/home/public/192.168.1.0/255.255.255.0(rw,sync)
> # /exports 192.168.54.0/255.255.255.0(ro,sync)
> 
> Can anyone tell me what I need to do or point to an instruction for tobe
> able to access the second disk?

Mount the second drive somewhere on the server and you can do an
rsync locally to back up files. It appears your /dev/sda thing is
an LVM drive with one volume group ("fedora") and three volumes ("root",
"home" and "swap"). You appear to be exporting the home volume for NFS.

So, partition the second drive, create a mountpoint on the server for
the second drive and mount it there. For example:

	# mkdir /media/backups
	# mount /dev/sdb1 /media/backups

You could then do:

	# rsync -a /home /media/backups

and you'd rsync everything from what you're exporting to the second
drive. I do a similar thing for backups. I mount an external USB drive
to /media/Backups and run a command such as:

	# nice -n 19 /bin/rsync -aS --exclude-from=/etc/skipdirs.rsync /
/media/Backups

Where the content of /etc/skipdirs.rsync is:

	/proc/*
	/sys/*
	/dev/*
	/media/**
	/mnt/**
	/var/log/journal/*

So I don't back up things that are transient or things already backed
up.

Just a suggestion.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
- If at first you don't succeed, quit. No sense being a damned fool! -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/CLBHB73V3GI2SKK7726ADI33VLPVTIOY/



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux