Tools Index

Storage

1. Maintenance

SMART provides statistics of disk firmware, this system handle errors has their occur. Badblocks detect bad blocks by writing and reading from disk in a destructive test. Example of how to view SMART statistics of a disk;

        # smartctl -t long /dev/sdb1
        # smartctl -a /dev/sdb1 | less
        

Search for bad blocks using non destructive test;

        # badblocks -nsv /dev/sdb1
        

2. Moving data

Reboot into single-user mode where services aren't started and networking is offline.

        # init 1
        

Copy the data:

        # cp -apx /srv/* /mnt/srv
        

Rename directory, for later backup;

        # mv /srv /srv.old
        # mkdir /srv
        

Edit the /etc/fstabfile:

        # Server Data /srv
        UUID=6fadcb98-e442-4af7-a5f2-1ddb6100a8c4 /srv            ext4    defaults        0       2
        

Reboot in normal mode.

Tools Index

This is part of the c9-doc Manual. Copyright (C) 2016 c9 team. See the file Gnu Free Documentation License for copying conditions.