Can Not Mount Brand New SSD

Issues related to hardware problems
Post Reply
boryslav
Posts: 12
Joined: 2014/02/07 04:11:22

Can Not Mount Brand New SSD

Post by boryslav » 2015/04/02 14:44:32

Hi,
I got brand new Intel SSD and I can not mount it with "discard" option, here is the error i am getting: EXT4-fs (sdd1): Unrecognized mount option "discard" or missing value

OS: Centos 5.11

So what I did try to install it :

1) fdisk /dev/sdd -> n -> p Using fdisk i create a primary partion on new SSD

2) I installed
yum install e4fsprogs
package to get mkfs.ext4 ( It is missing in original centos installation)

3) Using mkfs.ext4 i create file system ext4

4) Try to mount with fstab :
#UUID=7498cb60-913c-42f3-a676-70d13feea80b /mysqldbssd ext4 discard,noatime,nodiratime, 1 2

and mount direct

mount -t ext4 -o discard /dev/sdd1 /mysqldbssd


I am getting same error :

EXT4-fs (sdd1): Unrecognized mount option "discard" or missing value


Please help, spent already so much time to install that drive with DISCARD option

Thank You

boryslav
Posts: 12
Joined: 2014/02/07 04:11:22

Re: CAN NOT MOUNT BRAND NEW SSD

Post by boryslav » 2015/04/02 14:52:41

I want to add that I can not locate any trim support in hdparm , but it suppose to be their, so does it mean that CentOS 5 doesnt support it ?

root@sub [~]# hdparm -I /dev/sdd|grep -i trim
root@sub [~]# hdparm -I /dev/sdd

/dev/sdd:

ATA device, with non-removable media
Model Number: INTEL SSDSC2BB300G4
Serial Number: xxxxxxxxxxxxxxxx
Firmware Revision: D2010370
Media Serial Num:
Media Manufacturer:
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5
Standards:
Supported: 9 8 7 6 5
Likely used: 9
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 586072368
device size with M = 1024*1024: 286168 MBytes
device size with M = 1000*1000: 300069 MBytes (300 GB)
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 1 Current = 1
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
SET_MAX security extension
* 48-bit Address feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
* IDLE_IMMEDIATE with UNLOAD
* WRITE_UNCORRECTABLE command
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
unknown 119[6]
* SATA-I signaling speed (1.5Gb/s)
* SATA-II signaling speed (3.0Gb/s)
* unknown 76[3]
* Native Command Queueing (NCQ)
* Phy event counters
* unknown 76[15]
* Software settings preservation
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
supported: enhanced erase
4min for SECURITY ERASE UNIT. 4min for ENHANCED SECURITY ERASE UNIT.
Checksum: correct

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CAN NOT MOUNT BRAND NEW SSD

Post by TrevorH » 2015/04/02 22:05:41

The CentOS 5 kernel is too old for its version of ext4 to support discard.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

boryslav
Posts: 12
Joined: 2014/02/07 04:11:22

Re: CAN NOT MOUNT BRAND NEW SSD

Post by boryslav » 2015/04/03 00:47:27

Is there any way to install fstrim ? I can not install it thru yum
or is there any other way to do the same task as discard do ?
I figure that I can run fstrim in cron job, but it looks like its missing too

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can Not Mount Brand New SSD

Post by TrevorH » 2015/04/03 11:56:56

I think the only way you will get anywhere is to upgrade the kernel on there. Perhaps you might try ELRepo's kernel-lt for el5?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

boryslav
Posts: 12
Joined: 2014/02/07 04:11:22

Re: Can Not Mount Brand New SSD

Post by boryslav » 2015/04/03 15:30:14

How risky is that kernel update ? It is dedicated server and if something happens there are lot of live sites and no way for physical access (ssh only)

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Can Not Mount Brand New SSD

Post by gerald_clark » 2015/04/03 15:42:40

You can always boot the original kernel if kernel-it does not help.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can Not Mount Brand New SSD

Post by TrevorH » 2015/04/03 16:45:38

If you don't have access to the physical console (or remote version of it) to select a different kernel from the grub menu then it's more risky than otherwise. Best wait until you have remote hands via your provider/hoster available just in case.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply