Everything goes smooth up to the part that I partition the volume /dev/sdj - the .sh script tells me:
[root@domU-12-31-38-01-B8-E8 html]# /opt/workhabit/connect-ebs.sh
mount: you must specify the filesystem type
mv: cannot overwrite directory `/var/lib/mysql_bak/mysql' with non-directory
Restarting apache and mysql ok, ok

So I try and specify the filesystem type as ext3
[root@domU-12-31-38-01-B8-E8 html]# /sbin/mkfs.ext3 -L /ebs /dev/sdj1

I run the shell scipt again and it goes haywire, how about a little more exacting directions on the fdisk part in order to get the shell script working with the situation? Been at this for 3 days straight....

[root@domU-12-31-38-01-B8-E8 sbin]# /opt/workhabit/connect-ebs.sh
moving existing document root to ebs volume.
moving existing database to ebs volume.
Restarting apache and mysql
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 280 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
[FAILED]
rm: cannot remove `/var/lib/mysql/mysql.sock': Too many levels of symbolic links
Stopping MySQL: [ OK ]
Initializing MySQL database: mkdir: cannot create directory `/var/lib/mysql': File exists
chmod: cannot access `/var/lib/mysql': Too many levels of symbolic links
mkdir: cannot create directory `/var/lib/mysql/mysql': Too many levels of symbolic links
chmod: cannot access `/var/lib/mysql/mysql': Too many levels of symbolic links
mkdir: cannot create directory `/var/lib/mysql/test': Too many levels of symbolic links
chmod: cannot access `/var/lib/mysql/test': Too many levels of symbolic links
chown: cannot dereference `/var/lib/mysql': Too many levels of symbolic links
chown: cannot access `/var/lib/mysql/mysql': Too many levels of symbolic links
chown: cannot access `/var/lib/mysql/test': Too many levels of symbolic links
Installing MySQL system tables...
081004 19:13:13 [Warning] Can't create test file /var/lib/mysql/domU-12-31-38-01-B8-E8.lower-test
081004 19:13:13 [Warning] Can't create test file /var/lib/mysql/domU-12-31-38-01-B8-E8.lower-test
/usr/libexec/mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 40)
081004 19:13:13 [ERROR] Aborting

081004 19:13:13 [Note] /usr/libexec/mysqld: Shutdown complete

Installation of system tables failed!

Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/libexec/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:

shell> /usr/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
[FAILED]

Comments

redhatmatt’s picture

Assigned: Unassigned » redhatmatt
Status: Active » Fixed

Ok so my big mistake was going to far, the instructions should say Make a partition, then give the volume an ext3 filesystem... but don't try and make a mountpoint, the script will do it for you.... so in the default instance should simply be:
/sbin/fdisk /dev/sdj
n (create a new partition)
p (make it a primary partition)
1 (call this partition #1)
hit enter to start at the first sector
hit enter again to end at the last sector (in other words make the partition fill the entire drive)
w (write the partition to the disk and quit the program)
/sbin/mkfs.ext3 /dev/sdj1

THEN RUN THE SHELL SCRIPT:
/opt/workhabit/connect-ebs.sh

Reboot your instance through, say rightscale...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.