UPWORK/ODESK guru: Tips and Tricks for clients

skype: upwork.link , email: [email protected]

Archive for the ‘Arrays and Disks’ Category

Mdadm Chaet Sheet – 6 tips

without comments

Mdadm is the modern tool most Linux distributions use these days to manage software RAID arrays; in the past raidtools was the tool we have used for this. This cheat sheet will show the most common usages of mdadm to manage software raid arrays; it assumes you have a good understanding of software RAID and Linux in general, and it will just explain the commands line usage of mdadm. The examples bellow use RAID1, but they can be adapted for any RAID level the Linux kernel driver supports.

Read the rest of this entry »

Written by spectre

February 7th, 2017 at 4:40 pm

Posted in Arrays and Disks

Protected: Forcing a hard disk to reallocate bad sectors

without comments

This content is password protected. To view it please enter your password below:

Written by spectre

November 26th, 2013 at 2:31 pm

Posted in Arrays and Disks

Intel Raid Controller RS2BL040 Slow Performance – BBU problems.

without comments

Just for the record:

When BBU is not exists, the default cache policy is no cache. So, forcing it to use even BBU not present helped in that case the fsync value goes up to above 3000. There are still lower fsync values and jumping speed values, but now these are much better than before.
Summary: BBU is recommended using a system like this.

Read the rest of this entry »

Written by spectre

November 22nd, 2013 at 2:32 pm

Align partitions for best performance using parted

without comments

There are two common problems when creating partitions in Linux on big storage arrays. The first is easy, and the warning message from fdisk is a bit of a giveaway:

WARNING: The size of this disk is 8.0 TB (7970004230144 bytes).
DOS partition table format can not be used on drives for volumes
larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID 
partition table format (GPT).

Read the rest of this entry »

Written by spectre

November 4th, 2013 at 2:31 pm

Forcing a hard disk to reallocate bad sectors

without comments

Sometimes a hard disk is hinting on an upcoming failure. Some disks start to make unexpected sounds, others are silent and only cause some noise in your syslog. In most cases the disk will automatically reallocate one or two damaged sectors and you should start planning on buying a new disk while your data is safe. However, sometimes the disk won’t automatically reallocate these sectors and you’ll have to do that manually yourself. Luckily, this doesn’t include any rocket science.

Read the rest of this entry »

Written by spectre

October 31st, 2013 at 8:08 am

Posted in Arrays and Disks

Copy Master Boot Record (MBR)

without comments

How do I copy MBR from one hard disk to another hard disk?

To copy MBR simply use the dd command. dd command works under all Linux distros and other UNIX like operating systems too. A master boot record (MBR) is the 512-byte boot sector that is the first sector of a partitioned data storage device of a hard disk.

Read the rest of this entry »

Written by spectre

October 26th, 2013 at 9:31 pm

Posted in Arrays and Disks

Linux how to determine the file system type of unmounted (raw) partition

without comments

Of course!
You can try a ‘file -s’ on the device node.

[email protected] /mnt # file -s /dev/md1
/dev/md1: Linux rev 1.0 ext4 filesystem data, UUID=e77cc8ce-ade6-4e09-ac7f-d139c80a2e4a (needs journal recovery) (extents) (large files) (huge files)
[email protected] /mnt # 

Written by spectre

June 16th, 2013 at 7:21 pm

How to set the speed of MD RAID reconstruction

without comments

To see your Linux kernel speed limits:

[email protected] ~ # cat /proc/sys/dev/raid/speed_limit_max 
200000
[email protected] ~ # cat /proc/sys/dev/raid/speed_limit_min 
1000
[email protected] ~ # 

Read the rest of this entry »

Written by spectre

June 15th, 2013 at 10:06 pm

Posted in Arrays and Disks

How to run MD array with help assembly command (pos. degraded) from Linux shell

without comments

Assuming you have added the DEVICE and ARRAY entries to the /etc/mdadm.conf.
Starting the array can be accomplished with a single command:

[email protected] / # mdadm --assemble --scan
 mdadm: /dev/md0 has been started with 6 drives.
[email protected] / #

Read the rest of this entry »

Written by spectre

June 15th, 2013 at 8:09 pm

Posted in Arrays and Disks

Настройка программного RAID1 на работающей системе openSuSe 11.2 (11.*, 12.*) Часть 2.

without comments

Как было сказано в первой части, мы ожидаем удачного завершения загрузки с “поврежденным” массивом.
В случае удачной загрузки мы должны увидеть вывод команды df, подобный следующему:

vm-rh:~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/md0              1,4G  1,1G  233M  83% /
udev                  389M  204K  389M   1% /dev
/dev/md5              470M   11M  436M   3% /home
/dev/md2               98M  5,6M   88M   6% /opt
/dev/md3               99M  5,6M   89M   6% /tmp
/dev/md4              198M   90M   98M  48% /var
vm-rh:~ #

И соответственно вывод /proc/mdstat:

Read the rest of this entry »

Written by spectre

October 30th, 2012 at 1:43 pm

Posted in Arrays and Disks