Create a new file system in HP Unix

Create a new filesystem:
(A new filesystem will require a new logical volume)
  1. Create the Logical Volume (Procedure Below)
  2. Create the File System
    • Using newfs:
      1. newfs -F <filesystem_type> <path_to_lvol_devicefile>
      2. newfs -F vxfs /dev/vg02/lvol1
    • Using mkfs:
      1. mkfs -F <FILESYSTEM TYPE> -o bsize=<OPTIONS>,<OPTIONS> <PATH TO LV>
        1. -F is filesystem type, such as vxfs for the Veritas File System or JFS
        2. -o are options, such as bsize (Block Size) and largefiles.
        3. Path to LV is of the form /dev/VGNAME/LVNAME
      1. For example:  "mkfs -F vxfs -o bsize=8192,largefiles /dev/bgbill/lvbill"
  3. Create the Mount Point
    1. mkdir -p <full path to mountpoint>
    2. -p will make any subdirectories in the path that do not already exist
  4. Set the proper ownership and permissions on the mount point
    1. chown owner:group /<mount point>
    2. chmod XXX /<mount point>
  5. Mount the File System
    1. Edit /etc/fstab using vi and add the proper entry
      2. For example:  "/dev/vgbill/lvbill  /maindir/subdir/share vxfs rw,suid,largefiles,delaylog,datainlog 0 2"
    2. "mount /<mountpoint>" to mount the file system
  6. Test
    1. Do a "bdf <mount point>".    This command will show if the file system is mounted, and it's size.
    2. Do an "ls -ld <mount point>" to verify that the proper permissions are there.
    3. Have the user test the filesystem, and report back with any problems

Post a Comment