Monday, September 8, 2014

Step by Step creating partition in Red Hat Linux / How to create partition in Red Hat Linux environment ?

Create a 500MB new partition and should be mounted under /mountpoint as ext4 type.

Answer:

# fdisk -cul (for viewing the partition information)
# fdisk -cu /dev/vda
# m (for help)
# n (for new partition)
# e (for all spaces extended partition)
# Not p (because primary partition limit only 4)
# 3 (for partition number)
# Enter (for first cylinder)
# Enter (for last cylinder)
# w (for save)
# reboot (for rebooting the machine)

After rebooting the machine:    

# fdisk -cul (for viewing partition)
# fdisk -cu /dev/vda
# m (for help)
# n (for new partition)
# l (for logical partition)
# Enter (for first cylinder)
# +500M Enter (for last cylinder)
# w (for save)
# reboot (for rebooting the machine)

After rebooting the machine:    

# fdisk -cul (for viewing partition)
# mkfs.ext4 /dev/vda5
# mkdir -p /mountpoint (p for focely created one directory in another)
# mount /dev/vda5 /coss/new/
# df -h (for mounting information)
# vim /etc/fstab (for permanently mount)

  /dev/vda5         /mountpoint          ext4                       defaults               0 0

# mount -a

# df -h

difference between data and metadata



Metadata
 describes about data. It is ‘data about data’. It has information about how and when, by whom a certain data was collected and the data format. It is essential to understand information that is stored in data warehouses and xml-based web applications.

So, "meta" simply means "about the thing you're talking about". So metadata is data about the data. Data is information. Metadeta is information about the information. For example, you might have a chart that lists the population of each US State. You might then have details about that chart - what color it is, if it's a bar chart or a pie chart, what symbols are on it, etc. That would be metadata. 



Data dictionary is a file which consists of the basic definitions of a database. It contains the list of files that are available in the database, number of records in each file, and the information about the fields.

So,A data is individual facts, statistics, or items of information.Metadata describes other data. It provides information about a certain item's content. For example, an image may include metadata that describes how large the picture is, the color depth, the image resolution, when the image was created, and other data. A text document's metadata may contain information about how long the document is, who the author is, when the document was written, and a short summary of the document. 

Changing the Hostname (RedHat)

Changing the Hostname (RedHat)

hostname command by default will display the current hostname 

for temporarily change the hostname you may type :- 

# hostname xxx.yyyy.com                                                 

And it will be gone after reboot so , for permanently change it ,

RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot.

# vi /etc/sysconfig/network 


NETWORKING=yes
HOSTNAME=xxx.yyyy.com


And after that reboot your system and hostname will be changed .








You may also check this links :- details provided with snapshot :- )
http://computernetworkingnotes.com/network-administration/network-setup-in-rhce6.html

Featured Post

Managing CA Certificates on Red Hat Linux 9: Understanding update-ca-trust extract

  Managing CA Certificates on RHEL9 RHEL8 OracleLinux9 OracleLinux8 In today's digital landscape, securing communications and verifying ...