0516-822 mklv: Unable to create hd6 logical volume.

0516-822 mklv Unable to create hd6 logical volume

I have removed hd6 paging logical volume because of some reasons. after that i try to recreate hd6 paging lv but i got below mentioned errors.

Error code:

0516-822 mklv: Unable to create logical volume.

Error Description:

mknod: /dev/hd6: Do not specify an existing file.
0516-822 mklv: Unable to create logical volume.

Problem Identification:

i was removed paging lv using “rmlv” command but not removed from /dev and odm.
We have to find out the major and minor device details from /dev/ locations

# ls -l /dev/hd6
# brw-rw—- 1 root system 37, 2 Jul 20 16:10 /dev/hd6
Solution:

Goto /dev/ device directory location.

# cd /dev/

Find out the hd6 block devices and character devices files details

# ls -lrt | grep -iE “hd6|rhd6”
# brw-rw—- 1 root system 37, 2 Jul 20 16:10 /dev/hd6
# crw-rw—- 1 root system 37, 2 Jul 20 16:10 /dev/rhd6

Permanently remove the both files from the system.

# rm /dev/hd6
# rm /dev/rhd6
Result:

Try to create new hd6 paging logical volume

# smitty mklv
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP]                                                                                    [Entry Fields]
Logical volume NAME                                                           [hd6]
* VOLUME GROUP name                                                     rootvg
* Number of LOGICAL PARTITIONS                                   [4]
PHYSICAL VOLUME names                                                 [hdisk3]
Logical volume TYPE                                                              [paging]
POSITION on physical volume                                              middle
RANGE of physical volumes                                                  minimum
MAXIMUM NUMBER of PHYSICAL VOLUMES                  []

Verify the created paging space.

# lsps -a

Activate the default hd6 paging space using swapon command.

# swapon /dev/hd6

Related posts

Leave a Comment