I have problems with one of volume groups. When I delete a filesystem
from it, I receive the message, that logical volume (which was used by
this filesystem, for instance lva01) cannot be deleted. However, this
logical volume IS deleted (lspv and other commands doesn't show it
anymore), but in /dev directory file named as this LV (lva01) exists.
When I want to create LV with the same name (lva01), there appears a
message saying, that the name is in use. So, in /dev I have some
files, which I can't delete (rmdev does not work, I dont think rm is a
good idea). I don't know, if they are affecting the system. Below
there is fragment of smit.log, which shows all actions leading to
described situation. Is there any solution ?
The problems started after I reinstalled the system from image backup.
Volume groups other than rootvg where NOT automaticaly recreated, I
had to do it manually, and then everything started.
Please help if You can.
Thanks.
[Sep 08 1998, 12:07:31]
Starting SMIT
(Menu screen selected,
FastPath = "top_menu",
id_seq_num = "0",
next_id = "top_menu",
title = "System Management".)
(Menu screen selected,
FastPath = "storage",
id_seq_num = "030",
next_id = "storage",
title = "System Storage Management (Physical & Logical
Storage)".)
(Menu screen selected,
FastPath = "lvm",
id_seq_num = "010",
next_id = "lvm",
title = "Logical Volume Manager".)
(Menu screen selected,
FastPath = "lv",
id_seq_num = "020",
next_id = "lv",
title = "Logical Volumes".)
(Selector screen selected,
FastPath = "mklv",
id = "mklv",
next_id = "mklv1",
title = "Add a Logical Volume".)
(Dialogue screen selected,
FastPath = "mklv",
id = "mklv1",
title = "Add a Logical Volume".)
[Sep 08 1998, 12:09:32]
Command_to_Execute follows below:
>> mklv -y'lva01' -t'jfs' -L'/usr/c2000/sysuf' vg00 100 hdisk3
Output from Command_to_Execute follows below:
---- start ----
lva01
---- end ----
[Sep 08 1998, 12:09:43]
(Menu screen selected,
FastPath = "fs",
id_seq_num = "020",
next_id = "fs",
title = "File Systems".)
(Menu screen selected,
FastPath = "manfs",
id_seq_num = "030",
next_id = "manfs",
title = "Add / Change / Show / Delete File Systems".)
(Menu screen selected,
FastPath = "jfs",
id_seq_num = "010",
next_id = "jfs",
title = "Journaled File Systems".)
(Dialogue screen selected,
FastPath = "crjfslv",
id = "crjfslv",
title = "Add a Journaled File System on a Previously
Defined Logic
al Volume".)
ori2_search() found no matches;
ori2_search(): ori_query parameter is:
"
SMiT050674|R=A,N=F,B=F,F=1:2:4:5:9
"
[Sep 08 1998, 12:14:14]
Command_to_Execute follows below:
>> crfs -v jfs -d'lva01' -m'/usr/c2000/sysuf' -A'no' -p'rw' -t'no' -a frag='4096
' -a nbpi='4096' -a compress='no'
Output from Command_to_Execute follows below:
---- start ----
Based on the parameters chosen, the new /usr/c2000/sysuf JFS file
system
is limited to a maximum size of 134217728 (512 byte blocks)
New File System size is 1638400
---- end ----
[Sep 08 1998, 12:14:50]
[Sep 08 1998, 12:15:23]
Exiting SMIT
[Sep 08 1998, 12:54:26]
Starting SMIT
(Menu screen selected,
FastPath = "top_menu",
id_seq_num = "0",
next_id = "top_menu",
title = "System Management".)
(Menu screen selected,
FastPath = "storage",
id_seq_num = "030",
next_id = "storage",
title = "System Storage Management (Physical & Logical
Storage)".)
(Menu screen selected,
FastPath = "fs",
id_seq_num = "020",
next_id = "fs",
title = "File Systems".)
(Menu screen selected,
FastPath = "manfs",
id_seq_num = "030",
next_id = "manfs",
title = "Add / Change / Show / Delete File Systems".)
(Menu screen selected,
FastPath = "jfs",
id_seq_num = "010",
next_id = "jfs",
title = "Journaled File Systems".)
(Dialogue screen selected,
FastPath = "rmjfs",
id = "rmjfs",
title = "Remove a Journaled File System".)
[Sep 08 1998, 12:55:07]
Command_to_Execute follows below:
>> rmfs /usr/c2000/sysuf
Output from Command_to_Execute follows below:
---- start ----
0516-022 ldeletelv: Illegal parameter or structure value.
0516-912 rmlv: Unable to remove logical volume lva01.
---- end ----
[Sep 08 1998, 12:55:15]
(Dialogue screen selected,
FastPath = "rmjfs",
id = "rmjfs",
title = "Remove a Journaled File System".)
[Sep 08 1998, 12:55:54]
Exiting SMIT
Looks as though you've got some hangover references to this lv name in
the ODM, are you 100% sure it's gone, Use lspv -l hdisk3 and lsvg -l
VGName
If it's really gone, use odm commands such as odmget & odmdelet to
remove refs from the odm
Syntax is something like
odmget CuAt | grep -p lvname
then use odmdelet to remove these rouge instances.
odmdelete -o CuAt -q name="lvname"
These are Aix 4.1.5 commands, older Aix's use odme. Be very careful
with ODM.
Good Luck
John McQue