AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  how to duplicate a entry in /etc/filesystems use CLI

    Posted 08/18/09 11:52 PM

    Originally posted by: dingdingfish


    i have a filesystem /fs based on lv fslv00. now i use cplv copy fslv00 to fslv01, then i want to create a fs /fs01 on fslv01 and mount it.
    then i use smitty crfs, but content of the new mount fs is empty.
    so i do the test again, and modify /etc/filesystems manually, this time the target is the same as source.
    but i heard of manually modify this file is not recommended, so it there any CLI to create a entry in /etc/filesystems?
    #AIX-Forum


  • 2.  Re: how to duplicate a entry in /etc/filesystems use CLI

    Posted 08/20/09 08:24 AM

    Originally posted by: hdkutz


    Hello,
    CLI to create a FS:
    • mklv -y'name_of_LV' -t'jfs2' name_of_VG size_in_lp hdisk0
    • crfs -v jfs2 -d <name_of_jfs_LV> -m /<mountpoint> -a logname=INLINE -A yes

    E.g:
    mklv -y'testlv' -t'jfs2' rootvg 1 hdisk0
    crfs -v jfs2 -d testlv -m /test -a logname=INLINE -A yes
    would create a LV with the name testlv, size 1 LP in rootvg on hdisk0. The crfs creates a jfs2-FS on the previous testlv with the Mountpoint /test with INLINE-Log Option and automatic mount on Reboot (Entry in /etc/filesystems).

    HTH,
    ku
    #AIX-Forum


  • 3.  Re: how to duplicate a entry in /etc/filesystems use CLI

    Posted 08/20/09 09:28 PM

    Originally posted by: dingdingfish


    what i really want is if the lv is include data already, how to add a entry in /etc/filesystems. the method you provide may destroy the data on lv
    #AIX-Forum


  • 4.  Re: how to duplicate a entry in /etc/filesystems use CLI

    Posted 08/20/09 11:23 PM

    Originally posted by: j.gann


    take a look at importvg
    #AIX-Forum