Skip to content

Instantly share code, notes, and snippets.

@cliffdickerson
Created August 19, 2009 21:06
Show Gist options
  • Select an option

  • Save cliffdickerson/170650 to your computer and use it in GitHub Desktop.

Select an option

Save cliffdickerson/170650 to your computer and use it in GitHub Desktop.
# create a partition and file system for mpath14
execute "mkfs-ext3-mpath14p1" do
command "mkfs.ext3 -q /dev/mapper/mpath14p1"
action :nothing
end
execute "parted_mpath14" do
command "parted -s -- /dev/mapper/mpath14 mkpart primary ext3 0 -1"
creates "/dev/mapper/mpath14p1"
action :run
notifies :run, resources(:execute => "mkfs-ext3-mpath14p1")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment