Enter your Email


BTOI | © copyight


Feb 8, 2009
Volume Layouts in VxVM...

 

 

Non Layered Volumes

In a non-layered volume, a subdisk is restricted to mapping directly to a VM disk

Layered Volumes

A layered volume is a virtual Veritas Volume Manager object that is built on top of other volumes by mapping its subdisks to underlying volumes. Hence it is called ‘volume on volume’.

 

Volume layouts supported in VxVM

Concatenation

Concatenation maps data in a linear manner onto one or more subdisks in a plex. To access all of the data in a concatenated volume sequentially, data is first accessed in the first subdisk from beginning to end. Data is then accessed in the remaining subdisks sequentially from beginning to end, until the end of the last subdisk.

Striping

Striping maps data so that the data is interleaved among two or more physical disks. A striped plex contains two or more subdisks, spread out over two or more physical disks. Data is allocated alternately and evenly to the subdisks of a striped plex.

Mirroring (RAID-1)

Striping maps data so that the data is interleaved among two or more physical disks. A striped plex contains two or more subdisks, spread out over two or more physical disks. Data is allocated alternately and evenly to the subdisks of a striped plex.

Striping plus mirroring (mirrored-stripe or RAID-0+1)

The combination of mirroring above striping is called a mirrored-stripe layout.

Mirroring plus striping (striped-mirror, RAID-1+0 or RAID-10)

The combination of striping above mirroring. This combined layout is called a striped-mirror layout.

RAID-5 (striping with parity)

RAID-5 provides data redundancy by using parity. Parity is a calculated value used to reconstruct data after a failure. The data and calculated parity are contained in a plex that is “striped” across multiple disks

Changing Nodename in HP-UX

Below are the steps to change the nodename in HP-UX:

HP-UX ap21cnedc101 # uname -a

HP-UX ap21cned B.11.23 U ia64 2222362797 unlimited-user license

HP-UX ap21cnedc101 # kctune expanded_node_host_names=1

WARNING: The automatic 'backup' configuration currently contains the

         configuration that was in use before the last reboot of this

         system.

     ==> Do you wish to update it to contain the current configuration

         before making the requested change? y

       * The automatic 'backup' configuration has been updated.

WARNING: Setting the expanded_node_host_names parameter to 1 will allow

         administrators to set node and host names larger than 8 and 64

         characters/bytes, respectively.  It is strongly recommended

         that all the documentation included with the NodeHostNameXpnd

         product bundle be understood before setting larger names.

         Larger names can cause some applications which use those names

         to exhibit anomalous or incorrect behavior.

       * The requested changes have been applied to the currently

         running system.

Tunable                             Value  Expression  Changes

expanded_node_host_names  (before)      0  Default     Immed

                          (now)         1  1

HP-UX ap21cnedc101 # /sbin/set_parms hostname

_______________________________________________________________________________

For the system to operate correctly, you must assign it a unique

system name or "hostname".  The hostname can be a simple name

(example: widget) or an Internet fully-qualified domain name

(example: widget.region.mycorp.com).

A simple name, or each dot (.) separated component of a domain name, must:

    * Start and end with a letter or number.

    * Contain no more than 63 characters per component.

    * Contain no more than 255 total characters.

    * Contain only letters, numbers, underscore (_), or dash (-).

      The underscore (_) is not recommended.

NOTE: The first or only component of a hostname should contain no more

      than 8 characters and the full hostname should contain no more

      than 63 characters for maximum compatibility with HP-UX software.

The current hostname is ap21cnedc101.

_______________________________________________________________________________

Enter the system name, then press [Enter] or simply press [Enter]

to retain the current host name (ap21cnedc101):

The hostname (or first component of the hostname) "ap21cnedc101"

contains more than 63 characters.  This is valid, but the system

name as reported by `uname' will be truncated to "ap21cnedc101                                                                                                                 ".

Press [Enter] to continue...

You have chosen ap21cnedc101 as the name for this system.

Is this correct?

Press [y] for yes or [n] for no, then press [Enter] y

_______________________________________________________________________________

  Working...

_______________________________________________________________________________

HP-UX ap21cnedc101 # uname -a

HP-UX ap21cnedc101 B.11.23 U ia64 2222362797 unlimited-user license

Auditing Users in HP-UX 11.31

Auditing Users

By default, when system auditing is on, the audit status for all users is on. New users added to the system are automatically audited.

You can monitor what users are doing on HP-UX systems using the auditing. To change which users are audited, choose one of the following options:

Audit all users.

By default, audit status for all users is set to on when the audit system is turned

on. New users added to the system are automatically audited.

If auditing is turned off for all users, set AUDIT_FLAG=1 in the /etc/default/security file.

Do not audit any users.

To turn off auditing for all users, follow these steps:

1. Check to see which users are already being audited. To check, follow these steps:

a. Check the AUDIT_FLAG setting in the /etc/default/security file.

b. Check the AUDIT_FLAG setting stored in the user database using the following command:

# userdbget -a AUDIT_FLAG

2. Set AUDIT_FLAG=0 in the /etc/default/security file.

Audit specific users.

To configure auditing for specific users, follow these steps:

1. Deselect auditing for all users by setting the AUDIT_FLAG=0 in the /etc/default/security file.

2. Configure auditing for a specific user using the following command:

# /usr/sbin/userdbset -u user-name AUDIT_FLAG=1.

If the audit system is not already enabled, use the audsys -n command to start the auditing system. Auditing changes take effect at the user's next login.

The audited information can be viewed in the audit log files which can be created as below:

Configuring Audit Trails

Use the audsys command to specify the primary audit log file to collect auditing data:

#audsys -n -N2 -c my_audit_trail -s 5000

This example starts the audit system and records data in the my_audit_trail directory, using two writer threads. The size is set to 5000K bytes.

VERITAS Volume Manager Objects

 

VxVM uses two types of objects to handle storage management: physical objects and virtual objects.

 

Physical objects - Physical disks or other hardware which interface with block and raw operating system device.

Ex. – Disk and Disk arrays.

 

Virtual objects - VxVM, creates virtual objects called volumes on physical disks. Volumes are logical entity which are accessed by file systems, databases, or other applications in the same way that physical disks are accessed. Volumes are also composed of other virtual objects (plexes and subdisks) that are used in changing the volume configuration.

Ex. Volumes, plexes, subdisks, Disk-groups.

 

VERITAS Volume Manager Daemons

 

VxVM relies on the following constantly-running daemons for its operation:

 

■ vxconfigd—The VxVM configuration daemon maintains disk and group configurations. It communicates configuration changes to the kernel, and modifies configuration information stored on disks.

■ vxiod—VxVM I/O kernel threads provide extended I/O operations. By default, 16 I/O threads are started at boot time, and at least one I/O thread must continue to run at all times.

■ vxrelocd—The hot-relocation daemon monitors VxVM for events that affect redundancy, and performs hot-relocation to restore redundancy.

Converting a nolargefiles HFS file system to largefiles HFS file system in HP-UX.

Below is the procedure to convert a HFS file system from nolargefiles to largefiles.

Difference between nolargefiles and largefiles:

A file system which has been created with nolargefiles option is not capable of storing any files which are large than 2 GB.

To do so, we need to mention the largefiles option while creating the file system as below:

#newfs -F hfs -o largefiles /dev/vg02/rlvol1

The default is nolargefiles. If no option is mentioned, the maximum file size in the file system will be limited to 2 GB.

If the file system is already created with nolargefiles option, it can be changed to largefiles as below:

1.      Unmount the file system.

2.      Convert the file system to largefiles using the below command:

fsadm -F hfs -o largefiles /dev/vg03/rlvol1

3.      mount the file system back.

Calculating The Number of Addresses Assigned to a Subnet

Most office and home networks use networks with 255 IP addresses or less in which the subnet mask starts with the numbers 255.255.255. This is not a pure networking text, so I'll not discuss larger networks because that can become complicated, but in cases where less than 255 IP addresses are required a few apply.

There are only seven possible values for the last octet of a subnet mask. These are 0, 192, 128, 224, 240, 248 and 252. You can calculate the number of IP addresses for each of these by subtracting the value from 256.

In many cases the subnet mask isn't referred to by the dotted decimal notation, but rather by the actual number of bits in the mask. So for example a mask of 255.255.255.0 may be called a /24 (slash 24) mask instead. A list of the most commonly used masks in the office or home environment is presented in Table .

 

Dotted Decimal Format

Slash Format

Available Addresses

255.255.255.0

/24

256

255.255.255.128

/25

128

255.255.255.192

/26

64

255.255.255.224

/27

32

255.255.255.240

/28

16

255.255.255.248

/29

8

255.255.255.252

/30

4

 

So for example, if you have a subnet mask of 255.255.255.192, then you have 64 IP addresses in your subnet (256 - 192)