Operating System - HP-UX
1753546 Members
5624 Online
108795 Solutions
New Discussion юеВ

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

 
SOLVED
Go to solution
Taurian
Valued Contributor

Unable to see "-b" option in newfs command in HP-UX 11.23

Greetings everyone,

I am trying to create SAN volumes on my HP-ux 11.23 box. I need to create a filesystem with 8KB blocksize. But I am having trouble with my "newfs" command. I am using the following command:

# newfs -F vxfs -b 8192 /dev/rdsk/c3t0d1
# UX:vxfs mkfs: ERROR: V-3-21208: /dev/rdsk/c3t0d1 is a logical volume device, cannot mkfs
# newfs: -b is unknown operand
# usage: newfs [-F FStype] [-V] [-o specific_options] special


I am unable to find the "-b" operand in the man page for command newfs as well. Please let me know what the issue is.
Which gives
8 REPLIES 8
Shibin_2
Honored Contributor

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

There is no -b option in newfs.

-b option is with fsadm.
Regards
Shibin
Shibin_2
Honored Contributor

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

To set block size as 8kb, use the following command.

newfs -F vxfs -o bsize=8192

Regards
Shibin
Taurian
Valued Contributor

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

Hi Shibin,

Thanks for the prompt response.

I am unable to find the "-b" option in fsadm command as well.

# usage: fsadm [-F FStype] [-V] [-o specific_options] special


The man page for fsadm command also doesn't show any "-b" option.
Shibin_2
Honored Contributor

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

Hi Taurian,

Did you read my second post? There is no -b option with newfs command. You need to specify block size with -o.

Read my second post.
Regards
Shibin
Taurian
Valued Contributor

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

OK. Read your second post as well. Here is the command output:

# newfs -F vxfs -o bsize=8192 /dev/rdsk/c3t0d1
UX:vxfs newfs: ERROR: V-3-21619: Illegal suboption -- bsize=8192
UX:vxfs newfs: INFO: V-3-21635: usage: newfs [-F vxfs] [-V] [-v] [-R swap] [-B] [-O disk_type] [mkfs-options] special
where mkfs-options are:
-s file system size (sectors)
-b block size
-o largefiles|nolargefiles



With the following command I get the error:

# newfs -F vxfs -b 8192 /dev/rdsk/c3t0d1
UX:vxfs mkfs: ERROR: V-3-21208: /dev/rdsk/c3t0d1 is a logical volume device, cannot mkfs


The steps I followed are:

1) # pvcreate /dev/rdsk/c3t0d1
2) # vgcreate -s 16 VGDATA /dev/dsk/c3t0d1
3) # lvcreate -l 31995 -n lvdata VGDATA
4) # newfs -F vxfs -b 8192 /dev/rdsk/c3t0d1
UX:vxfs mkfs: ERROR: V-3-21208: /dev/rdsk/c3t0d1 is a logical volume device, cannot mkfs



The 4th command gives the error. Please let me know if I am making some mistake in the procedure. Thanks.
Bill Hassell
Honored Contributor
Solution

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

You are running newfs on a disk (c3t0d1). Use the command on the logical volume where you want the filesystem:

newfs -b 8192 -o largefiles /dev/VGDATA/rlvdata


Bill Hassell, sysadmin
Mounaam
Trusted Contributor

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

Hi Taurian,

newfs and fsadm man pages describe what is common to all fs types (hfs, vxfs, nfs...).

For informations specific to a fs type, take a look to _ manual page.
For example, with newfs for vxfs:
$ man newfs_vxfs

You'll find '-b' option description.

Regards,
Mounaam
Taurian
Valued Contributor

Re: Unable to see "-b" option in newfs command in HP-UX 11.23

Bill Hassell, you were right on target. Your suggestion solved my issue. Thanks.