- From: snacktime <snacktime@gmail.com>
- To: chef@lists.opscode.com
- Subject: Re: mkfs and mdadm support
- Date: Thu, 18 Jun 2009 23:35:17 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DVgurDiRCRK7J3HK7E5lTIiNvH0nX0Hg1tgipNSQtIqE/mJ9DY1ckcLT5snSRBeHA+ KfmgS/NB38gkisL11+N0Lt/RDtaiXaRfMqdaP+5LEKvO6KA0Il2uYsGleP8TfA0GZUmV fUIEmbE/LeFcx5mKwka1OCmA6YesqO5aDSbOI=
Finally got around to opening up a couple of tickets on this. I need to finish up some of the specs, I've been concentrating more on real world testing. Should be ready to have it pulled in this weekend. Here are a couple quick examples of what it can do so far.
Filesystem provider:
file_system "/dev/sde" do
device '/dev/sde'
partitions [
{'number' => 2, 'type' => 'raid', 'start' => '5GB', 'end' => '10GB'},
{'number' => 1, 'type' => 'raid', 'start' => '0GB', 'end' => '5GB'}
]
action :partition
end
file_system "/dev/sde1" do
device '/dev/sde1'
fs_type 'ext3'
options '-j'
action :create_fs
end
file_system "/dev/sde1" do
device '/dev/sde1'
fs_type 'ext3'
action :resize_fs
end
Raid provider:
raid '/dev/md0' do
device '/dev/md0'
raid_devices ['/dev/sdc','/dev/sdd']
level 1
action [:create,:assemble]
end
file_system "/dev/md0" do
device '/dev/md0'
fs_type 'ext3'
options '-j'
action :create_fs
end
raid '/dev/md0' do
device '/dev/md0'
action [:stop]
end
On Sat, Jun 13, 2009 at 8:05 PM, snacktime
<snacktime@gmail.com> wrote:
On Sat, Jun 13, 2009 at 7:20 PM, Arjuna Christensen
<aj@opscode.com> wrote:
On Fri, Jun 12, 2009 at 11:41 PM, Ezra Zygmuntowicz
<ez@engineyard.com> wrote:
The way I'm working with EBS volumes on ec2 where I want it to format the EBS device as ext3 *only* if it is not already formatted and then ensure it is properly mounted, I also want to grow the filesystem to fill the space in case i booted from a snapshot with a larger volume size.
Thanks Ezra that gave me another tool I didn't know about, e2label.
So I've got most of a filesystem resource/provider working. It can create linux/raid/lvm partitions with parted, and then add ext3/xfs filesystems to linux partitions if specified.
Awesome! Have you opened up a ticket for this improvement? Providing the specs are sufficient, I'm happy to include this is 0.7.2 =D
Regards,
AJ
I'll open a ticket for this and the raid resource, I *should* be able to get them mostly finished this weekend. I have specs for the resources, need to get some for the providers.
Chris
- RE: mkfs and mdadm support, (continued)
- RE: mkfs and mdadm support, Steven Parkes, 06/09/2009
- Re: mkfs and mdadm support, snacktime, 06/09/2009
- Re: mkfs and mdadm support, Jeffrey Hulten, 06/09/2009
- Re: mkfs and mdadm support, Edward Muller, 06/09/2009
- Re: mkfs and mdadm support, snacktime, 06/12/2009
- Re: mkfs and mdadm support, snacktime, 06/12/2009
- Re: mkfs and mdadm support, Ezra Zygmuntowicz, 06/12/2009
- Re: mkfs and mdadm support, snacktime, 06/13/2009
- Re: mkfs and mdadm support, Arjuna Christensen, 06/13/2009
- Re: mkfs and mdadm support, snacktime, 06/13/2009
- Re: mkfs and mdadm support, snacktime, 06/18/2009
- Re: mkfs and mdadm support, Arjuna Christensen, 06/19/2009
- Re: mkfs and mdadm support, Adam Jacob, 06/19/2009
- Re: mkfs and mdadm support, Miguel Cabeça, 06/24/2009
- Re: mkfs and mdadm support, Adam Jacob, 06/24/2009
- Re: mkfs and mdadm support, snacktime, 06/24/2009
Re: mkfs and mdadm support, Miguel Cabeça, 06/09/2009
Archive powered by MHonArc 2.6.16.