Problems adding SSD Drive
-
- New to forums
- Posts: 12
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Tue Apr 01, 2014 5:06 pm
Problems adding SSD Drive
Hi All
Was recommended by the support team to post here on this issue so everybody could jump in and assist.
I just added an SSD Drive to my VDS, running CentOS.
Disk /dev/hdb: 10.7 GB, 10737418240 bytes
That shows up in fdisk -l so I guess that's what I use.
I ran:
mkdir /ssd
mount /dev/hdb /ssd
Also tried:
mkdir /ssd
mount /dev/hdb1 /ssd
It said:
/dev/hdb already mounted or /ssd busy
I tried with /ssd2 but the same.
I ran: cat /proc/mounts
But it does't show hdb as mounted anywhere..
Any ideas?
Was recommended by the support team to post here on this issue so everybody could jump in and assist.
I just added an SSD Drive to my VDS, running CentOS.
Disk /dev/hdb: 10.7 GB, 10737418240 bytes
That shows up in fdisk -l so I guess that's what I use.
I ran:
mkdir /ssd
mount /dev/hdb /ssd
Also tried:
mkdir /ssd
mount /dev/hdb1 /ssd
It said:
/dev/hdb already mounted or /ssd busy
I tried with /ssd2 but the same.
I ran: cat /proc/mounts
But it does't show hdb as mounted anywhere..
Any ideas?
Re: Problems adding SSD Drive
What's the output of the 'df' command?
Re: Problems adding SSD Drive
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
204065400 87574268 105957860 46% /
/dev/hda1 101086 31645 64222 34% /boot
tmpfs 1035484 0 1035484 0% /dev/shm
/dev/mapper/VolGroup00-LogVol00
204065400 87574268 105957860 46% /
/dev/hda1 101086 31645 64222 34% /boot
tmpfs 1035484 0 1035484 0% /dev/shm
Re: Problems adding SSD Drive
Did you already make a partition on hdb? Usually you make a partition on a device, then mount the partition.
Here is some information on creating a partition: http://www.howtogeek.com/106873/how-to- ... -on-linux/
Can you post an output of fdisk -l /dev/hdb?
Here is some information on creating a partition: http://www.howtogeek.com/106873/how-to- ... -on-linux/
Can you post an output of fdisk -l /dev/hdb?
Not a NFO employee
Re: Problems adding SSD Drive
Disk /dev/hdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 652 5237158+ 8e Linux LVM
I will look at your tutorial.. thanks
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 652 5237158+ 8e Linux LVM
I will look at your tutorial.. thanks
Re: Problems adding SSD Drive
It doesn't look like you made the partition right, maybe John or someone else better with this stuff can chime in.
Not a NFO employee
Re: Problems adding SSD Drive
That was before I did any partitioning.
fdisk -l /dev/hdb
Disk /dev/hdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 913 7333641 83 Linux
/dev/hdb2 914 1096 1469947+ 83 Linux
I'm at that now, a 7.5gb and a 1.5gb partition which I created.
I try to format it..
[root@samp dev]# mkfs.ext3 /dev/hdb1
mke2fs 1.39 (29-May-2006)
/dev/hdb1 is apparently in use by the system; will not make a filesystem here!
[root@samp dev]# mkfs.ext4 /dev/hdb2
-bash: mkfs.ext4: command not found
I get the feeling I need to do a reboot. I can't do that now, I'll get it scheduled in as I have over 50 players connected right now.
fdisk -l /dev/hdb
Disk /dev/hdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 913 7333641 83 Linux
/dev/hdb2 914 1096 1469947+ 83 Linux
I'm at that now, a 7.5gb and a 1.5gb partition which I created.
I try to format it..
[root@samp dev]# mkfs.ext3 /dev/hdb1
mke2fs 1.39 (29-May-2006)
/dev/hdb1 is apparently in use by the system; will not make a filesystem here!
[root@samp dev]# mkfs.ext4 /dev/hdb2
-bash: mkfs.ext4: command not found
I get the feeling I need to do a reboot. I can't do that now, I'll get it scheduled in as I have over 50 players connected right now.
Re: Problems adding SSD Drive
It is acting as though it is mounted, so it is strange that it isn't. I do recommend a reboot prior to further troubleshooting.
Re: Problems adding SSD Drive
I rebooted. hdb1 still could not be formatted / mounted but hdb2 was able to.
I adjusted hdb1 so it was small (250mb), then make hdb2 7.5gb and hdb3 as 1.5gb.
The SSD seemed to be 10.7 so thought it would be ok.
I rebooted.. now I'm getting:
So right now the machine doesn't boot..
I adjusted hdb1 so it was small (250mb), then make hdb2 7.5gb and hdb3 as 1.5gb.
The SSD seemed to be 10.7 so thought it would be ok.
I rebooted.. now I'm getting:
So right now the machine doesn't boot..
Re: Problems adding SSD Drive
I booted the system in gparted as it was the quickest way to get to a terminal.
Having a look at the logical volumes, it seems that there is a 5GB drive attached to the machine that it can't access.
I know this is a long shot but the only 5GB thing I can think of is the SSD drive I had on my machine a while ago but removed as I didn't need it at the time.
I wonder if me ordering this SSD has caused some kind of problem because I had an SSD before?
Having a look at the logical volumes, it seems that there is a 5GB drive attached to the machine that it can't access.
I know this is a long shot but the only 5GB thing I can think of is the SSD drive I had on my machine a while ago but removed as I didn't need it at the time.
I wonder if me ordering this SSD has caused some kind of problem because I had an SSD before?
Re: Problems adding SSD Drive
If you added an SSD back in after removing it before, you'll see the one that you previously removed (kept and resized to the new size -- not as a second SSD). In that case, you could re-mount it as it was, or wipe it clean and reformat it to start from scratch.
Your boot message suggests that it can't find your root file system, which is a very bad error to have. Are you absolutely certain that you didn't accidentally change the partition table on your boot disk?
Are you sure that gparted doesn't see the physical device? It should see it as /dev/xvdb or /dev/sdb, depending on if it supports PVHVM.
Your boot message suggests that it can't find your root file system, which is a very bad error to have. Are you absolutely certain that you didn't accidentally change the partition table on your boot disk?
Are you sure that gparted doesn't see the physical device? It should see it as /dev/xvdb or /dev/sdb, depending on if it supports PVHVM.
Re: Problems adding SSD Drive
I should also add that we don't recommend using LVM on our VDSes here because our resizing scripts do not support it at present (and there's no real need to use LVM). All of our default images use simpler standard partitions; since you are using LVM, I imagine that you installed CentOS by hand.
If you used the same logical volume group names or UUIDs for your main drive and SSD, that could lead to a conflict. In that case, it would probably be best to just completely wipe the SSD using "dd" and reboot.
If you used the same logical volume group names or UUIDs for your main drive and SSD, that could lead to a conflict. In that case, it would probably be best to just completely wipe the SSD using "dd" and reboot.
Re: Problems adding SSD Drive
Hi
I didn't actually use LVM on purpose but yes I installed CentOS, I haven't actually done anything (atleast not recently) other than as described above. I'm just trying to get to the bottom of this .
I rebooted as I said I would, still wouldn't work, so I adjusted the partition of the SSD again, rebooted and now we're in this state.
It is clear something has gone wrong, be it my own fault (more than likely) or not, just trying now to get a resolution..
I didn't actually use LVM on purpose but yes I installed CentOS, I haven't actually done anything (atleast not recently) other than as described above. I'm just trying to get to the bottom of this .
I rebooted as I said I would, still wouldn't work, so I adjusted the partition of the SSD again, rebooted and now we're in this state.
It is clear something has gone wrong, be it my own fault (more than likely) or not, just trying now to get a resolution..
Re: Problems adding SSD Drive
If you don't feel comfortable with wiping the SSD as I mentioned, then you might try removing it again. This would (hopefully) get you back to where you started, at least, and back online. I could manually delete the SSD image on this end before you try to add it back again.
Re: Problems adding SSD Drive
I ran dd on the SSD, it's now 10GB of unallocated, unformatted space.
Still getting
On boot.
Still getting
On boot.