Skip to content

Instantly share code, notes, and snippets.

@cdenneen
Last active December 15, 2015 16:19
Show Gist options
  • Save cdenneen/5287960 to your computer and use it in GitHub Desktop.
Save cdenneen/5287960 to your computer and use it in GitHub Desktop.
testing NFS remount
[root@rndeapvhmdb1 ~]# df -F nfs
Filesystem 1K-blocks Used Available Use% Mounted on
10.1.60.80:/sysadmin/share/backup
75628000 40365184 35262816 54% /mnt/backup
[root@rndeapvhmdb1 ~]# grep nfs /etc/fstab
10.1.60.80:/sysadmin/share/backup /mnt/backup nfs defaults 0 0
[root@rndeapvhmdb1 ~]# puppet agent -t
Notice: Ignoring --listen on onetime run
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Caching catalog for rndeapvhmdb1.rnd.local
Info: Applying configuration version '1365024635'
Notice: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]/device: device changed '10.1.60.80:/sysadmin/share/backup' to '10.1.60.80:/sysadmin/share/backup/mongo/qa'
Info: FileBucket adding {md5}fe48634608389293569cf6b13cf197b9
Info: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Scheduling refresh of Mount[/mnt/backup]
Info: Mount[/mnt/backup](provider=parsed): Remounting
Notice: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Triggered 'refresh' from 1 events
Info: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Scheduling refresh of Mount[/mnt/backup]
Notice: Finished catalog run in 63.38 seconds
[root@rndeapvhmdb1 ~]# grep nfs /etc/fstab
10.1.60.80:/sysadmin/share/backup/mongo/qa /mnt/backup nfs defaults 0 0
[root@rndeapvhmdb1 ~]# df -F nfs
Filesystem 1K-blocks Used Available Use% Mounted on
10.1.60.80:/sysadmin/share/backup
75628000 40365184 35262816 54% /mnt/backup
[root@rndeapvhmdb1 ~]# mount /mnt/backup
mount.nfs: /mnt/backup is busy or already mounted
[root@rndeapvhmdb1 ~]# df -F nfs
Filesystem 1K-blocks Used Available Use% Mounted on
10.1.60.80:/sysadmin/share/backup
75628000 40365184 35262816 54% /mnt/backup
Info: Applying configuration version '1364851937'
Notice: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]/device: device changed '10.1.60.80:/sysadmin/share/backup/mongo/qa' to '10.1.60.80:/sysadmin/share/backup'
Info: FileBucket adding {md5}b2d325f65ac4b3dd19e0021da72c94e4
Info: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Scheduling refresh of Mount[/mnt/backup]
Info: Mount[/mnt/backup](provider=parsed): Remounting
Notice: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Triggered 'refresh' from 1 events
Info: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Scheduling refresh of Mount[/mnt/backup]
Notice: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]/device: device changed '10.1.60.80:/sysadmin/share/backup' to '10.1.60.80:/sysadmin/share/backup/mongo/qa'
Info: FileBucket adding {md5}cc321f8cb544eb286975273ed322b690
Info: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Scheduling refresh of Mount[/mnt/backup]
Info: Mount[/mnt/backup](provider=parsed): Remounting
Notice: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Triggered 'refresh' from 1 events
Info: /Stage[main]/Projects::Videohub_mongodb::Qa/Mount[/mnt/backup]: Scheduling refresh of Mount[/mnt/backup]
class projects::videohub_mongodb::qa {
file { "backup":
path => "/mnt/backup",
ensure => "directory",
} ->
mount { "/mnt/backup":
#device => "10.1.60.80:/sysadmin/share/backup/mongo/qa",
device => "10.1.60.80:/sysadmin/share/backup",
fstype => "nfs",
ensure => "mounted",
options => "defaults",
atboot => true,
remounts => true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment