Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Ubuntu 12.04] Optimising OS for USB Installation
New Posts  All Forums:Forum Nav:

[Ubuntu 12.04] Optimising OS for USB Installation - Page 2

post #11 of 16
Read writes:
Quote:
241 Total_LBAs_Written 0x0002 100 100 000 Old_age Always - 40001817
242 Total_LBAs_Read 0x0002 100 100 000 Old_age Always - 16769220

This is the important one:
Quote:
5 Reallocated_Sector_Ct 0x0002 100 100 000 Old_age Always - 0

What is your USB drive? It looks very nice.
The girlfriend.
(14 items)
 
The Mistress
(13 items)
 
Media Server
(11 items)
 
CPUMotherboardGraphicsRAM
FX8320 @ 4.5 Crosshair V (Third One) 290 Tri-X OC 16GB HyperX 
Hard DriveHard DriveHard DriveCooling
Sandisk SSD Plus 240GB Toshiba 3TB Hitachi 2TB Swiftech H220-X 
OSMonitorKeyboardPower
Win 8.1/Mint Viewsonic VX2457-mhd Logitech K120 Super Flower Golden Green 650W 
CaseMouse
Enthoo Pro G400 
CPUMotherboardGraphicsRAM
A8-6410 Lenovo Lancer 4B2 K16.3 R5 128 Shaders/M230 Hynix 8GB DDR3 1600 
Hard DriveHard DriveOSMonitor
Samsung 840 120 GB SSD Seagate Momentus 1TB 5400rmp Win 8.1 CMN1487 TN LED 14" 1366*768 
KeyboardPowerMouseMouse Pad
Lenovo AccuType 2900mAh/41Wh Elan Trackpad/Logitech M90 Super Flower 
Audio
AMD Avalon(Connexant) 
  hide details  
Reply
The girlfriend.
(14 items)
 
The Mistress
(13 items)
 
Media Server
(11 items)
 
CPUMotherboardGraphicsRAM
FX8320 @ 4.5 Crosshair V (Third One) 290 Tri-X OC 16GB HyperX 
Hard DriveHard DriveHard DriveCooling
Sandisk SSD Plus 240GB Toshiba 3TB Hitachi 2TB Swiftech H220-X 
OSMonitorKeyboardPower
Win 8.1/Mint Viewsonic VX2457-mhd Logitech K120 Super Flower Golden Green 650W 
CaseMouse
Enthoo Pro G400 
CPUMotherboardGraphicsRAM
A8-6410 Lenovo Lancer 4B2 K16.3 R5 128 Shaders/M230 Hynix 8GB DDR3 1600 
Hard DriveHard DriveOSMonitor
Samsung 840 120 GB SSD Seagate Momentus 1TB 5400rmp Win 8.1 CMN1487 TN LED 14" 1366*768 
KeyboardPowerMouseMouse Pad
Lenovo AccuType 2900mAh/41Wh Elan Trackpad/Logitech M90 Super Flower 
Audio
AMD Avalon(Connexant) 
  hide details  
Reply
post #12 of 16
Quote:
Originally Posted by [Adz] View Post

As for a sync back solution, it's something I looked into but couldn't really figure out. I probably should do that, but I'd like to sync it to disk every hour rather than at reboots.
The hourly syncs should be dead easy as you'd just kick off an at daemon (like cron, but runs n time from request rather than at n time on the clock) or even just use cron.
You'd still need to have a start up daemon to copy the data across and I reckon it would make sense to have it do one last sync on shutdown (which would mean you'd also need some kind of locking to prevent the routine to be running a shutdown sync while a scheduled sync is in operation (easy enough to do - just record a PID to a tmp file). Lastly, you'd also realistically only want to copy changed files otherwise you'd artificially adding your own wear (again, easy to do).

So all in all, it wouldn't be too hard to write such a shell script, however I wonder whether you're going to be generating enough wear in those directories to warrant the time and effort in writing a bespoke script. And what's more, by having such a bespoke set up, you hamper the longevity of your server in terms of upgrading if you don't feel competent enough to code the script yourself (in fact I think Ubuntu is switching over to systemd at some point in the foreseeable future - which would break your script entirely).

Long story short, it's an avenue you can take, but I think with all things considered, it's probably not a good idea.
post #13 of 16
Thread Starter 
Quote:
Originally Posted by Liranan View Post

Read writes:
This is the important one:
What is your USB drive? It looks very nice.

Thanks.
It's a Sandisk Extreme USB3.0 32GB: http://www.amazon.co.uk/SanDisk-SDCZ80-032G-X46-Extreme-Flash-Drive/dp/B007YXA5TC

Quote:
Originally Posted by Plan9 View Post

The hourly syncs should be dead easy as you'd just kick off an at daemon (like cron, but runs n time from request rather than at n time on the clock) or even just use cron.
You'd still need to have a start up daemon to copy the data across and I reckon it would make sense to have it do one last sync on shutdown (which would mean you'd also need some kind of locking to prevent the routine to be running a shutdown sync while a scheduled sync is in operation (easy enough to do - just record a PID to a tmp file). Lastly, you'd also realistically only want to copy changed files otherwise you'd artificially adding your own wear (again, easy to do).

So all in all, it wouldn't be too hard to write such a shell script, however I wonder whether you're going to be generating enough wear in those directories to warrant the time and effort in writing a bespoke script. And what's more, by having such a bespoke set up, you hamper the longevity of your server in terms of upgrading if you don't feel competent enough to code the script yourself (in fact I think Ubuntu is switching over to systemd at some point in the foreseeable future - which would break your script entirely).

Long story short, it's an avenue you can take, but I think with all things considered, it's probably not a good idea.

Yeah, when you put it like that, I'm probably just going to image the drive and replace it when it dies. redface.gif
Echo
(8 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E BeQuiet E9-700w 
CPUMotherboardRAMHard Drive
Intel i3-3225 ASUS P8B75-MLX Corsair Ballistix Tactical Western Digital Red 
OSPowerCaseOther
Ubuntu Corsair CX500M Norco RPC-4224 LSI SAS 9207-4i4e HBA 
Other
Chenbro CK22804 24-Port SAS Expander Card 
  hide details  
Reply
Echo
(8 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E BeQuiet E9-700w 
CPUMotherboardRAMHard Drive
Intel i3-3225 ASUS P8B75-MLX Corsair Ballistix Tactical Western Digital Red 
OSPowerCaseOther
Ubuntu Corsair CX500M Norco RPC-4224 LSI SAS 9207-4i4e HBA 
Other
Chenbro CK22804 24-Port SAS Expander Card 
  hide details  
Reply
post #14 of 16
Quote:
Originally Posted by [Adz] View Post

Yeah, when you put it like that, I'm probably just going to image the drive and replace it when it dies. redface.gif
Yeah, that's exactly what I used to do when I would boot media centres off compact flash (back before the days of SSDs)
post #15 of 16
Thread Starter 
Just for future reference, the Sandisk Extreme USB 3.0 stick does support wear levelling.
Quote:
Dear Adz,
Thanks for contacting SanDisk Technical Support. It is our goal to make sure you have all the resources you need to get the most from your product.

For your information, Wear leveling is a standard feature in most consumer flash memory products including this drive and is used to prolong the life of the product. Extreme USB 3.0 drives are intended for retail consumers looking to store and transfer data and SanDisk does not support advanced SSD features such as Trim with this drive. SanDisk recommends the drive be used with Windows or Macintosh operating systems and does not provide technical support for use with Ubuntu.
Echo
(8 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E BeQuiet E9-700w 
CPUMotherboardRAMHard Drive
Intel i3-3225 ASUS P8B75-MLX Corsair Ballistix Tactical Western Digital Red 
OSPowerCaseOther
Ubuntu Corsair CX500M Norco RPC-4224 LSI SAS 9207-4i4e HBA 
Other
Chenbro CK22804 24-Port SAS Expander Card 
  hide details  
Reply
Echo
(8 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E BeQuiet E9-700w 
CPUMotherboardRAMHard Drive
Intel i3-3225 ASUS P8B75-MLX Corsair Ballistix Tactical Western Digital Red 
OSPowerCaseOther
Ubuntu Corsair CX500M Norco RPC-4224 LSI SAS 9207-4i4e HBA 
Other
Chenbro CK22804 24-Port SAS Expander Card 
  hide details  
Reply
post #16 of 16
That's a result smile.gif
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Ubuntu 12.04] Optimising OS for USB Installation