Showing posts with label RHEL. Show all posts
Showing posts with label RHEL. Show all posts

Monday, May 20, 2013

Redhat- How to find the Hardware Model on linux ?


Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard

#dmidecode

This information typically includes system manufacturer, model name, serial number, BIOS version, asset tag as well as a lot of other details of varying level of interest and reliability depending on the manufacturer. This will often include usage status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of I/O ports (e.g. serial, parallel, USB).

Redhat Linux - How to for GFS Filesystems

How-to for GFS Filesystems

You can use either of the following formats to create a clustered GFS file system:
#gfs_mkfs -p lock_dlm -t ClusterName:FSName -j Number BlockDevice
#mkfs -t gfs -p lock_dlm -t LockTableName -j NumberJournals BlockDevice

You can use either of the following formats to create a local GFS file system:
#gfs_mkfs -p lock_nolock -j NumberJournals BlockDevice
#mkfs -t gfs -p lock_nolock -j NumberJournals BlockDevice

At each node, mount the GFS file systems. For more information about mounting a GFS file
Command usage:
mount BlockDevice MountPoint
mount -o acl BlockDevice MountPoint
The -o aclmount option allows manipulating file ACLs. If a file system is mounted without the -o acl mount option, users are allowed to view ACLs (with getfacl), but are not allowed to set them (with setfacl).

Formatting the logical Volume
#gfs_mkfs -p lock_dlm -t alpha:mydata1 -j 8 /dev/vg01/lvol0

The gfs_jadd command must be run on mounted file system, but it only needs to be run on one node in the cluster. All the other nodes sense that the expansion has occurred.

#lvextend -L +80G /dev/vgcl_gfs_san_eos/vol01_lv
#gfs_grow -v /dev/vgcl_gfs_san_eos/vol01_lv /db/eospr1/vol01

Sunday, May 19, 2013

Reset Root Password on Linux (RHEL, Ubuntu)

Try and enter the run-level 1, if you already know it then follow the step 4 below.

1. Stop the system at the Grub Screen.
2. Use the arrows to select the boot entry you want to modify,  press e to edit the entry.
3. Use the arrows to go to kernel line , press e to edit this entry , at the end of the line add the word single

Press ESC to go back to the parent menu, press b to boot this kernel

4. Run passwd command to reset the password.

Tuesday, April 19, 2011

RHEL -How to check the WWN and WWPN Numbers on Linux

#systool -c fc_host -v -----> Give Server FC WWN & WWPN numbers
#systool -c fc_transport -v --------> Give Server & Storage FC WWN & WWPN numbers