Operating System - HP-UX
1834293 Members
2146 Online
110066 Solutions
New Discussion

newfs: /dev/vg01/db is not a character device

 
SOLVED
Go to solution
yassyboy
Frequent Advisor

newfs: /dev/vg01/db is not a character device

Hi All,

I amm following the HP-UX System Admin 1 Training Manual to create new logical volume.

I have followed the following steps : -

1. dd if=/dev/zero of=/dev/rdsk/c3t5d0 bs=1024 count=1024

2. pvcreate -f /dev/rdsk/c3t5d0

3. mkdir /dev/vg01

4. mknod /dev/vg01/group c 64 0x010000

5. vgcreate vg01 /dev/dsk/c3t5d0

6. vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 8683
VGDA 2
PE Size (Mbytes) 4
Total PE 8681
Alloc PE 7821
Free PE 860
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

7. lvcreate -L 12288 -n db vg01

# lvdisplay /dev/vg01/db
--- Logical volumes ---
LV Name /dev/vg01/db
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 12288
Current LE 3072
Allocated PE 3072
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


8. newfs -F vxfs /dev/vg01/db
vxfs newfs: /dev/vg01/db is not a character device


As per Sys Admin 1 I should be able to successfully create the vxfs.

Did I miss something?
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: newfs: /dev/vg01/db is not a character device

Try

newfs -F vxfs /dev/vg01/rdb

(use "r"db!)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
melvyn burnard
Honored Contributor
Solution

Re: newfs: /dev/vg01/db is not a character device

well you have it all correct up to the newfs command, as you need to run this command against the character or raw device, hence the /dev/vg01/rdb device (note the r in rdb)
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Venkatesh BL
Honored Contributor

Re: newfs: /dev/vg01/db is not a character device

Yes, and for mounting it, you need go back to using the block device (without 'r')
yassyboy
Frequent Advisor

Re: newfs: /dev/vg01/db is not a character device

Thank you for all your guide.. POINTS Assigned...

Cant belive i missed "r"...LOL..

here is the result after mounting:
BDF -l


/dev/vg01/db 12582912 3686 12186134 0% /d/db

KR..Yxx
yassyboy
Frequent Advisor

Re: newfs: /dev/vg01/db is not a character device

Solutions provided by all worked..thanks..
Saravanan_rg
Occasional Advisor

Re: newfs: /dev/vg01/db is not a character device

hi

Everything it has been corrected. In creating filesystem command also correct, but lats u should be add with r character. Example


/dev/dsk block device files for disk drives and cdrom

/dev/rdsk raw or character device files for disk drives
Saravanan_rg
Occasional Advisor

Re: newfs: /dev/vg01/db is not a character device

hi

Everything it has been corrected. In creating filesystem command also correct, but last u should be add with r character. Example


/dev/dsk block device files for disk drives and cdrom

/dev/rdsk raw or character device files for disk drives