A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

RHEL 7 reset root password

If you lost the root password to the system and you have access to the boot loader, you can reset the password by editing the GRUB2 configuration.

 Resetting the Root Password

  1. Boot your system and wait until the GRUB2 menu appears.
  2. In the boot loader menu, highlight any entry and press e to edit it.
  3. Find the line beginning with linux. At the end of this line, append the following:


    Some systems (notably virtual machines) may have problems displaying correct output when you boot using this procedure. Some characters or even entire lines may be hidden, making the shell difficult to use. To solve this problem, delete the rhgb command from the linux line.
  4. Press F10 or Ctrl+X to boot the system using the options you just edited.
    Once the system boots, you will be presented with a shell prompt without having to enter any user name or password:
  5. Load the installed SELinux policy:
    sh-4.2# /usr/sbin/load_policy -i
  6. Execute the following command to remount your root partition:
    sh4.2# mount -o remount,rw /
  7. Reset the root password:
    sh4.2# passwd root
    When prompted to, enter your new root password and confirm by pressing the Enter key. Enter the password for the second time to make sure you typed it correctly and confirm with Enter again. If both passwords match, a message informing you of a successful root password change will appear.
  8. Remount the root partition again, this time as read-only:
    sh4.2# mount -o remount,ro /
  9. Reboot the system. From now on, you will be able to log in as the root user using the new password set up during this procedure.

RHEL 7 XFS command vs EXT4

Task ext4 XFS
Creating a file system mkfs.ext4 mkfs.xfs
Mounting a file system mount mount
Resizing a file system resize2fs xfs_growfs
Repairing a file system e2fsck xfs_repair
Changing the label on a file system e2label xfs_admin -L
Reporting on disk space and file usage quota quota
Debugging a file system debugfs xfs_db
Store critical file system metadata to a file e2image xfs_metadump

How to find lun number in Solaris 10

Solaris 10: Find LUN id
Step 1. Use format command to find your disk.

12. c4t60060480000190105493533033443843d0

Step 2. Find Logical Path of the disk

# luxadm probe|grep c4t60060480000190105493533033443843d0
Logical Path:/dev/rdsk/c4t60060480000190105493533033443843d0s2

Step 3. Get Device Address
# luxadm display /dev/rdsk/c4t60060480000190105493533033443843d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c4t60060480000190105493533033443843d0s2
Vendor: EMC
Revision: 5773
Serial Num: 105493″R0
Unformatted capacity: 1035787.500 MBytes
Read Cache: Enabled
Minimum prefetch: 0x0
Maximum prefetch: 0xffff
Device Type: Disk device
Controller /devices/pci@500/pci@0/pci@9/SUNW,qlc@0/fp@0,0
Device Address 50060482d531e552,335 Host controller port WWN 21000024ff3019ea
Class primary
Controller /devices/pci@500/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0
Device Address 50060482d531e558,335 Host controller port WWN 21000024ff3019eb
Class primary

Create different layout volumes using vxassist command

The “vxassist” Utility

Syntax: vxassist –g diskgroup make volname length [attributes]

# vxassist –g datadg make vol1 50m

# vxassist –g datadg make vol1 50m datadg01

# vxassist –g datadg make vol1 500m layout=stripe

# vxassist –g datadg make vol1 500m layout=stripe stripeunit=64k

# vxassist –g datadg make vol1 200m layout=mirror disk01 disk02

veritas volume manager remove volumes

Syntax : vxassist –g diskgroup remove volume volname

Example One.

# vxassist –g oradg remove volume oravol1

Example Two.

# vxedit –rf rm oravol

The above command will complete remove all the underlying plexes
and subdisks of the volume “oravol”

veritas volume manager – Add mirror volume

Syntax : vxassist –g diskgroup mirror volume_name


# vxassist –g oradg mirror oracle

The above command mirrors the oracle volume

# vxassist –g oradg mirror oracle oradg01

The above command mirrors oracle volume on to the disk oradg01

# vxmirror –g oradg –a

The above command mirrors all the unmirrored volumes in oradg