如何aix创建vg lv,移除VG

逻辑卷的创建、扩展、缩小和移除_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
逻辑卷的创建、扩展、缩小和移除
上传于||暂无简介
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩1页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢删除硬盘的过程简单如下:
从VG删除PV->删除PV->删除该硬盘上的LVM分区->拔掉硬盘
第一步,从VG删除PV
1.删除前,先确认要删除的PV所在的VG情况:
[root@test ~]# vgdisplay -v
Finding all volume groups
Finding volume group &VolGroup00&
--- Volume group ---
VolGroup00
Metadata Areas
Metadata Sequence No
read/write
Alloc PE / Size
653 / 20.41 GB
11844 / 370.12 GB
0UvEJz-rfLm-MVDb-20uW-JMCa-T14K-wCmyLO
--- Logical volume ---
/dev/VolGroup00/LogVol00
VolGroup00
fDHwa0-IUZV-no5O-RRJB-4N9o-U2MV-TAqucp
LV Write Access
read/write
Current LE
Allocation
Read ahead sectors
- currently set to
Block device
--- Logical volume ---
/dev/VolGroup00/LogVol01
VolGroup00
cUjKA9-bI60-6R05-K0jS-MdXi-r26d-mfwU8X
LV Write Access
read/write
Current LE
Allocation
Read ahead sectors
- currently set to
Block device
--- Physical volumes ---
/dev/cciss/c0d0p3
6K7yBW-NuRf-3Quv-LU8U-6N1S-DmzG-ccCmbx
allocatable
Total PE / Free PE
8122 / 7469
/dev/cciss/c0d1p1 &--要从VG里移除的PV
TWzjBK-0N5x-1A6c-wht3-n4l1-7gFp-m24iy3
allocatable
Total PE / Free PE
4375 / 4375
可以看到VG名为VolGroup00的最后那一段PV名字是/dev/cciss/c0d1p1就是我要从VG里删除的PV。
2.从VG删除PV
[root@test ~]#
vgreduce VolGroup00 /dev/cciss/c0d1p1
Removed "/dev/cciss/c0d1p1" from volume group "VolGroup00"
3.确认是否已经删除
[root@test ~]# vgdisplay -v VolGroup00 | grep "/dev/cciss/c0d1p1"
Using volume group(s) on command line
Finding volume group "VolGroup00"
可以看到,VolGroup00里已经不包含名为/dev/cciss/c0d1p1的PV了。
第二步,删除PV
1.确认PV信息:
[root@test ~]# pvdisplay
--- Physical volume ---
/dev/cciss/c0d0p3
VolGroup00
253.82 GB / not usable 6.99 MB
Allocatable
PE Size (KByte)
Allocated PE
6K7yBW-NuRf-3Quv-LU8U-6N1S-DmzG-ccCmbx
&/dev/cciss/c0d1p1& is a new physical volume of &136.73 GB&
--- NEW Physical volume ---
/dev/cciss/c0d1p1 &--我们要删除的PV
Allocatable
PE Size (KByte)
Allocated PE
TWzjBK-0N5x-1A6c-wht3-n4l1-7gFp-m24iy3
名为/dev/cciss/c0d1p1的就是我们要删除的PV。
[root@test ~]# pvremove /dev/cciss/c0d1p1
Labels on physical volume "/dev/cciss/c0d1p1" successfully wiped
3.确认PV是否删除成功
[root@test ~]# pvdisplay | grep "/dev/cciss/c0d1p1"
[root@test ~]#
可见,已经删除成功。
第三步,删除该硬盘(/dev/cciss/c0d1)上的LVM分区(/dev/cciss/c0d1p1)
[root@test ~]# fdisk /dev/cciss/c0d1
The number of cylinders for this disk is set to 35139.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p &--显示分区情况
Disk /dev/cciss/c0d1: 146.8 GB,
255 heads, 32 sectors/track, 35139 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot
/dev/cciss/c0d1p1
Command (m for help): d &--删除分区
Selected partition 1
Command (m for help): p &--在显示分区情况,发现已经没了
Disk /dev/cciss/c0d1: 146.8 GB,
255 heads, 32 sectors/track, 35139 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot
Command (m for help): w &--保存退出
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
好了,现在可以拔掉硬盘了或者拿来做爱做之事!
本文作者: | 本文地址:
版权声明:本站文章均属原创,版权所有,如需转载,请以超链接形式注明作者和原始出处,否则将追究法律责任。
此条目发表在
分类目录,贴了 , , ,
标签。将加入收藏夹。aix&向vg中添加和删除pv
使用 smitty extendvg 和smitty reducevg 命令进入smitty进行添加/删除pv操作
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。发布时间:December 21, 2012 // 分类: //
分区在查看PV时提示以下错误:
Couldn't find device with uuid MBRrbL-wujm-Tfpe-h2qo-M6vo-9W1B-Im0zjo.
PV /dev/xvda2
VG VolGroup00
lvm2 [7.88 GB / 0
PV /dev/xvda3
VG VolGroup00
lvm2 [1.97 GB / 0
PV unknown device
VG VolGroup00
lvm2 [9.97 GB / 9.97 GB free]
VG中去除PV unknown device:
vgreduce --removemissing /dev/VolGroup00 #去除未知或已丢失的VG
Couldn't find device with uuid MBRrbL-wujm-Tfpe-h2qo-M6vo-9W1B-Im0zjo.
Wrote out consistent volume group VolGroup00
从VG中去除特定PV:
vgreduce VolGroup00
/dev/xvdb1
/dev/xvdb1
(13) (42) (82) (8) (17) (14) (14) (5) (4) (7) (13) (23) (3) (40) (1) (9) (3) (11) (20) (10) (18) (2) (18) (4) (7) (28) (2) (3) (18) (2) (16) (3) (25) (35) (22) (3) (10) (3) (5) (20) (14) (4) (2) (1) (1) (1) (2) (7) (13) (4) (9) (3) (1) (4) (2) (3) (6) (2) (1) (1) (3) (3) (8) (6) (4) (7) (3) (7) (2) (1) (2)
: 博主你好,按照你的教程设置了IP转发及SNAT:echo 1 > /proc/sys/net/...
: 大神, 为什么我在make clean 就出错了呢 ?你能帮我看看吗 。。。...
: 遇到相同的问题,但未能解决,请求帮助。1、遇到的问题:/target-i386_i486_uC...
: 大哥,我觉得你的技术好牛逼!能加你QQ吗
: Unknown package 'lrzsz'.Collected errors:* opkg...
: 在openwrt 15.05 下 luci 界面安装了 带操作界面的 openconnect ...
: 搭建很顺利(唯一成功的www),链接很丝滑,谢博主。
: 您好,请问一下,我客户端和服务端都编译成功了,down到本地启动是这个样子,没有Forward...
: openwrt 14 安装rp-pppoe-server问题1,客户端连接错误代码619,使用...
: 能否使用 SNAT
让服务端的发送端口 随机化?
页面执行耗时:0.0389秒。-->

我要回帖

更多关于 亚马逊创建移除订单 的文章

 

随机推荐