openSUSEa suomeksi
openSUSE => Asennus ja käyttö => Aiheen aloitti: raimo-2 - 13.03.2024 - klo:14:53
-
Moi,
Välillä tulee ilmoitus että tilaa root -hakemistossa on 0t.
Kun sitten syöksyn päätteeseen (df -h) niin kaikilla osioilla on tilaa ihan normaalisti.
Mistä voisi johtua? Osiot
raimo@kone-3:~> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb3 35G 12G 21G 37% /
devtmpfs 4,0M 0 4,0M 0% /dev
tmpfs 7,8G 98M 7,7G 2% /dev/shm
efivarfs 320K 52K 264K 17% /sys/firmware/efi/efivars
tmpfs 3,2G 1,8M 3,2G 1% /run
tmpfs 7,8G 22M 7,8G 1% /tmp
/dev/sdb5 154G 65G 82G 45% /home
/dev/sdb2 952M 5,7M 946M 1% /boot/efi
/dev/sda2 2,7T 795G 1,8T 31% /run/media/raimo/Backup
tmpfs 1,6G 76K 1,6G 1% /run/user/1000
/dev/sdc1 5,5T 790G 4,4T 15% /run/media/raimo/openSuse BackUp
raimo@kone-3:~>
pitääkö laittaa crontab ajamaan kerran minuutissa toi komento tekstitiedostoon?
Mistä tulikin mieleen että saako crontab-duunit mitenkään alle minuutin?
edit: nyt vasta tuli mieleen että sehän voi olla levyvika?
-
Hep!
Voisit kokeilla seuraavaa komentoa.
ls -l /
Mitä palauttaa päätteessä?
-
Hep!
Voisit kokeilla seuraavaa komentoa.
ls -l /
Mitä palauttaa päätteessä?
Tämmöstä vinkuu:
raimo@kone-3:~> ls -l /
total 60
lrwxrwxrwx 1 root root 7 helmi 2 18:16 bin -> usr/bin
dr-xr-xr-x 4 root root 4096 maalis 4 23:17 boot
drwxr-xr-x 20 root root 4480 maalis 11 02:52 dev
drwxr-xr-x 136 root root 12288 maalis 12 03:17 etc
dr-xr-xr-x 4 raimo raimo 4096 huhti 18 2022 home
lrwxrwxrwx 1 root root 7 helmi 2 18:16 lib -> usr/lib
lrwxrwxrwx 1 root root 9 helmi 2 18:16 lib64 -> usr/lib64
drwx------ 2 root root 16384 joulu 6 17:18 lost+found
dr-xr-xr-x 2 root root 4096 joulu 6 17:19 mnt
dr-xr-xr-x 4 root root 4096 joulu 6 17:37 opt
dr-xr-xr-x 326 root root 0 maalis 11 02:52 proc
drwx------ 11 root root 4096 helmi 9 18:37 root
drwxr-xr-x 43 root root 1100 maalis 11 15:54 run
lrwxrwxrwx 1 root root 8 helmi 2 18:16 sbin -> usr/sbin
dr-xr-xr-x 4 root root 4096 joulu 6 17:20 srv
lrwxrwxrwx 1 root root 23 tammi 5 10:08 Storage -> /run/media/raimo/Backup
dr-xr-xr-x 13 root root 0 maalis 11 02:52 sys
drwxrwxrwt 17 root root 520 maalis 13 15:44 tmp
drwxr-xr-x 13 root root 4096 helmi 2 18:16 usr
drwxr-xr-x 10 root root 4096 helmi 7 01:16 var
raimo@kone-3:~>
-
Eipähän tuossa mitään ihmeellistä taida olla.
Ehkäpä voisi katsoa mitä tuo lost+found pitää sisällään, jos siellä päin bugittaisi?
Minkälainen kovalevy sinulla tuossa nyt on? Saattaa olla menossa rikki.
-
Eipähän tuossa mitään ihmeellistä taida olla.
Ehkäpä voisi katsoa mitä tuo lost+found pitää sisällään, jos siellä päin bugittaisi?
Minkälainen kovalevy sinulla tuossa nyt on? Saattaa olla menossa rikki.
SSD 240Gt ja 3Tt HDD ja Ulkoinen USB-levy HDD 6Tt
Pitääpä koittaa kaivella SMART-tietoja jostain? Yastista kai ne löytyy?
SSD-levy näyttäis olevan hyvässä kunnossa:
raimo@kone-3:~> sudo smartctl --all /dev/sdb
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.7.7-1-default] (SUSE RPM)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Phison Driven SSDs
Device Model: PNY CS900 240GB SSD
Serial Number: PNY3619190830020BA68
LU WWN Device Id: 5 f8db4c 36190ba68
Firmware Version: CS900E12
User Capacity: 240 057 409 536 bytes [240 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
TRIM Command: Available
Device is: In smartctl database 7.3/5528
ATA Version is: ACS-4 (minor revision not indicated)
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Wed Mar 13 17:01:08 2024 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (65535) seconds.
Offline data collection
capabilities: (0x79) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 30) minutes.
Conveyance self-test routine
recommended polling time: ( 6) minutes.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0
9 Power_On_Hours 0x0012 100 100 000 Old_age Always - 25716
12 Power_Cycle_Count 0x0012 100 100 000 Old_age Always - 2033
168 SATA_Phy_Error_Count 0x0012 100 100 000 Old_age Always - 0
170 Bad_Blk_Ct_Lat/Erl 0x0003 097 097 010 Pre-fail Always - 0/4
173 MaxAvgErase_Ct 0x0012 100 100 000 Old_age Always - 260 (Average 234)
192 Unsafe_Shutdown_Count 0x0012 100 100 000 Old_age Always - 558
194 Temperature_Celsius 0x0023 067 067 000 Pre-fail Always - 33 (Min/Max 33/33)
218 CRC_Error_Count 0x000b 100 100 050 Pre-fail Always - 0
231 SSD_Life_Left 0x0013 100 100 000 Pre-fail Always - 76
241 Lifetime_Writes_GiB 0x0012 100 100 000 Old_age Always - 19496
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 25716 -
# 2 Short offline Completed without error 00% 25716 -
# 3 Short offline Completed without error 00% 25702 -
# 4 Short offline Completed without error 00% 25678 -
# 5 Short offline Completed without error 00% 25654 -
# 6 Short offline Completed without error 00% 25630 -
# 7 Short offline Completed without error 00% 25606 -
# 8 Short offline Completed without error 00% 25582 -
# 9 Short offline Completed without error 00% 25563 -
#10 Short offline Completed without error 00% 25540 -
#11 Short offline Completed without error 00% 25516 -
#12 Short offline Completed without error 00% 25491 -
#13 Short offline Completed without error 00% 25467 -
#14 Extended offline Completed without error 00% 25466 -
#15 Short offline Completed without error 00% 25443 -
#16 Short offline Completed without error 00% 25419 -
#17 Short offline Completed without error 00% 25395 -
#18 Short offline Completed without error 00% 25372 -
#19 Short offline Completed without error 00% 25348 -
#20 Short offline Completed without error 00% 25324 -
#21 Short offline Completed without error 00% 25300 -
SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
The above only provides legacy SMART information - try 'smartctl -x' for more
********************************************************************************************************************
3Tt HDD antaa minusta joitakin erroreita? Ymmärrä noista nyt sit jotain:
raimo@kone-3:~> sudo smartctl --all /dev/sda
[sudo] password for root:
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.7.7-1-default] (SUSE RPM)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Green
Device Model: WDC WD30EZRX-00D8PB0
Serial Number: WD-WCC4N4NHY67A
LU WWN Device Id: 5 0014ee 2614ff551
Firmware Version: 80.00A80
User Capacity: 3 000 592 982 016 bytes [3,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database 7.3/5528
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Wed Mar 13 17:09:28 2024 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (40380) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 405) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x7035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 175 169 021 Pre-fail Always - 6241
4 Start_Stop_Count 0x0032 095 095 000 Old_age Always - 5332
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 040 040 000 Old_age Always - 43905
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 095 095 000 Old_age Always - 5149
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 742
193 Load_Cycle_Count 0x0032 199 199 000 Old_age Always - 4683
194 Temperature_Celsius 0x0022 115 098 000 Old_age Always - 35
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 43891 -
# 2 Short offline Completed without error 00% 43867 -
# 3 Short offline Completed without error 00% 43843 -
# 4 Short offline Completed without error 00% 43819 -
# 5 Short offline Completed without error 00% 43795 -
# 6 Short offline Completed without error 00% 43771 -
# 7 Short offline Completed without error 00% 43752 -
# 8 Short offline Completed without error 00% 43729 -
# 9 Short offline Completed without error 00% 43705 -
#10 Short offline Completed without error 00% 43681 -
#11 Extended offline Completed without error 00% 43662 -
#12 Short offline Completed without error 00% 43633 -
#13 Short offline Completed without error 00% 43609 -
#14 Short offline Completed without error 00% 43585 -
#15 Short offline Completed without error 00% 43561 -
#16 Short offline Completed without error 00% 43537 -
#17 Short offline Completed without error 00% 43513 -
#18 Short offline Completed without error 00% 43489 -
#19 Short offline Completed without error 00% 43465 -
#20 Short offline Completed without error 00% 43441 -
#21 Short offline Completed without error 00% 43418 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
The above only provides legacy SMART information - try 'smartctl -x' for more
USB-levyltä en osaa ottaa dataa ulos sudo smartctl --all /dev/sdc ei toimi kuten kiinteillä levyillä tekee.
3Tt HDD on kuitenkin vuosia vanha, takuu tai oletettu käyttöikä eivät tule apuun. No minäpä seurailen tilannetta.
-
Jotenkin olen unohtanut TRIM:in, / vei 3 minuuttia ja /home 8 minuuttia.
Ubuntu ja johdannaiset ajaa ko komennot automaattisesti, Suse ei näköjään sitä tee,
No pitää rakentaa sopivan crontab kerran viikossa ja skripti joka ajaa noi komennot.
raimo@kone-3:~> sudo fstrim /
raimo@kone-3:~> sudo fstrim /home
raimo@kone-3:~> sudo fstrim /boot
Tuolla on vaihtoehto crontabille: https://forums.opensuse.org/t/do-i-need-to-enable-trim/137764
-
Ehkäpä voisi katsoa mitä tuo lost+found pitää sisällään, jos siellä päin bugittaisi?
lost+found on tyhjiä kaikki mitä löysin. Vaatii sudo su kirjautumisen että niihin pääsee sisään.
Onneksi on varmuuskopiot ajantasalla, 1 kertaa/vrk
DejaDupilla, jos se hajoava levy ei nyt sattuis olemaan toi USB-levy jonne varmuuskopio tehdään?
-
Toisaalta jos se olisi SSD levy joka renaa niin sen elinikäodotus on 2 000 000 h?
Mitä tuo nyt sitten tarkoittaa. SSD siksi koska / on sillä samoin /home
Jostain luin että Deja Dup täyttää /tmp hakemiston ja se näkyy sitten käyttäjälle root filesystem 0t vapaana.
Saattaa hyvinkin olla tuosta kyse. Kun Deja Dup ajaa backupit kerran vuorokaudessa.
Seuraan tilannetta valveutuneesti :)
-
Jos se on btrfs-levy, kannattaa katsoa myös:
btrfs filesystem df /
Ongelma voi olla Snapperin tekemissä tilannekuvissa; ainakin itselläni openSUSE kaipaa nykyään selkeästi isompaa juuriosiota kuin muut jakelut juuri Snapperin takia. Sitä voi toki säätää, mutta harva huomaa sitä tehdä.
-
Jos se on btrfs-levy, kannattaa katsoa myös:
btrfs filesystem df /
Ongelma voi olla Snapperin tekemissä tilannekuvissa; ainakin itselläni openSUSE kaipaa nykyään selkeästi isompaa juuriosiota kuin muut jakelut juuri Snapperin takia. Sitä voi toki säätää, mutta harva huomaa sitä tehdä.
Huomenta (sori jos herätän), ei ole btrfs vaan ihan perinteinen ext4.
Olen jotenkin vieroksunut btrfs:ää, jostakin syystä?