发新话题
打印

NETAPP技术学习全程记录

本主题由 awu 于 2008-10-12 15:31 设置高亮

Root Volumes

每个存储系统都只有一个root volume,就像前面说到的,别的都是从这个根上分出去的。root volume是用来启动存储系统的,这个是唯一个拥有"root"属性的volume,在它的/etc目录中包含了所有的用户配置信息。
   其他的卷的路径名都是以/vol开头的,/vol不是个目录。它是个特殊的虚拟路径用于mount其他的目录。

    上面的说法有问题,已经给冬瓜头指出,有不对的地方高手要多多指教,为后来的人答疑解惑么。呵呵。·

     /vol/vol0                   The volume name is vol0.

/vol/users/cheryl       Cheryl is a directory on a volume named users.

[ 本帖最后由 ender 于 2008-6-29 16:38 编辑 ]

TOP

想起一个搞笑的说法。

有人说netapp的系统里RAID都是才用RAID 4或RAID DP的,客户要求盘要做镜像。不满足要求哦!

有人这么答:我们用两块盘来做RAID 4,那也是镜像。哈哈。

实际上效果也是那么回事。嘿嘿。

[ 本帖最后由 ender 于 2008-6-28 22:49 编辑 ]

TOP

作镜像就用syncmirror,两个plex做景象。
另外,root vol不是什么“从这个根分出去的”那个根,它与其它vol差不多,只不过这个vol还存放ontap的配置信息、日志、firmware等等东西。如果愿意,你可以往vol0里面存数据。
敝人博客
《大话存储》购买:当当,互动,淘宝,卓越,自行搜索。

TOP

引用:
原帖由 冬瓜头 于 2008-6-28 23:02 发表
作镜像就用syncmirror,两个plex做景象。
另外,root vol不是什么“从这个根分出去的”那个根,它与其它vol差不多,只不过这个vol还存放ontap的配置信息、日志、firmware等等东西。如果愿意,你可以往vol0里面存数据 ...
踢场子的来了
我自豪,因为我是中国人
实话实说,诚实是美....

TOP

引用:
原帖由 林肯 于 2008-6-29 16:22 发表

踢场子的来了
呵呵,指正错误是欢迎的。

TOP

aggr 命令

R1> aggr
The following commands are available; for more information
type "aggr help <command>"
add                 mirror              rename              split
copy                offline             restrict            status
create              online              scrub               undestroy
destroy             options             show_space          verify
media_scrub
R1> aggr status
           Aggr State      Status            Options
          aggr0 online     raid0, aggr       root
R1>
R1> aggr create myaggr -t raid4 5
Mon Mar 24 02:40:55 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /myagg

r/plex0/rg0/v4.39 Shelf 2 Bay 7 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570621]

to aggregate myaggr has completed successfully
Mon Mar 24 02:40:55 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /myagg

r/plex0/rg0/v4.24 Shelf 1 Bay 8 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570508]

to aggregate myaggr has completed successfully
Mon Mar 24 02:40:55 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /myagg

r/plex0/rg0/v4.38 Shelf 2 Bay 6 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570620]

to aggregate myaggr has completed successfully
Mon Mar 24 02:40:55 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /myagg

r/plex0/rg0/v4.23 Shelf 1 Bay 7 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570507]

to aggregate myaggr has completed successfully
Mon Mar 24 02:40:55 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /myagg

r/plex0/rg0/v4.37 Shelf 2 Bay 5 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570619]

to aggregate myaggr has completed successfully
Creation of an aggregate with 5 disks has completed.
R1> Mon Mar 24 02:40:56 EDT [wafl.vol.add:notice]: Aggregate myaggr has been add

ed to the system.
R1> aggr status
           Aggr State      Status            Options
         myaggr online     raid4, aggr
          aggr0 online     raid0, aggr       root
-t 指定RAID类型,然后加上包含了校验盘的RAID组需要的磁盘数目。

[ 本帖最后由 ender 于 2008-6-29 16:53 编辑 ]

TOP

R1> aggr destroy myaggr
aggr destroy: Aggregate 'myaggr' cannot be destroyed because it is online.
You will need to take it offline before destroying it.
R1> aggr offline myaggr
Aggregate 'myaggr' is now offline.
R1> Mon Mar 24 02:44:38 EDT [volaggr.offline:CRITICAL]: Some aggregates are offl

ine. Volume creation could cause duplicate FSIDs.

R1> aggr destroy myaggr
Are you sure you want to destroy this aggregate? y
Mon Mar 24 02:44:54 EDT [raid.config.vol.destroyed:info]: Aggregate 'myaggr' des

troyed.
Aggregate 'myaggr' destroyed.

TOP

vol命令

R1> vol create mytravol -t raid4 4
Mon Mar 24 02:47:32 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /mytra

vol/plex0/rg0/v4.26 Shelf 1 Bay 10 [NETAPP   VD-100MB-FZ-520  0042] S/N [8957051

0] to volume mytravol has completed successfully
Mon Mar 24 02:47:32 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /mytra

vol/plex0/rg0/v4.41 Shelf 2 Bay 9 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570623

] to volume mytravol has completed successfully
Mon Mar 24 02:47:32 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /mytra

vol/plex0/rg0/v4.25 Shelf 1 Bay 9 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570509

] to volume mytravol has completed successfully
Mon Mar 24 02:47:32 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /mytra

vol/plex0/rg0/v4.40 Shelf 2 Bay 8 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570622

] to volume mytravol has completed successfully
Creation of a volume with 4 disks has completed.
R1> Mon Mar 24 02:47:33 EDT [wafl.vol.add:notice]: Volume mytravol has been adde

d to the system.
Mon Mar 24 02:47:34 EDT [vol.language.changed:info]: Language on volume mytravol

changed to en_US

The new language mappings will be available after reboot
Mon Mar 24 02:47:34 EDT [config_async_0:notice]: XL - Language of Volume mytravo

l has been changed to en_US.

R1> aggr status
           Aggr State      Status            Options
       mytravol online     raid4, trad
          aggr0 online     raid0, aggr       root

建立了一个traditional volume后,直接指定RAID类型和盘数。这个时候看traditional volume就是个和它名字一样的aggr.

R1> aggr status -b
  Aggr              Block Size (bytes)  Aggr Size (blocks)  FS Size (blocks)
------              ------------------  ------------------  ----------------
myaggr              4096                102400              102400
mytravol            4096                76800               76800
aggr0               4096                102400              102400

R1> vol status -b
Volume              Block Size (bytes)  Vol Size (blocks)   FS Size (blocks)
------              ------------------  ------------------  ----------------
vol0                4096                65184               65184
vvol1               4096                12800               12800
svpri               4096                5120                5120
mytravol            4096                76800               76800
myflexvol01         4096                25600               25600
myflexvol02         4096                5120                5120

mytravol实际已经占用了整个aggr的空间。试试看能不能减小下:
R1> vol size mytravol -50M
vol size: Invalid operation on traditional volume 'mytravol'
R1>
R1> vol add mytravol 1
Mon Mar 24 03:08:13 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /mytra

vol/plex0/rg0/v4.44 Shelf 2 Bay 12 [NETAPP   VD-100MB-FZ-520  0042] S/N [8957062

6] to volume mytravol has completed successfully
Addition of 1 disk to the volume has completed.
R1> vol status -b
Volume              Block Size (bytes)  Vol Size (blocks)   FS Size (blocks)
------              ------------------  ------------------  ----------------
vol0                4096                65184               65184
vvol1               4096                12800               12800
svpri               4096                5120                5120
mytravol            4096                102400              102400
myflexvol01         4096                25600               25600
myflexvol02         4096                5120                5120
R1> aggr status -b
  Aggr              Block Size (bytes)  Aggr Size (blocks)  FS Size (blocks)
------              ------------------  ------------------  ----------------
myaggr              4096                102400              102400
mytravol            4096                102400              102400
aggr0               4096                102400              102400
R1>
要增加容量就是加入整个新盘的容量。




[ 本帖最后由 ender 于 2008-6-29 17:21 编辑 ]

TOP

R1> vol status -b
Volume              Block Size (bytes)  Vol Size (blocks)   FS Size (blocks)
------              ------------------  ------------------  ----------------
vol0                4096                65184               65184
vvol1               4096                12800               12800
svpri               4096                5120                5120
mytravol            4096                102400              102400
myflexvol01         4096                25600               25600
myflexvol02         4096                5120                5120
R1> vol size myflexvol01 -30m
vol size: Flexible volume 'myflexvol01' size set to 70m.
R1> vol status -b
Volume              Block Size (bytes)  Vol Size (blocks)   FS Size (blocks)
------              ------------------  ------------------  ----------------
vol0                4096                65184               65184
vvol1               4096                12800               12800
svpri               4096                5120                5120
mytravol            4096                102400              102400
myflexvol01         4096                17920               17920
myflexvol02         4096                5120                5120
R1> vol status
         Volume State      Status            Options
       mytravol online     raid4, trad       create_ucode=on,
                                             convert_ucode=on
    myflexvol01 online     raid4, flex       create_ucode=on,
                                             convert_ucode=on
           vol0 online     raid0, flex       root, no_atime_update=on,
                                             create_ucode=on,
                                             convert_ucode=on,
                                             maxdirsize=2621
    myflexvol02 online     raid4, flex       create_ucode=on,
                                             convert_ucode=on

flexvol就灵活多了,可以很简单的通过“+,-"加容量来调整大小。

[ 本帖最后由 ender 于 2008-6-29 17:24 编辑 ]

TOP

Foreign Volume

用拔盘的方式做数据迁移?这个比较有意思。

等我用模拟器试试看行不行,等待更新中。。。。。。
R2> aggr create myforaggr -t raid4 3
Sun Mar 23 00:43:22 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /myforaggr/plex0/rg0/v4.35 Shelf 2 Bay 3 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570517] to aggregate myforaggr has completed successfully
Sun Mar 23 00:43:22 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /myforaggr/plex0/rg0/v4.20 Shelf 1 Bay 4 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570504] to aggregate myforaggr has completed successfully
Sun Mar 23 00:43:22 EDT [raid.vol.disk.add.done:notice]: Addition of Disk /myforaggr/plex0/rg0/v4.34 Shelf 2 Bay 2 [NETAPP   VD-100MB-FZ-520  0042] S/N [89570516] to aggregate myforaggr has completed successfully
Creation of an aggregate with 3 disks has completed.
R2> Sun Mar 23 00:43:22 EDT [wafl.vol.add:notice]: Aggregate myforaggr has been added to the system.
R2> vol create myforvol001 myforaggr 20M
Sun Mar 23 00:43:58 EDT [vol.language.changed:info]: Language on volume myforvol001 changed to en_US

The new language mappings will be available after reboot
Sun Mar 23 00:43:58 EDT [vv_config_worker:notice]: XL - Language of Volume myforvol001 has been changed to en_US.
Creation of volume 'myforvol001' with size 20m on containing aggregate
'myforaggr' has completed.
R2> vol create myforvol002 myforaggr 30M
Sun Mar 23 00:44:09 EDT [vol.language.changed:info]: Language on volume myforvol002 changed to en_US

The new language mappings will be available after reboot
Sun Mar 23 00:44:09 EDT [vv_config_worker:notice]: XL - Language of Volume myforvol002 has been changed to en_US.
Creation of volume 'myforvol002' with size 30m on containing aggregate
'myforaggr' has completed.
创建一个名叫myforaggr的aggregate,然后在上面建立两个flexvol,20M的myforvol001和30M的myforvol002

[ 本帖最后由 ender 于 2008-6-29 19:26 编辑 ]

TOP

发新话题