HP UX Encrypted Volume and Filesystem (EVFS) manual Creating a New File System with newfs

Models: UX Encrypted Volume and Filesystem (EVFS)

1 174
Download 174 pages 22.98 Kb
Page 56
Image 56

Step 2: Creating and Mounting a File System on an EVFS Volume

Use the following procedure to create and mount a file system on an EVFS volume. This procedure is the same as the one used to create and mount a file system on an LVM, VxVM, or physical volume except that you specify the EVFS character (raw) and block volume device files instead of the LVM, VxVM, or physical device files.

a.Use the newfs command to create a new file system on the character (raw) EVFS volume.

b.(Optional) Use the fsck command to check the integrity of the file volume.

c.Use the mkdir command to create a mount point for the new file system.

d.Mount the file system on the EVFS volume.

e.(Optional) Add an entry to the /etc/fstab file for the encrypted volume.

Step 2a: Creating a New File System with newfs

Use the newfs command to create a new file system on the character (raw) EVFS volume. For example:

newfs [-Ffile_sys_type] raw_evfs_volume_path where:

-Ffile_sys_type

Specifies the file system type. This must be a file system type

 

supported by the underlying LVM, VxVM, or physical volume,

 

such as hfs or vxfs.

raw_evfs_volume_path

Specifies the absolute pathname of the character (raw) EVFS

 

volume device file, such as /dev/evfs/vg01/rlvol5,

 

/dev/evfs/vx/rdsk/rootdg/vol05, or

 

/dev/evfs/rdsk/c2t0d1.

Example

The following example creates a new file system on the character (raw) EVFS volume /dev/evfs/vg01/rlvol5 (the underlying volume is an LVM volume).

#newfs -F vxfs /dev/evfs/vg01/rlvol5

The following example creates a new file system on the character (raw) EVFS volume /dev/evfs/vx/rdsk/rootdg/vol05 (the underlying volume is a VxVM volume).

#newfs -F vxfs /dev/evfs/vx/rdsk/rootdg/vol05

Step 2b: (Optional) Using fsck to Check the File Volume

Optionally, use the fsck command to check the integrity of the file volume:

fsck [-Ffile_sys_type] raw_evfs_volume_path where:

-Ffile_sys_type

Specifies the file system type. This must be a file system type

 

supported by the underlying LVM, VxVM, or physical volume,

 

such as hfs or vxfs. If you do not specify this option, fsck uses

 

the file system type from the corresponding entry in the

 

/etc/fstab file. See fsck(1m) for more information.

raw_evfs_volume_path

Specifies the absolute pathname for the character (raw) EVFS

 

volume device file, such as /dev/evfs/vg01/rlvol5,

 

/dev/evfs/vx/rdsk/rootdg/vol05, or

 

/dev/evfs/rdsk/c2t0d1.

Example

The following example checks the integrity of the file system on the EVFS volume created in the previous step:

56 Configuring an EVFS Volume

Page 56
Image 56
HP UX Encrypted Volume and Filesystem (EVFS) manual Creating and Mounting a File System on an Evfs Volume