I was trying to delete and recreate a filesystem, thinking it would be a quick way of deleting all of the files off of it, and I fear that I messed up. Here is the original entry from /etc/filesystems:
And the output from df:
I first ran rmfs /data01 to delete the filesystem, then I tried the following:
This didn't work so I tried crfs instead, but I don't think I was using that properly either:
I am just trying to recreate my old /data01 filesystem with "normal" settings. The man pages for mkfs/crfs are a little confusing.. Any help would be appreciated.
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:
Then I tried to create the new filesystem:
However when I ran df my new filesystem did not show up:
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?
My AIX is very rusty! Perhaps you should have used crfs, actually, with the -A yes option to automount the filesystem. Still, no worries. You can just copy-paste the previous entry into /etc/filesystem, changing the LV name and any other details as appropriate, and then mount the filesystem manually.
(I added the /, as I assume it's missing)
It's not clear where lvdata01 came from. Did you just create that too?
If the filesystem /data01 is for database data, you might consider adding noatime to the options.
My AIX is very rusty! Perhaps you should have used crfs, actually, with the -A yes option to automount the filesystem. Still, no worries. You can just copy-paste the previous entry into /etc/filesystem, changing the LV name and any other details as appropriate, and then mount the filesystem manually.
(I added the /, as I assume it's missing)
It's not clear where lvdata01 came from. Did you just create that too?
If the filesystem /data01 is for database data, you might consider adding noatime to the options.
Hm I'm not sure where lvdata01 came from either, and nope we won't be using this for database data
Thank you so much for the help! I'm not super familiar with how filesystems are set up on AIX, and I wasn't sure if I was even allowed to modify /etc/filesystems but now everything is mounted properly. Cheers
Sure, you can edit the file if you're careful. Normally commands like chfs, smit(ty), etc. would update it for you, but as the whole data01 stanza was missing, it's easier just to add it manually.
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)
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)
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)
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)
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)
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)
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)
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)
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)