Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

in my test machine i can see the filesystem list using bdf commands.

$bdf  
Filesystem          kbytes    used   avail %used Mounted on  
/dev/vg00/lvol3    58916864 6242747 49386840   11% /  
/dev/vg00/lvol1    2003481   47996 1755136    3% /stand  
/dev/vg77/stds     5120000   18753 4782427    0% /var/opt/stdenv  
/dev/vg77/scrap    3584000   18684 3342490    1% /tms/vts  
/dev/vg77/cmdsscrap
               3584000  530986 2862264   16% /mnt  

I have a scenario where i have to test the sar(1m) command to check the disk activity. for that i need a filesystem which is mirrored and configured with more then one disk.

But unfortunately the above existing filesystems are having only one disk mirrored with it.

# lvdisplay -v /dev/vg00/lvol1
--- Logical volumes ---
LV Name                     /dev/vg00/lvol1
VG Name                     /dev/vg00
LV Permission               read/write                
LV Status                   available/syncd           
Mirror copies               0            
Consistency Recovery        MWC                 
Schedule                    parallel      
LV Size (Mbytes)            2000            
Current LE                  125       
Allocated PE                125         
Stripes                     0       
Stripe Size (Kbytes)        0                   
Bad block                   off          
Allocation                  strict/contiguous         
IO Timeout (Seconds)        default             

--- Distribution of logical volume ---
PV Name                 LE on PV  PE on PV  
/dev/disk/disk4         125       125  <-- Only one disk is mirrored.

Can anyone please let me know, How to add another disk into these existing filesystem? Please help me with the steps for mirroring the disk with filesystem.

Thanks & Regards

share|improve this question

migrated from stackoverflow.com Apr 18 '11 at 10:42

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Steps Add your extra disk and make sure the OS can see it.

Create a PV with the new disk

pvcreate /dev/<new device>

add the PV to the Volume Group

vgextend vg00 /dev/<new device>

Attache the Volume group PV to the mirror

lvconvert -m 1  vg00/stand  -m 1 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.