Unable to remove VIOS disk


 
Thread Tools Search this Thread
Operating Systems AIX Unable to remove VIOS disk
# 15  
Old 11-04-2014
but unable to unmount it

Code:
# umount -f  /space
umount: 0506-347 Cannot find anything to unmount.

# unmount /space
unmount: 0506-347 Cannot find anything to unmount.
#

# cat /etc/filesystems | grep space

/space:
        dev             = /dev/fslv00
        vfs             = jfs2
        log             = /dev/loglv00
        mount           = false
        options         = rw
        account         = false

# 16  
Old 11-04-2014
Ok, remove it
# 17  
Old 11-04-2014
Quote:
Originally Posted by ibmtech
Ok, remove it
It won't let me remove it
please see the output

Code:
# unmount /space
unmount: 0506-347 Cannot find anything to unmount.
# unmount /dev/fslv00
unmount: 0506-347 Cannot find anything to unmount.
# rmlv /dev/fslv00
Warning, all data contained on logical volume /dev/fslv00 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? yes
0516-306 getlvodm: Unable to find  /dev/fslv00 in the Device
        Configuration Database.
0516-912 rmlv: Unable to remove logical volume /dev/fslv00.

# rmlv -f /dev/fslv00
0516-306 getlvodm: Unable to find  /dev/fslv00 in the Device
        Configuration Database.
0516-912 rmlv: Unable to remove logical volume /dev/fslv00.

How about if I remove it from the file /etc/filesystems the entry for /space ? and then try it or do it need to reboot the machine ?
# 18  
Old 11-04-2014
Send me the output of
Code:
sysdumpdev -l
lsps -a
Also, try
rmfs  /space

By the way when you run rmlv, you just mention the lvname and NO /dev
So, it should be
rmlv -f fslv00

Last edited by ibmtech; 11-04-2014 at 01:36 PM.. Reason: Added rmlv syntax
# 19  
Old 11-04-2014
here it the output

Code:
# sysdumpdev -l
primary              /dev/lg_dumplv
secondary            /dev/sysdumpnull
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON
type of dump         traditional
# lsps -a
Page Space      Physical Volume   Volume Group Size %Used Active  Auto  Type Chksum
paging00        hdisk0            rootvg        1024MB     1   yes   yes    lv     0
hd6             hdisk0            rootvg         512MB     1   yes   yes    lv     0
# rmfs /space
# rmlv -f fslv00
0516-306 getlvodm: Unable to find  fslv00 in the Device
        Configuration Database.
0516-912 rmlv: Unable to remove logical volume fslv00.
#
# lsfs
Name            Nodename   Mount Pt               VFS   Size    Options    Auto Accounting
/dev/hd4        --         /                      jfs2  1048576 --         yes  no
/dev/hd1        --         /home                  jfs2  20971520 --         yes  no
/dev/hd2        --         /usr                   jfs2  7340032 --         yes  no
/dev/hd9var     --         /var                   jfs2  2097152 --         yes  no
/dev/hd3        --         /tmp                   jfs2  7340032 --         yes  no
/dev/hd11admin  --         /admin                 jfs2  1048576 --         yes  no
/proc           --         /proc                  procfs --      --         yes  no
/dev/hd10opt    --         /opt                   jfs2  3145728 --         yes  no
/dev/livedump   --         /var/adm/ras/livedump  jfs2  1048576 --         yes  no
/dev/fwdump     --         /var/adm/ras/platform  jfs2  1048576 --         no   no
/dev/VMLibrary  --         /var/vio/VMLibrary     jfs2  31457280 rw         yes  no

/space has been removed.

Now the next step is to remove the vg

Code:
# rmlv -f patchtest
0516-306 getlvodm: Unable to find  patchtest in the Device
        Configuration Database.
0516-912 rmlv: Unable to remove logical volume patchtest.

# exit
$ rmlv -f patchtest
Unable to find patchtest in the Device Configuration Database.

rmlv: Unable to remove logical volume patchtest.



$ oem_setup_env
l# spv
hdisk0          00c7780e79838606                    rootvg          active
hdisk1          00c7780e2e21ec86                    diskpool_4      active
hdisk2          00c7780ea5bd16bb                    diskpool_4      active
hdisk3          00c7780ee224f286                    disk_pool_5     active
hdisk4          00c7780e1b75933b                    diskpool_3      active
hdisk5          00c7780ece91bde2                    diskpool_2      active
hdisk6          00c7780ec2b65f4d                    diskpool_1      active
hdisk7          00c7780e5293914b                    None
hdisk9          00c7780e8945b5bb                    patchtest       active


# reducevg -df patchtest hdisk9 
0516-062 lqueryvg: Unable to read or write logical volume manager
        record. PV may be permanently corrupted. Run diagnostics
0516-882 reducevg: Unable to reduce volume group.

# 20  
Old 11-04-2014
Ok,
Have you tried varyoffvg patchtest?

If that doesn't varyoff, then you have to look into each vhost and their backing device and compare it with lsvg -l `lsvg` output.

If you see some devices from patchtest VG remove them.
This User Gave Thanks to ibmtech For This Post:
# 21  
Old 11-04-2014
Thanks
Code:
# varyoffvg patchtest
0516-062 lqueryvg: Unable to read or write logical volume manager
        record. PV may be permanently corrupted. Run diagnostics


# lspv
hdisk0          00c7780e79838606                    rootvg          active
hdisk1          00c7780e2e21ec86                    diskpool_4      active
hdisk2          00c7780ea5bd16bb                    diskpool_4      active
hdisk3          00c7780ee224f286                    disk_pool_5     active
hdisk4          00c7780e1b75933b                    diskpool_3      active
hdisk5          00c7780ece91bde2                    diskpool_2      active
hdisk6          00c7780ec2b65f4d                    diskpool_1      active
hdisk7          00c7780e5293914b                    None
hdisk9          00c7780e8945b5bb                    patchtest
# exportvg patchtest
# rmdev -Rdl hdisk9
hdisk9 deleted

running cfgmgr

Code:
#cfgmgr

# cfgmgr
Method error (/usr/lib/methods/cfgsisioa -l sisscsia1 ):
        0514-040 Error initializing a device into the kernel.
# lspv
hdisk0          00c7780e79838606                    rootvg          active
hdisk1          00c7780e2e21ec86                    diskpool_4      active
hdisk2          00c7780ea5bd16bb                    diskpool_4      active
hdisk3          00c7780ee224f286                    disk_pool_5     active
hdisk4          00c7780e1b75933b                    diskpool_3      active
hdisk5          00c7780ece91bde2                    diskpool_2      active
hdisk6          00c7780ec2b65f4d                    diskpool_1      active
hdisk7          00c7780e5293914b                    None
#

GONE...
THANKS IBMTECH !!!

Problem resolved. Case closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to install client AIX LPAR to vscsi hdisk provided from VIOS

Hi everybody, I have Power5 server with 4 internal hdisks each of 70Gb. VIOS server was installed via Virtual I/O Server Image Repository on the HMC. HMC release - 7.7.0 VIOS rootvg installed on 2 disk(these disks merged to one storage pool during VIOS install process),and 2 others hdisks... (2 Replies)
Discussion started by: Ravil Khalilov
2 Replies

2. AIX

VIOS: Extend virtual disk assigned to running lpar?

Hello, VIOS 2.2.1.4 using IVM. I'm trying to extend a virtual disk assigned to a running lpar so that I can expand the lpar's datavg and grow some filesystems for the user. Storage admin expanded the lun and new size was reflected in VIO right away. I then needed the storage pool to... (2 Replies)
Discussion started by: j_aix
2 Replies

3. Solaris

Solved: Disk Unable to Boot

Update: The / file system (/dev/rdsk/c1t0d0s0) is being checked fsck unable to stat WARNING - unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0). Root password for system maintenance (control-d to bypass): I am unable to hit control-d to by pass. I... (50 Replies)
Discussion started by: br1an
50 Replies

4. AIX

Shared Disk in VIOS between two LPARs ?

is there any way to create shared virtual disk between two LPARs like how you can do it using Storage through Fiber on two servers ? Trying to stimulate HACMP between two LPARs (1 Reply)
Discussion started by: filosophizer
1 Replies

5. AIX

VIOS IP address - separate vlan for vios servers ?

Hello, Lets say for simplicity that I do not use any vlan config inside my server - one lpar group use hea physical port1, another group hea physical port2. Physical port1 configured as vlan1 on external switch, physical port2 as vlan2. What is the common practice - should I isolate my vios... (0 Replies)
Discussion started by: vilius
0 Replies

6. Ubuntu

Unable to mount disk

I am running Ubuntu Server, I recently added a new hard drive to the machine When I run fdisk -l I see both drives. The recently added drive is present but it's listed as extended. when I try to mount the drive it says you must specify the file system type. I can't mount this drive, I was... (2 Replies)
Discussion started by: NelsonC
2 Replies

7. Solaris

Unable to take backup of /var on another disk !!

Hi Gurus, I have to back the /var to other disk, however I am unable to do so. What I did is Created a partition on another disk, placed file system on the slice and mounted on /mnt . Issued following command #ufsdump 0cfu /mnt /var And I am getting... (2 Replies)
Discussion started by: kumarmani
2 Replies

8. AIX

Problem mapping LUN disk from VIOS to the LPAR

Hello guys, It would be so nice of you if someone can provide me with these informations. 1) My SAN group assigned 51G of LUN space to the VIO server.I ran cfgdev to discover the newly added LUN. Unfortunately most of the disks that are in VIO server is 51G. How would I know which is the newly... (3 Replies)
Discussion started by: solaix14
3 Replies

9. Linux

Unable to remove file using rm: Disk space is full

Hi all, My disk space is 100% full. df -k <dir> -> 100% One of my debug files consume huge amount of space and i want to remove the same to start off fresh debugs. However i'm unable to remove the file giving out the following error message: rm -f debug.out22621 rm: cannot remove... (8 Replies)
Discussion started by: Pankajakshan
8 Replies
Login or Register to Ask a Question