From: Michal J. <mi...@ha...> - 2004-09-04 19:50:50
|
On Sat, Aug 28, 2004 at 03:01:02PM -0500, Luke Palmer wrote: > I can't just do 'bpsh X fdisk' because the /dev filesystem isn't > present on slave nodes. There is, although various special files you would like to have in the specific situation may be not there; but nothing prevents you from adding these. A simple way is to use 'plugin miscfiles' directive in your node_up.conf and add whatever devices you would like to see. Alternatively something in that style will do (assuming that you want all /dev/hda* on nodes - as an example ): find /dev -name 'hda*' | cpio -o -c --quiet | \ bpsh $node cpio --quiet -imd for every "$node" you want that to happen. This can be run from 'node_up' script, or later, or separately. Whatever you need/desire. 'tar' instead of 'cpio' will do as well as GNU tar handles special device files too and there are still some other ways to accomplish that goal. > So- what's a good way to partition? 'sfdisk' run on nodes is handy as you can feed it a requested partitioning scheme from stdin. You may need some additional libraries for that and 'ldd' will tell you what they are. Add them to your configuration or copy to nodes similar like the above and you are set. Scripting that is a good idea .:-) For a specific situation that will be a few lines; things are getting longer if you are trying to be general. You will likely need still some other shared libraries if you would want to set some file systems, or run 'mkswap', on freshly created disk partitions. On 2004/Aug/20 I posted a message with a subject "Note on modules on nodes (NFS support in particular)" which included a sample script. Techniques demonstrated there apply here as well. Michal |