Sponsored Content
Operating Systems AIX "Accidentally" destroyed my filesystem Post 302856379 by bstring on Monday 23rd of September 2013 05:40:27 PM
Old 09-23-2013
Quote:
Originally Posted by Scott
The rmfs would have removed the logical volume (fslv00). Create it again, using mklv, then try creating the filesystem again with mkfs.
Thank you Scott! I created a new logical volume from my volume group data01, like you said:
Code:
[root@ibm: dev]# mklv data01 65G
lv00
[root@ibm: dev]# lslv lv00
LOGICAL VOLUME:     lv00                   VOLUME GROUP:   data01
LV IDENTIFIER:      00c3e63a00004c000000013535af9d5f.3 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       closed/syncd
TYPE:               jfs                    WRITE VERIFY:   off
MAX LPs:            520                    PP SIZE:        128 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                520                    PPs:            520
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    32
MOUNT POINT:        N/A                    LABEL:          None
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO

Then I tried to create the new filesystem:
Code:
[root@ibm: dev]# mkfs -V jfs2 -o name=/data01 /dev/lv00
mkfs: destroy /dev/lv00 (yes)? y
File system created successfully.
68155156 kilobytes total disk space.
Device /dev/lv00:
  Standard empty filesystem
  Mount point:    /data01
  Size:           136310312 512-byte (DEVBLKSIZE) blocks

However when I ran df my new filesystem did not show up:
Code:
[root@ibm: /]# df
Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4       104857600  83368944   21%    11249     1% /
/dev/hd2         6815744    799104   89%    45470    33% /usr
/dev/hd9var      3407872   1133104   67%     8384     6% /var
/dev/hd3          262144      8624   97%      139     4% /tmp
/dev/fwdump       524288    523424    1%       19     1% /var/adm/ras/platform
/dev/hd1         1048576   1047616    1%        7     1% /home
/dev/hd11admin     262144    261384    1%        5     1% /admin
/proc                  -         -    -         -     -  /proc
/dev/hd10opt     2097152   1279616   39%    14927    10% /opt
/dev/livedump     524288    523552    1%        4     1% /var/adm/ras/livedump

Also my /etc/filesystems file does not have an entry for /data01.

Did I do something wrong? Was I supposed to set an auto-mount option or something?

When I look at the volume group information, my new logical volume shows up but it says N/A for mount point, was I supposed to do something when creating the new LV?
Code:
[root@ibm: /]# lsvg -l data01
data01:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
lvdata01            jfs        1       1       1    closed/syncd  N/A
loglv00             jfs2log    1       1       1    closed/syncd  N/A
lv00                jfs        520     520     1    closed/syncd  N/A

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

3. Emergency UNIX and Linux Support

Accidentally Changed File Ownership to Include a "Comment" [AIX]

Hi. I've had a little mishap. To cut a long story short, I've accidentally recursively ran chown on a directory (actually a bunch of 'em). Not a problem in itself, but I had a slight error in the code I used to get the list of directories and ended up with a comment in the file ownership. ... (15 Replies)
Discussion started by: Scott
15 Replies

4. Red Hat

eliminating "mounted filesystem" messages from syslog

Hello all, perhaps this is an odd request, but I have the requirement none the less. Every time I mount a filesystem (at least an ext4 filesystem), I get a line indicating such in the syslog: Oct 9 22:26:28 sulaco kernel: EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: I... (2 Replies)
Discussion started by: lupin..the..3rd
2 Replies

5. Shell Programming and Scripting

Script to echo "File permissions or ownership changed from required " when accidentally changed.

Hi All, I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :( which have similar names ( /var in root and var of some other directory ).:confused: Can some one suggest me with the... (1 Reply)
Discussion started by: shiek.kaleem
1 Replies

6. Solaris

ZFS flash install "Unable to create Filesystem error"

Hi, I am trying to get an HPz420 workstation instaled (zfs root pool) via a jump-start server. I have a zfs image (from this workstation) the Solaris release is 10 1/13 update 11. I use a sparc U25 install server, upgraded to the same solaris build 10 1/13. This server is configured to install... (8 Replies)
Discussion started by: sc0rpie
8 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
All times are GMT -4. The time now is 09:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy