Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

From single user I tried VGChange. I got a message that said 0 volumes are active. So I then tried vgexport. and it said volumes are active.


I have been trying to export my LVM (save the LVM so it can be accessed on the new install) so I can clear and re-setup my server from scratch. I am using the guide here. http://tldp.org/HOWTO/LVM-HOWTO/recipemovevgtonewsys.html

My VG (fileserver) is made of 4 drives with one LV (data) formatted ext3

I unmounted data and then tried vgchange -an but it failed. I found eleswhere that I need to do lvchange -an first. I tried that and got,

     device-mapper: remove ioctl on  failed: Device or resource busy
     Unable to deactivate fileserver-data (252:0)

I tried fuser and nothing shows up. So I then found dmsetup ls --tree and got

fileserver-data (252:0)
ââ (8:65)
ââ (8:33)
ââ (8:49)
ââ (8:17)

I read about kpartx but I don't have it and can't install it. I also remember reading that the export commands are not necessary. If I just reinstall ubuntu from scratch as it is now will VGimport work? I am wondering if I am making more work then I need to. The filesystem is unmounted and the system will be shut down. Its not like I am hot swapping or anything.

Result of 'df'

/dev/mapper/nas-root 236245760 181508940  42736156  81% /
udev                   1949492         4   1949488   1% /dev
tmpfs                   796812      1836    794976   1% /run
none                      5120         0      5120   0% /run/lock
none                   1992024         4   1992020   1% /run/shm
none                    102400         0    102400   0% /run/user
/dev/sda1               233191    224808         0 100% /boot

Nothing seems to be related to the LV

I made this VG seperate from any system drives. It is literally 4 drives setup as a VG (fileserver) that VG is utilized 100% by LV (data). data is one partition 100% of the space formatted ext3. And no encryption

share|improve this question
    
Device or resource busy means that it's still mounted somewhere. –  hbdgaf May 26 '13 at 13:03
    
Just use df and look for anything mounted from /dev/mapper. If you have full disk encryption plus a dump drive(lv) in the same VG, you might not be able to peel off the dump drive lv without moving it to another vg/pv since you will not ever be able to unmount a vg with your root mounted in the same vg (guessing at what happened). –  hbdgaf May 26 '13 at 13:10
    
I made this VG seperate from any system drives. It is literally 4 drives setup as a VG (fileserver) that VG is utilized 100% by LV (data). data is one partition 100% of the space formatted ext3. And no encryption –  JpaytonWPD May 26 '13 at 13:14
    
Then check df.. –  hbdgaf May 26 '13 at 13:15
    
I added the df output to the question. Nothing related to the fileserver vg or data lv @CallmeV –  JpaytonWPD May 26 '13 at 13:19
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.