lvrename to a mounted device


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers lvrename to a mounted device
# 1  
Old 10-30-2011
lvrename to a mounted device

Hi,
I wanted to rename a filesystem but I forgot to unmount it before running lvrename and now it is still visible when doing df -k

old name
device:
/dev/mapper/vg01-MGRSTR3
mounted as /MGRSTR3

new name:
/dev/mapper/vg01-mgrusr3
mounted as /mgrusr3

when trying to unmount the old one i'm getting 'device busy' but 'fuser -cu' doesnt show any process running

[root@server MGRSTR3]# umount /dev/mapper/vg01-MGRSTR3
umount: /MGRSTR3: device is busy
umount: /MGRSTR3: device is busy


how can I fix this?

df -k output:

Code:
/dev/mapper/vg01-MGRSTR3
                      75957344  44354216  27746528  62% /MGRSTR3

/dev/mapper/vg01-mgrusr3
                      75957344  44354216  27746528  62% /mgrusr3

# 2  
Old 10-31-2011
Whats the output of:
who -a /dev/mapper/vg01-MGRSTR3
Smilie
# 3  
Old 10-31-2011
no output
 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies

2. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

3. UNIX for Advanced & Expert Users

Which system calls to move data on a device with mounted partitions?

I need to be able to move data around a disk that has mounted partitions. I am not touching the data on the mounted partition, the MBR or any other disk metadata, only the freespace and unmounted partitions. At the moment I am using libparted but it causes data corruption sometimes although there... (1 Reply)
Discussion started by: vstrom
1 Replies

4. OS X (Apple)

Not mounted, no-driver USB device in terminal (how to access?)

hi, i am on a quest to access and even mount if possible a drive on os x. there is no driver for the device, but it lists fine in the system profiler. can i access its location from the terminal? how? here is what i get on the system profiler: Speed: Up to 480 Mb/sec Manufacturer: SAMSUNG ... (3 Replies)
Discussion started by: sontarieh
3 Replies

5. Programming

Checking if device is mounted..

Hi, I want to check if a device is mounted before performing actual mount. I was able to check that using the below C code. But in C++ it is throwing the following error: " error: invalid conversion from `int' to `const char*' " C program just generated a warning message, but C++ throws... (3 Replies)
Discussion started by: cjjoy
3 Replies
Login or Register to Ask a Question