Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
EBS tutorial mount point and file permissions related
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
RodneyQ  
View profile  
 More options Aug 25 2008, 10:28 am
From: RodneyQ <imco...@gmail.com>
Date: Mon, 25 Aug 2008 07:28:44 -0700 (PDT)
Local: Mon, Aug 25 2008 10:28 am
Subject: EBS tutorial mount point and file permissions related

Hi Guys,

I was able to follow the your tutorial about EBS, mysql server
installed(note mysql uid=105, gid=111) . A new snapshot was created
and a new volume is made using that snapshot.

On the new instance with several users created before mysql-server is
installed, the volume is attached. But one thing I notice, after
mounting the new volume it gets the different file permissions.

Perhaps we should be careful or change the ownership of the mysql data
to the correct owner after mounting the volume..just a thought.

Thanks,
Rodney


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Hammond  
View profile  
 More options Aug 30 2008, 4:09 am
From: Eric Hammond <ehamm...@thinksome.com>
Date: Sat, 30 Aug 2008 01:09:32 -0700 (PDT)
Local: Sat, Aug 30 2008 4:09 am
Subject: Re: EBS tutorial mount point and file permissions related
Rodney:

Excellent point.  Thanks for catching this.

I have updated the tutorial with a couple lines to fix mysql file
ownership in the event any other users were created before the mysql-
server package was installed.

  http://ec2ebs-mysql.notlong.com

Thanks,
--
Eric Hammond
http://www.anvilon.com

On Aug 25, 7:28 am, RodneyQ <imco...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Srikanth Pagadala  
View profile  
 More options Aug 30 2008, 4:17 am
From: "Srikanth Pagadala" <srikanth.pagad...@gmail.com>
Date: Sat, 30 Aug 2008 01:17:09 -0700
Local: Sat, Aug 30 2008 4:17 am
Subject: Re: [ec2ubuntu] Re: EBS tutorial mount point and file permissions related

Eric

in one of your posts you said, the snapshot script
http://ec2-snapshot-xfs-mysql.notlong.com is not robust yet.
i'm not a perl/unix script expert, so was wondering whats is lacking in it.
I'm in the process of "bundling" an image with this script to snapshot my
ESB along with many other stuff ...
do you think this script is production ready?

On Sat, Aug 30, 2008 at 1:09 AM, Eric Hammond <ehamm...@thinksome.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Hammond  
View profile  
 More options Aug 30 2008, 4:47 am
From: Eric Hammond <ehamm...@thinksome.com>
Date: Sat, 30 Aug 2008 01:47:44 -0700 (PDT)
Local: Sat, Aug 30 2008 4:47 am
Subject: Re: EBS tutorial mount point and file permissions related
Srikanth:

I guess my main complaints (against myself) are that the script does
not validate user input and does not do a good job of checking for
errors from the statements it runs.  It pretty much assumes the world
is perfect.

That said, I'm using the script personally until I get around to
improving it.

Patches welcomed.

--
Eric Hammond
http://www.anvilon.com

On Aug 30, 1:17 am, "Srikanth Pagadala" <srikanth.pagad...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hareem Haque  
View profile  
 More options Aug 30 2008, 11:02 am
From: Hareem Haque <hareem.ha...@gmail.com>
Date: Sat, 30 Aug 2008 11:02:59 -0400
Local: Sat, Aug 30 2008 11:02 am
Subject: Re: [ec2ubuntu] Re: EBS tutorial mount point and file permissions related
Folks. A quick question. Which filesystem would you recommend i use. I
only need to persistently store data. I would be needing mysql to run
within EBS. Is XFS better or EXT3

Regards
Hareem.Haque


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Srikanth Pagadala  
View profile  
 More options Aug 30 2008, 12:11 pm
From: "Srikanth Pagadala" <srikanth.pagad...@gmail.com>
Date: Sat, 30 Aug 2008 09:11:09 -0700
Local: Sat, Aug 30 2008 12:11 pm
Subject: Re: [ec2ubuntu] Re: EBS tutorial mount point and file permissions related

:o) hmm..that should not be a problem in most of the cases in this context,
as this script should be called by cron.
In cron env, once inputs (and paths etc) are properly set in ~ dirs, things
will not go wrong.

New questions:

   - is there any way to detect the 'attached vol-id' in the EC2 instance?
   bascially what i want to do is somehow automate the input arguments to your
   "snapshot" script and bundle an image. so whenever an instance is launched
   from this image, the cron kick starts the "snapshot" script, which
   internally detects the attached (if any) volume and starts backing it up. If
   more than one volumes are attached to the EC2 instance, then it would backup
   all of them. Possible?
   - FEATURE REQUEST: can we build a very simple throw away policy (delete
   old snapshot strategy) in the script, such that whenever it creates a new
   snapshot, it also does some level of cleanup.

Unfortunately I cannot contribute patches for the script, as I'm more of a
Flex/Java guy. These unix level scripts are too daunting for me. Without
your AMIs and scripts, I dont know what would i have done.

thanks once again.

On Sat, Aug 30, 2008 at 1:47 AM, Eric Hammond <ehamm...@thinksome.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Srikanth Pagadala  
View profile  
 More options Aug 30 2008, 12:22 pm
From: "Srikanth Pagadala" <srikanth.pagad...@gmail.com>
Date: Sat, 30 Aug 2008 09:22:07 -0700
Local: Sat, Aug 30 2008 12:22 pm
Subject: Re: [ec2ubuntu] Re: EBS tutorial mount point and file permissions related

Hareem

i took Eric's recommendation and stayed with XFS. so far, it is working very
well for me. I've a giant mysql on my XFS mount, which gets snapshoted every
hour. i believe XFS is more optimized for LOCKING kinda stuff, which is
kinna more desired here. Again, I'm not a UNIX guy, so I've been taking
expert (Eric's) advice all along.

On Sat, Aug 30, 2008 at 8:02 AM, Hareem Haque <hareem.ha...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hareem Haque  
View profile  
 More options Aug 30 2008, 12:32 pm
From: Hareem Haque <hareem.ha...@gmail.com>
Date: Sat, 30 Aug 2008 12:32:16 -0400
Local: Sat, Aug 30 2008 12:32 pm
Subject: Re: [ec2ubuntu] Re: EBS tutorial mount point and file permissions related
I generally use mencoder for video conversion for a few clients. Thats
the main reason for me having an AWS account.

After the data processing gets done I upload the data to my S3 account.
The Mysql db only contains public links to this content. So the largest
db that  i have created is a few megabytes.

The reason i asked was that i heard from a few people that XFS will
freeze on its on and its not a very reliable fs.

But on the forums i see a lot of people using xfs and even Rightscale
recommends it. I wanted to know if it would be better as a  db fs cause
i dont know how to freeze the fs from rightscale. However, thanks for
the info. I will most certainly try out xfs. Hopefully, everything would
work out ok.

Lastly, Eric you have out done your self. I read your article and its
very well written and its by one of the easiest instructions article
that I have come across.

Regards
Hareem. Haque


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RodneyQ  
View profile  
 More options Sep 1 2008, 4:59 am
From: RodneyQ <imco...@gmail.com>
Date: Mon, 1 Sep 2008 01:59:08 -0700 (PDT)
Local: Mon, Sep 1 2008 4:59 am
Subject: Re: EBS tutorial mount point and file permissions related

>    - is there any way to detect the 'attached vol-id' in the EC2 instance?

I think the command ec2-describe-volumes can return these values.
ec2-describe-volumes | grep i-111111  i.e i-11111 is the instance id

Output: ATTACHMENT      vol-1025c079    i-5b72a932      /dev/sdh        attached
2008-08-22T09:34:05+0000

If used inside a startup script, that would be someting like:

INSTANCE_ID=$(curl http://169.254.169.254/latest/meta-data/instance-id)
VOL_ID=$(ec2-describe-volumes | grep $INSTANCE_ID | awk '{ print
$2 }')

The variable VOL_ID contains the volume id connected to the current
instance(assuming only a single volume is connected to the instance)
Hope this helps.

Rodney


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »