<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
e2fsck should be run on the partition and not the disk.<br>
<br>
So<br>
<br>
sudo e2fsck /dev/sdz1<br>
<br>
should work. BTW, if you put a $ in your sample command lines, I think
you are running it as non-root user so I always think you need a sudo.
If you are running them as root, I would expect a #.<br>
<br>
Also, I am very confused why the error message says anything about
/dev/sdo, if the disk you ran it on was sdz.<br>
<br>
I am having some of the same problems you are, so there is something
strange going on and I don't know what yet. I must have never resized
a starcluster ebs volume. I guess it was something else. I know I
have resized root ebs volumes according to the alestic instructions but
never anything with a partition in it ... I guess. I am working on
building a new version of parted to see if that helps things any.<br>
<br>
Austin<br>
<br>
<br>
<br>
<br>
On 08/12/2010 08:01 PM, Dan Yamins wrote:
<blockquote
cite="mid:AANLkTim0e+6S3Rmq3UXYCkgvi=uF2DPcUYN6QnQ7SQ5=@mail.gmail.com"
type="cite">Let me add one more thing to this thread:<br>
<br>
Even on ubuntu, even with my original volume, you can't do "e2fsck" of
the "device" , e.g. <br>
<br>
$ e2fsck /dev/sdz<br>
Couldn't find ext2 superblock, trying backup blocks...<br>
e2fsck: Bad magic number in super-block while trying to open /dev/sdo<br>
...<br>
<br>
Is that to be expected? In a number of tutorials on resizing EBS
volumes, i have seen this done with the devices itself. Is the reason
this is failing because its a partitioned drive? <br>
<br>
<br>
<br>
<div class="gmail_quote">On Thu, Aug 12, 2010 at 6:43 PM, Dan Yamins <span
dir="ltr"><<a moz-do-not-send="true" href="mailto:dyamins@gmail.com">dyamins@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
<div>
<div>
<blockquote type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
<div>
<div>
<blockquote type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">Do you have a
snapshot?
I
have used parted and e2resizefs to expand an
ext3 filesystem without trouble.<br>
</div>
</blockquote>
<div><br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br>
</div>
<div class="im">So I'm trying parted on a new, clean volume created
from the snapshot, attached to /dev/sdm As I explained before, I can't
do<br>
<br>
$ parted /dev/sdm<br>
</div>
<div class="im">[root@domU-12-31-39-0E-B2-61 ~]# parted /dev/sdm<br>
Error: Error initialising SCSI device /dev/sdm - Invalid argument <br>
<br>
</div>
AUstin, when you did this did you get that same error? <br>
<div class="im"><br>
<br>
I <i>CAN</i> do parted on the path:<br>
<br>
</div>
<div class="im">$ parted /dev/sdm1<br>
GNU Parted 1.8.1<br>
Using /dev/sdm1<br>
Welcome to GNU Parted! Type 'help' to view a list of commands.<br>
<br>
</div>
<div>
<div class="h5">But then i get this error:<br>
<br>
(parted) resize 1 0 500GB<br>
Error: The location 500GB is outside of the device /dev/sdo1.<br>
<br>
Which is course is true ...<br>
<br>
(parted)
print <br>
Disk /dev/sdm1: 21.5GB<br>
Sector size (logical/physical): 512B/512B<br>
Partition Table: loop<br>
<br>
Number Start End Size File system Flags<br>
1 0.00kB 21.5GB 21.5GB ext3 <br>
<br>
<br>
So I'm not sure where to go from here... <br>
<br>
</div>
</div>
<font color="#888888">Dan<br>
<br>
</font></blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Starcluster mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Starcluster@mit.edu">Starcluster@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/starcluster">http://mailman.mit.edu/mailman/listinfo/starcluster</a>
</pre>
</blockquote>
<br>
</body>
</html>