movelvfromvgtovg

  • Upload
    sajeer

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

  • 8/10/2019 movelvfromvgtovg

    1/3

    Example

    Task 1 : Ckeck the logical volume and it mount point . In our example we are going to move /myfilesytem from mvg1 to poovg1.

    ! df "g#ilesystem $% &locks #ree '(sed Iused 'Iused )ounted on/dev/hd* .+, .+ +1' +,1* +' //dev/hd+ +.-- .*+ -' 0* ,' /usr/dev/hd0var .+, .11 ,-' **0, ' /var/dev/hd .1+ .- *' , +' /tmp/dev/hd1 ., .*- *' ++ 1' /home/proc " " " " " /proc/dev/hd1opt ., .+ ' 00 ' /opt/dev/lv2admin .1+ .1+ *' 1' /admin/dev/fslv 1. ., -' 1,,- *' /se3install/dev/mylv +. +. 1' * 1' /my

    Task + : 4ist the volume group present on the system.

    ! lsvgrootvgmyvg1poovg1

    Task : Identify the 5olume $roup corresponds to the filesystem and 4ogical 5olume. In thisexample mylv is the 45 name for filesystme /my and it resides on 5$ myvg1 .

    ! lsvg "l myvg1myvg1:45 67)E T89E 49s 99s 95s 45 T7TE );(6T 9;I6Tmylv 3fs+ - - 1 open/syncd /myloglv1 3fs+log 1 1 1 open/syncd 6/7

    Task * : (mount the filesytem .

    !umount /my

    Task , : Copy the mylv to 5olume $roup poovg1 with new 45 name mylvnew.

    ! cplv "v poovg1 "y mylvnew mylvcplv: 4ogical volume mylv successfully copied to mylvnew .

    Task : create a 3fs+log file with name loglv+.

    ! mklv "t 3fs+log "y loglv+ poovg1 1

    loglv+

    Task : #ormat the log file.

    ! logform /dev/loglv+logform: destroy /dev/rloglv+ y

    Task - : 7ssign the log /dev/loglv+ to the 45 /dev/mylvnew.

    ! chfs "a dev?/dev/mylvnew "a log?/dev/loglv+ /my

  • 8/10/2019 movelvfromvgtovg

    2/3

    Task 0 : @un filesystem check on the mount point /my.

    ! fsck "p /my

    The current volume is: /dev/mylvnew9rimary super&lock is valid.A+24;$@EB;:log redo processing for /dev/mylvnewA+24;$@EB;:logredo: /dev/loglv1 is not a log file

    3+2logredo.cpp: E@@;@ in open#ilesystems line 1-,+ open4og3+2logredo.cpp: E@@;@ in 3+2logredo line , open#ilesystems#ailure replaying log: "-exec module D/s&in/helpers/3fs+/logredo*D failed.logredo failed y

  • 8/10/2019 movelvfromvgtovg

    3/3

    ! lsvg "l myvg1myvg1:45 67)E T89E 49s 99s 95s 45 T7TE );(6T 9;I6Tloglv1 3fs+log 1 1 1 closed/syncd 6/7

    Task 1*: 5erify the mylvnew is present in poovg1.

    ! lsvg "l poovg1poovg1:45 67)E T89E 49s 99s 95s 45 T7TE );(6T 9;I6Tpoolv 3fs+ - - 1 closed/syncd 6/7mylvnew 3fs+ - - 1 open/syncd /myloglv+ 3fs+log 1 1 1 open/syncd 6/7

    %y this way we can move a filesystem from 5$ to 5$ .