, The web site of rsa69

Setting a Data Server with Slackware 14.2

Disk partitioned with fdisk (In order to get more than 2Tb recognized you have to label the partition as GPT:

Configuring Partitions:

fdisk, label: GPT, linux raid (28), linux swap (19)

copying /dev/sda partitions configuration to /dev/sdc

sfdisk -d /dev/hda |sfdisk /dev/hdc

Raid 1 Configuration:

mdadm --create /dev/md0 --level=1 --metadata=0.90 --raid-devices=2 /dev/sd[ac]1

mdadm --create /dev/md1 --level=1 --metadata=0.90 --raid-devices=2 /dev/sd[ac]2

and so on...

Deleting RAID

mdadm --detail /dev/md0

mdadm --stop /dev/md0

mdadm --zero-superblock /dev/md0

mdadm --remove /dev/md0

Administration Tips

Find a file or directory

find / -type f -name "file name"

find / -type d -name "directory_name"

Change folder access to a specific user

chown user_name folder_name

chmod 700 folder_name

Change folder access to a group

groupadd name_group

usermod -aG group_name user_name

chown root:group_name folder_name