112bf
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Do we have TRIM support on UFS2 FreeBSD 9?
__________________
www.alielee.com FreeBSD FreeBSD 9.1-PRERELEASE #0 r243320 /usr/obj/usr/src/sys/EZYCLIE amd64 Last edited by DutchDaemon; November 30th, 2011 at 01:28. |
|
#2
|
||||
|
||||
|
8.1 Release notes:
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
||||
|
||||
|
I am not so familiar with this kind of thing and i have some questions
__________________
www.alielee.com FreeBSD FreeBSD 9.1-PRERELEASE #0 r243320 /usr/obj/usr/src/sys/EZYCLIE amd64 Last edited by phoenix; November 30th, 2011 at 23:10. Reason: no space before punctuation; use list tag |
|
#4
|
||||
|
||||
|
If you value your data, no.
From newfs(8): Quote:
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#5
|
||||
|
||||
|
Code:
[/usr/home/ezyclie]# tunefs -p /dev/ada0p2 tunefs: POSIX.1e ACLs: (-a) disabled tunefs: NFSv4 ACLs: (-N) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: soft update journaling: (-j) enabled tunefs: gjournal: (-J) disabled tunefs: trim: (-t) disabled tunefs: maximum blocks per file in a cylinder group: (-e) 4096 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) Code:
# tunefs -t enable /dev/ada0p2
__________________
www.alielee.com FreeBSD FreeBSD 9.1-PRERELEASE #0 r243320 /usr/obj/usr/src/sys/EZYCLIE amd64 Last edited by alie; November 29th, 2011 at 14:09. |
|
#6
|
||||
|
||||
|
Okie solved:
Code:
1. Single user mode 2. # mount 3. # tunefs -t enable /dev/ada0p2 Code:
[/usr/home/ezyclie]# tunefs -p /dev/ada0p2 tunefs: POSIX.1e ACLs: (-a) disabled tunefs: NFSv4 ACLs: (-N) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: soft update journaling: (-j) enabled tunefs: gjournal: (-J) disabled tunefs: trim: (-t) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 4096 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L)
__________________
www.alielee.com FreeBSD FreeBSD 9.1-PRERELEASE #0 r243320 /usr/obj/usr/src/sys/EZYCLIE amd64 |
| The Following User Says Thank You to alie For This Useful Post: | ||
Maxamoto (November 9th, 2012) | ||
|
#7
|
||||
|
||||
|
When in doubt, read the man page: tunefs(8)
It mentions in there you can't manipulate mounted filesystem unless they are mounted read-only. And several options can't be enabled until you run an fsck. Last edited by DutchDaemon; December 1st, 2011 at 02:54. |
|
#8
|
|||
|
|||
|
Bummer, it would be nice to able to change these and have them take effect on reboot.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| downgrade ZFS to UFS2 | fluca1978 | Storage | 1 | November 7th, 2011 15:38 |
| TRIM support on ZFS ZIL/L2ARC-devices | FLAGEL | General | 6 | October 9th, 2010 19:10 |
| Solid State/TRIM/Erase free space | waksmundzki | System Hardware | 2 | September 13th, 2010 01:27 |
| About 8.1 TRIM support | tobe | System Hardware | 2 | July 24th, 2010 17:53 |
| [Solved] Mount an UFS2 HD | SuperMiguel | Installing & Upgrading | 3 | June 12th, 2009 15:57 |