Find new HDD and partition and format

Posted in Unix on July 29th, 2012 by phoenixdigital

List all partitions
cat /proc/partitions

List all lvm partitions
dmsetup ls

Check drives already in use
ls -l /dev/disk/by-uuid/

Find the drive that is not in that list
ls -al /dev/sd*

Create partition
fdisk /dev/sd?

If you are making a primary partition larger than 2TB you will need to follow this method using gparted

mkfs -t ext4 /dev/sd?1

check for its UUID
ls -l /dev/disk/by-uuid/

and add to /etc/fstab
vi /etc/fstab
UUID=d002359e-307d-41d3-8b15-b234235c55a /your/mount/point ext4 defaults 1 2

Test /etc/fstab
mount -a

Create filesystem
mkfs.ext4 /dev/vg_drive3/lv_drive3

Mounting an old drive hot plugged in
vgchange -a y

Tags: , , ,

Adding Services to RHEL with chkconfig

Posted in Unix on September 27th, 2011 by phoenixdigital

If you want your daemons to start and stop with your Redhat system as it boots chkconfig is what you were looking for.
Read more »

Tags: , , , , ,

Configuring Samba

Posted in Unix on May 12th, 2011 by phoenixdigital

Generally I setup samba for a group of people to contribute to an area of the server such as /opt/theDirectoryToShare .

Read more »

Tags: , , , ,