Hi All,
I have an issue whereby I need to manage a mount that is a physical mount of a
device as well as a bind mount entry.
Physical Mount
=============
file { "/exports":
owner => "root",
group => "root",
mode => "771",
ensure => directory,
}
file { "/exports/homes":
owner => "root",
group => "Domain Users",
mode => "2771",
ensure => directory,
require => File["/exports"],
}
file { "/srv":
ensure => directory,
}
file { "/srv/homes":
ensure => directory,
require => File["/srv"],
}
mount { "/exports/homes":
device => "LABEL=homes",
fstype => "xfs",
ensure => "mounted",
options => "inode64,nobarrier,delaylog,uquota,grpquota",
atboot => true,
require => File["/exports/homes"],
}
But then I also need a bind mount
mount { "/srv/homes":
device => "/exports/homes",
fstype => "none",
ensure => "mounted",
options => "bind",
atboot => true,
}
So I wind up with the following in /etc/fstab
LABEL=homes /exports/homes xfs
inode64,nobarrier,delaylog,uquota,grpquota 0 0
/srv/homes /exports/homes none bind 0 0
Currently this results in a
Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate
declaration:
Is there a way that I can manage both the bind mount and the physical volume
mount at the same time.
--
James A. Peltier
Manager, IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone : 778-782-6573
Fax : 778-782-3045
E-Mail : jpeltier@sfu.ca
Website : http://www.sfu.ca/itservices
“A successful person is one who can lay a solid foundation from the bricks
others have thrown at them.” -David Brinkley via Luke Shaw
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
James A. Peltier
2013-Aug-24 04:09 UTC
Re: [Puppet Users] Managing multiple "types" of mounts
----- Original Message -----
| Hi All,
|
| I have an issue whereby I need to manage a mount that is a physical
| mount of a device as well as a bind mount entry.
|
|
| Physical Mount
| =============|
| file { "/exports":
| owner => "root",
| group => "root",
| mode => "771",
| ensure => directory,
| }
|
| file { "/exports/homes":
| owner => "root",
| group => "Domain Users",
| mode => "2771",
| ensure => directory,
| require => File["/exports"],
| }
|
| file { "/srv":
| ensure => directory,
| }
|
| file { "/srv/homes":
| ensure => directory,
| require => File["/srv"],
| }
|
|
| mount { "/exports/homes":
| device => "LABEL=homes",
| fstype => "xfs",
| ensure => "mounted",
| options => "inode64,nobarrier,delaylog,uquota,grpquota",
| atboot => true,
| require => File["/exports/homes"],
| }
|
|
| But then I also need a bind mount
|
| mount { "/srv/homes":
| device => "/exports/homes",
| fstype => "none",
| ensure => "mounted",
| options => "bind",
| atboot => true,
| }
|
Sorry this is a mistype. It should be this
mount { "/export/homes":
device => "/srv/homes",
fstype => "none",
ensure => "mounted",
options => "bind",
atboot => true,
}
--
James A. Peltier
Manager, IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone : 778-782-6573
Fax : 778-782-3045
E-Mail : jpeltier@sfu.ca
Website : http://www.sfu.ca/itservices
“A successful person is one who can lay a solid foundation from the bricks
others have thrown at them.” -David Brinkley via Luke Shaw
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
James A. Peltier
2013-Aug-24 08:29 UTC
Re: [Puppet Users] Managing multiple "types" of mounts
Please disregard this. I was mistaken in syntax and it works as it should.
----- Original Message -----
| ----- Original Message -----
| | Hi All,
| |
| | I have an issue whereby I need to manage a mount that is a physical
| | mount of a device as well as a bind mount entry.
| |
| |
| | Physical Mount
| | =============| |
| | file { "/exports":
| | owner => "root",
| | group => "root",
| | mode => "771",
| | ensure => directory,
| | }
| |
| | file { "/exports/homes":
| | owner => "root",
| | group => "Domain Users",
| | mode => "2771",
| | ensure => directory,
| | require => File["/exports"],
| | }
| |
| | file { "/srv":
| | ensure => directory,
| | }
| |
| | file { "/srv/homes":
| | ensure => directory,
| | require => File["/srv"],
| | }
| |
| |
| | mount { "/exports/homes":
| | device => "LABEL=homes",
| | fstype => "xfs",
| | ensure => "mounted",
| | options => "inode64,nobarrier,delaylog,uquota,grpquota",
| | atboot => true,
| | require => File["/exports/homes"],
| | }
| |
| |
| | But then I also need a bind mount
| |
| | mount { "/srv/homes":
| | device => "/exports/homes",
| | fstype => "none",
| | ensure => "mounted",
| | options => "bind",
| | atboot => true,
| | }
| |
|
| Sorry this is a mistype. It should be this
|
| mount { "/export/homes":
| device => "/srv/homes",
| fstype => "none",
| ensure => "mounted",
| options => "bind",
| atboot => true,
| }
|
|
|
| --
| James A. Peltier
| Manager, IT Services - Research Computing Group
| Simon Fraser University - Burnaby Campus
| Phone : 778-782-6573
| Fax : 778-782-3045
| E-Mail : jpeltier@sfu.ca
| Website : http://www.sfu.ca/itservices
|
| “A successful person is one who can lay a solid foundation from the
| bricks others have thrown at them.” -David Brinkley via Luke Shaw
|
| --
| You received this message because you are subscribed to the Google
| Groups "Puppet Users" group.
| To unsubscribe from this group and stop receiving emails from it,
| send an email to puppet-users+unsubscribe@googlegroups.com.
| To post to this group, send email to puppet-users@googlegroups.com.
| Visit this group at http://groups.google.com/group/puppet-users.
| For more options, visit https://groups.google.com/groups/opt_out.
|
--
James A. Peltier
Manager, IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone : 778-782-6573
Fax : 778-782-3045
E-Mail : jpeltier@sfu.ca
Website : http://www.sfu.ca/itservices
“A successful person is one who can lay a solid foundation from the bricks
others have thrown at them.” -David Brinkley via Luke Shaw
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.