Remove filesystem but not lv ?


 
Thread Tools Search this Thread
Operating Systems AIX Remove filesystem but not lv ?
# 8  
Old 01-14-2010
Can't you just remove the entry for the filesystem in /etc/filesystems and then dd zeroes over the first part of the rlv (raw logical volume character device)? (Just a hunch, my AIX is not so fluent).
# 9  
Old 01-14-2010
Quote:
Originally Posted by Scrutinizer
Can't you just remove the entry for the filesystem in /etc/filesystems and then dd zeroes over the first part of the rlv (raw logical volume character device)? (Just a hunch, my AIX is not so fluent).
For reasons that I can't demonstrate right now, because I don't have access to an AIX system, I'm guessing that's really not a great idea!
# 10  
Old 01-15-2010
Could work - I did not try it ever, but to be on the sure side, I recommend what I already posted. It should be no big deal to delete the fs + LV and just recreate the LV. That is not much of a work to do and keeps everything in consistency, ODM, /etc/filesystem ... ie. keeps off further problems.
# 11  
Old 01-15-2010
This works exactly as Zaxxon said in his first post but now I feel we need some more details. After all we are talking LVM here. The AIX administrator would rmfs the filesystem after he stored the LV mapping into a file. This is done easily with lslv -m <yourlv> or lspv -M <lvhdisk> | grep <yourlv> command. While the rmfs command removes the filesystem entries and the LV information from the VG the data will be intact on the media surface and the VG structure for disk usage remains unchanged. Thus the AIX admin then recreates the LV with the mapping information (mklv ... -m <mapfile>) and ends up with the original LV but without the filesystem. A map file's syntax consists of two fields. First field is what hdisk is being used and second field is the number of the Physical Partition PP that is used on that particular hdisk:
Code:
hdisk1:230
hdisk1:234
hdisk4:192

This works like a charm (as most things with AIX LVM) and as long as the order of the PP is not changed the data in the LV will be accessible/usable. I.e. the order of the PP in the map file must be according to the Logical Partition LP. In the example given LP No.1 is on hdisk1 PP 230, LP No. 2 is on hdisk1 PP 234 and LP No. 3 is on hdisk4 PP 192. HTH
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash to remove find and remove specific extension

The bash below executes and does find all the .bam files in each R_2019 folder. However set -x shows that the .bam extension only gets removed from one .bam file in each folder (appears to be the last in each). Why is it not removing the extension from each (this is $SAMPLE)? Thank you :). set... (4 Replies)
Discussion started by: cmccabe
4 Replies

2. Post Here to Contact Site Administrators and Moderators

Please remove this post/remove information from it

In this thread: /shell-programming-and-scripting/255687-organizing-text-file-capital-names-capital-word-capital-word.html (sorry i cant use links) that is not an example, those are real students names with real student login id's for the college i am attending and i am on that list. Please... (3 Replies)
Discussion started by: throwawayacc
3 Replies

3. UNIX for Dummies Questions & Answers

Filesystem nospace error - what remove

Hi I have a: HP-UX hh004hp B.11.31 U ia64 2312016959 unlimited-user license and a big problem: vxfs: msgcnt 254716 mesg 001: V-2-1: vx_nospace - /dev/vg00/lv_app file system full (8 block extent) ------------------------------------ in the error i see this: /dev/vg00/lv_app and... (4 Replies)
Discussion started by: raspbeginner
4 Replies

4. Red Hat

Cannot remove root Filesystem from the Multipath configuration

Hello all, I am running "Red Hat Enterprise Linux Server release 6.4 (Santiago)" The root Filesystem is currently part of the Multipath configuration and I need to remove it without rebooting the production Server. The wwid I want to remove from Multipathing is the last one i the list of... (3 Replies)
Discussion started by: logsbyrne
3 Replies

5. Shell Programming and Scripting

remove brackets and put it in a column and remove repeated entry

Hi all, I want to remove the remove bracket sign ( ) and put in the separate column I also want to remove the repeated entry like in first row in below input (PA156) is repeated ESR1 (PA156) leflunomide (PA450192) (PA156) leflunomide (PA450192) CHST3 (PA26503) docetaxel... (2 Replies)
Discussion started by: manigrover
2 Replies

6. AIX

Mount Filesystem in AIX Unable to read /etc/filesystem

Dear all, We are facing prolem when we are going to mount AIX filesystem, the system returned the following error 0506-307The AFopen call failed : A file or directory in the path name does not exist. But when we ls filesystems in the /etc/ directory it show -rw-r--r-- 0 root ... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies

7. Solaris

Solaris Filesystem vs. Windows FileSystem

Hi guys! Could you tell me what's the difference of filesystem of Solaris to filesystem of Windows? I need to compare both. I have read some over the net but it's so much technical. Could you explain it in a more simpler term? I am new to Solaris. Hope you help me guys. Thanks! (4 Replies)
Discussion started by: arah
4 Replies

8. UNIX for Dummies Questions & Answers

hwo to find shared filesystem and local filesystem in AIX

Hi, I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local. Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies

9. Solaris

Filesystem - error when extend the filesystem

Hi all, currently , my root filesystem already reach 90 ++% I already add more cylinder in the root partition as below Part Tag Flag Cylinders Size Blocks 0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300 1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies

10. UNIX for Dummies Questions & Answers

smitty, remove user, remove directory as well..

hi, i am on aix. i used smitty to remove a user.. but then found that its directory still exists.... so i have to remove the directory manually... am i doing it the right way? (2 Replies)
Discussion started by: yls177
2 Replies
Login or Register to Ask a Question