LoveUnix » 其他UNIX & Linux » 请教:lvcreate如何将lv创建到制定disk上面??
让LU留住您的每

一天 让LU博客留住您的每一天
2007-4-30 16:21 xiaomage79
请教:lvcreate如何将lv创建到制定disk上面??

# vgdisplay -v vg00   

PV Name                     /dev/dsk/c1t0d0s2
PV Name                     /dev/dsk/c1t1d0

# lvcreate -L 8 -n mylv00 vg00

如上 vg00下面有2个disk
请教:在创建mylv00的时候,如何把mylv00指定到/dev/dsk/c1t1d0上面呢???

2007-4-30 22:59 luweinet
lvcreate -n mylv00 vg00
lvextend -L 100m /dev/vg00/mylv00 /dev/dsk/c1t1d0
先创建LV的名字,没有大小,然后将该LV扩展到目的PV上去,并指定大小(小技巧)
具体参看man
      If you omit the -l and -L options, the logical volume is created with
      zero length.  This permits you to choose its physical volume location
      when you allocate logical extents with the lvextend command (see
      lvextend(1M)).  If you specify -l or -L, the location is determined
      automatically.

2007-4-30 23:49 xiaomage79
谢谢LS

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.