| View previous topic :: View next topic |
| Author |
Message |
JustSomeGeek
Joined: Tue May 01, 2012 2:07 pm Posts: 19
|
Posted: Fri Jun 22, 2012 1:55 pm Post subject: SSD Partition alignment guide (n00b freindly!)? |
|
|
Hi folks,
Until this morning i thought i was ready to install CentOS Server on it's shiny new SSD (Samsung 830 256).
Now though, i have spent hours reading up on partition alignment and trying to find out Erase Block Size and Page Size for this SSD and work out what to do with the info if i ever find it.
For something that is apparently really important, there doesn't seem to be anything helpful out there.
The CentOS Bible itself doesn't even mention SSDs :-/
Help? |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2354
|
Posted: Fri Jun 22, 2012 2:01 pm Post subject: |
|
|
Modern SSD's come pre-aligned, so that shouldn't be an issue. Likewise, most modern OS's, especially Linux, also comes pre-aware of alignment issues on SSD's, so that also shouldn't much of a problem. Just put in the installation disk and have a go!  |
|
| Back to top |
|
 |
JustSomeGeek
Joined: Tue May 01, 2012 2:07 pm Posts: 19
|
Posted: Fri Jun 22, 2012 2:45 pm Post subject: |
|
|
| Dutch_Master wrote: | Modern SSD's come pre-aligned, so that shouldn't be an issue. Likewise, most modern OS's, especially Linux, also comes pre-aware of alignment issues on SSD's, so that also shouldn't much of a problem. Just put in the installation disk and have a go!  |
That's what i would have thought seeing as Linux is usually at the front with supporting new tech. But if you read some of this:
https://wiki.archlinux.org/index.php/Solid_State_Drives#Partition_Alignment
http://ypl.com/ssd/apds05.html
...it does make me wonder what i am supposed to believe. I really don't want to set up my server and then find i need to start again from scratch because things slow to a crawl after a few weeks/months. :-/ |
|
| Back to top |
|
 |
jonrob Site admin
Joined: Thu Jun 30, 2011 4:24 pm Posts: 43
|
Posted: Fri Jun 22, 2012 4:03 pm Post subject: |
|
|
| Neil Bothwick has just written a piece about partition alignment in issue 160. Although I'm not 100% sure off the top of my head, I think he says that modern versions of fdisk and partitioning tools do alignment without any fuss. The only note he makes it to make sure you set partitions in terms of size, e.g. 20M or 20G instead of in sectors etc. |
|
| Back to top |
|
 |
JustSomeGeek
Joined: Tue May 01, 2012 2:07 pm Posts: 19
|
Posted: Fri Jun 22, 2012 4:55 pm Post subject: |
|
|
| jonrob wrote: | | Neil Bothwick has just written a piece about partition alignment in issue 160. Although I'm not 100% sure off the top of my head, I think he says that modern versions of fdisk and partitioning tools do alignment without any fuss. The only note he makes it to make sure you set partitions in terms of size, e.g. 20M or 20G instead of in sectors etc. |
Thanks for that. I don't have 160 yet, but if it's out i'll have a look tonight. I'll keep to proper sized chunks too.
Seeing as trim has been supported in Linux since 2008(?), i would have thought it would be a non-issue now anyway. But being a n00b myself, i tend to err on the side of caution and ask.
Unless i hear anything else, i'll just whack the OS on it tomorrow and hope for the best! Ignorance really is bliss.  |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8002 Location: Warrington, UK
|
Posted: Fri Jun 22, 2012 9:41 pm Post subject: |
|
|
Yes, later versions of fdisk align to MiB (2048 block) boundaries, but on a new system I'd use a GPT partition table and avoid not only this issue but also all the crap with primary, extended and logical partitions. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
JustSomeGeek
Joined: Tue May 01, 2012 2:07 pm Posts: 19
|
Posted: Fri Jun 22, 2012 9:47 pm Post subject: |
|
|
| nelz wrote: | | Yes, later versions of fdisk align to MiB (2048 block) boundaries, but on a new system I'd use a GPT partition table and avoid not only this issue but also all the crap with primary, extended and logical partitions. |
I just read the article (thanks jonrob), and came to a similar conclusion, but to use Parted for it. Perfect timing, as i wasn't going to get the mag 'till next week normally!
Thanks guys!  |
|
| Back to top |
|
 |
JustSomeGeek
Joined: Tue May 01, 2012 2:07 pm Posts: 19
|
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8002 Location: Warrington, UK
|
Posted: Fri Jun 22, 2012 11:44 pm Post subject: |
|
|
GParted willl do the job, but I'd still go with GPT partition tables (parted offers a choice of partition table type in the one program, unlike the fdisk family). _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
JustSomeGeek
Joined: Tue May 01, 2012 2:07 pm Posts: 19
|
Posted: Sat Jun 23, 2012 8:41 pm Post subject: |
|
|
| nelz wrote: | | GParted willl do the job, but I'd still go with GPT partition tables (parted offers a choice of partition table type in the one program, unlike the fdisk family). |
Cheers Nelz. I've used GParted to set things up and it seems to be going well. |
|
| Back to top |
|
 |
JustSomeGeek
Joined: Tue May 01, 2012 2:07 pm Posts: 19
|
Posted: Mon Jun 25, 2012 12:10 am Post subject: |
|
|
I took the extra time to read up on LVM, so it's running on that now. Cheers!  |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|