Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change a Minor Number on a LV

Status
Not open for further replies.

kozlow

MIS
Mar 3, 2003
326
0
0
US
root@ltpt0012 /dev # crfs -v jfs2 -d "db2bkups_new_lv" -m "/db2bkups_new"
0516-020 lcreatelv: Logical volume name or minor number already
in use.
0516-822 mklv: Unable to create logical volume.
crfs: 0506-902 Cannot create logical volume.


I do not see it in use...

root@ltpt0012 /dev # ls -l | grep 49
crw------- 1 root system 49, 0 Jun 18 15:22 __vg49
brw-rw---- 1 root system 49, 3 Jun 18 15:22 db2bkups_new_lv
brw-rw---- 1 root system 49, 1 Mar 15 2007 db_backup_lv
crw-rw---- 1 root system 49, 0 Mar 15 2007 db_backup_vg
brw-rw---- 1 root system 49, 2 Apr 02 2007 loglv04
crw-rw---- 1 root system 49, 3 Jun 18 15:22 rdb2bkups_new_lv
crw-rw---- 1 root system 49, 1 Mar 15 2007 rdb_backup_lv
crw-rw---- 1 root system 49, 2 Mar 15 2007 rloglv04

is there a way to change the minor number to something like 99 and see if that clears up the issue?
 
I'd start with synclvodm.
Looks like it does not recognise the lv by name because the message is from lcreatelv.
I wouldn't go poking about in the device numbers if at all possible.
 
@unixfreak

Henrik, a LV like so many other disk devices has 2 /dev names, one is a block-IO special file (b) the other is a raw or character-IO special file (r).


@Kozlow,

I would try the operation again, but with a shorter LV name

[tt]chlv -n db2bkn_lv db2bkups_new_lv[/tt]

And if this operation doesn't fail, then:

[tt]crfs -v jfs2 -d "db2bkn_lv" -m "/db2bkups_new"[/tt]



HTH,

p5wizard
 
p5wizard said:

> Henrik, a LV like so many other disk devices has 2 /dev names, one is a block-IO special file (b) the other is a raw or character-IO special file (r).

Not sure why you're saying that but I must have been tired posting that. The command is using the device, not creating it. duh...



-----
Cheers,
Henrik Morsing
Join us on irc://chat.freenode.net channel ##aix
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top