Gandi.net Groups

Hosting expert mode: Disk NOT mounted

You should be logged in to post new messages. Create an account.

I purchased a three share server (total disk space: 15 GB). 

I attached the 15 GB disk to the server (took more than an hour) and
then rebooted the server.

Now after restarting the server, I did a df -h to see the disk space:

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda1            2.4G  676M  1.6G  30% /
tmpfs                 385M     0  385M   0% /lib/init/rw
udev                   10M   20K   10M   1% /dev
tmpfs                 385M  4.0K  385M   1% /dev/shm

The 15 GB disk is NOT mounted.

My /etc/fstab contents are:

/dev/xvda1    /                 ext3    rw,noatime,errors=remount-ro  0 
  1
/dev/xvda2    none              swap    rw        0    0
none         /proc             proc    rw,nosuid,noexec  0    0

mic2574661@alpha:~$ mount
/dev/xvda1 on / type ext3 (rw,noatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)


How do I get my 15 GB disk space to work? I have sent 4 support tickets
to Gandi but NO reply at all from them.

Any one can help me sort this?

Thanks.
On Feb, 20 2008 10:11 CET, Mary Paulraj wrote:
How do I get my 15 GB disk space to work? I have sent 4 support
tickets to Gandi but NO reply at all from them.
Any one can help me sort this?
What output does "dmesg | grep xvd" give? It should show at least xvda
if there hasn't too many new messages since the last boot.
Thank you for your reply.

dmesg|grep xvd gives:


Kernel command line: root=/dev/xvda1 ro console=xvc0
blkfront: xvda: barriers enabled
 xvda: xvda1 xvda2
Adding 634556k swap on /dev/xvda2.  Priority:-1 extents:1 across:634556k
EXT3 FS on xvda1, internal journal
blkfront: xvdb: barriers enabled
 xvdb: unknown partition table
mic2574661@alpha:~$


xvda1 is mounted as /
xvda2 is swap

I suspect the 15 GB partition is xvdb with an unknown partition table.

How do I solve this?

Thanks,
Mary.

What output does "dmesg | grep xvd" give? It should show at least xvda
if there hasn't too many new messages since the last boot.
I had a similar problem in January. I went to this page:
https://www.gandi.net/admin/hosting/disk/4...
and created the disk, and then attached it to my server.

This process created a new device /dev/xvdb and mounted it at /srv/data1
by some magic (I thought that only I had root access!). 

The mount appeared in /etc/mtab, but not in /etc/fstab. I feared that
without an entry in fstab, it would be unlikely to survive a reboot. I
also wanted to change the mount point, so I mounted it instead at /data,
and added this line to fstab:
/dev/xvdb /data ext3 rw,noatime 0 0

Just to make sure, I rebooted my server (simply by typing reboot at the
root prompt). The reboot was quick - around 50 seconds. Everything came
up OK and the mount was still there.

Apart from this, everything has worked well.
Hi David,

Thank you for your mail.

OK I deleted the disk, recreated it and attached it.

 and now it is working.

Thanks.
Mary.
----


On Feb, 20 2008 22:29 CET, David Barnwell wrote:
I had a similar problem in January. I went to this page:
https://www.gandi.net/admin/hosting/disk/4...
and created the disk, and then attached it to my server.

This process created a new device /dev/xvdb and mounted it at
/srv/data1
by some magic (I thought that only I had root access!). 

The mount appeared in /etc/mtab, but not in /etc/fstab. I feared that
without an entry in fstab, it would be unlikely to survive a reboot. I
also wanted to change the mount point, so I mounted it instead at
/data,
and added this line to fstab:
/dev/xvdb /data ext3 rw,noatime 0 0
Hi David,

I did exactly what you said and it is working now.

However,


mic2574661@alpha:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda1            2.4G  707M  1.6G  31% /
tmpfs                 385M     0  385M   0% /lib/init/rw
udev                   10M   24K   10M   1% /dev
tmpfs                 385M  4.0K  385M   1% /dev/shm
/dev/xvdb              15G  166M   14G   2% /srv/d_alpha
/dev/xvdb              15G  166M   14G   2% /data
/dev/xvdb              15G  166M   14G   2% /srv/d_alpha

How do I get rid of the two superfluous entries in /srv

Thanks
Mary.

On Feb, 20 2008 22:29 CET, David Barnwell wrote:
I had a similar problem in January. I went to this page:
https://www.gandi.net/admin/hosting/disk/4...
and created the disk, and then attached it to my server.

This process created a new device /dev/xvdb and mounted it at
/srv/data1
by some magic (I thought that only I had root access!). 

The mount appeared in /etc/mtab, but not in /etc/fstab. I feared that
without an entry in fstab, it would be unlikely to survive a reboot. I
also wanted to change the mount point, so I mounted it instead at
/data,
and added this line to fstab:
/dev/xvdb /data ext3 rw,noatime 0 0
On Feb, 21 2008 04:55 CET, Mary Paulraj wrote:
How do I get rid of the two superfluous entries in /srv
Gandi uses some udev tricks for mounting those extra disks and that's
why the disks aren't visible in /etc/fstab by default. Probably you
still have the udev script active and that's the reason why you are
getting additional entries. However, I don't know why you're getting the
same entry twice.

That udev script can be disabled from /etc/rc.local (at least in Debian
and Ubuntu). Comment the line starting with 'udevtrigger'. Then edit the
following 'grep' line a little. By default it's searching for 'srv' from
/proc/mounts. Change that 'srv' to 'xvdb'. If you don't keep that grep
line then you won't see the disk with 'df' but it should still work.
Interesting - I hadn't spotted the script in /etc/rc.local. It doesn't
seem to be necessary; an entry in fstab works just as well.

I simply umounted the extra mount points and deleted the /srv directory.
They haven't returned!