Importing a Volume GroupTo import a volume group:1. Configure the disk(s)2. Import the volume group:# importvg -y myvg hdisk3(If you do not specify the option -y the command will generate a new volume group name.)3.Mount the file systems:# mount /dev/l...
显示全部Importing a Volume Group
To import a volume group:
1. Configure the disk(s)
2. Import the volume group:
# importvg -y myvg hdisk3
(If you do not specify the option -y the command will generate a new volume group name.)
3.Mount the file systems:
# mount /dev/lv10
# mount /dev/lv11
The complete volume group
is added to the ODM.
importvg and Existing Logical Volumes
If you are importing a volume group with logical volumes that already exist on the system,
the importvg command renames the logical volumes from the volume group that is
imported.
importvg时本地存在同名LV时,importvg会将重名的LV改名
importvg and Existing Filesystems
# importvg -y myvg hdisk3
Warning: mount point /home/michael already
exists in /etc/filesystems
# umount /home/michael
# mount -o log=/dev/loglv01 /dev/lv24 /home/michael
If a file system (for example /home/michael) already exists on a system, you run into
problems when you mount the file system that was imported.
This page explains the one thing you can do:
• Unmount the file system that exists on the system (/home/michael from datavg).
• Mount the imported file system. Note that you have to specify the log device (-o
log=/dev/lvlog01), the logical volume name (/dev/lv24) and the mount point
(/home/michael). If the filesystem type is jfs2 you have to specify this as well ( -V jfs2 ).
You can get all this informations by running the command getlvcb lv24 -At
Another possibility is to add a new stanza to the /etc/filesystems file. This is covered on
the next page
importvg是本地存在同名fs时,需要unmount本地的fs,再mount 导入的同名fs,同时需要指定log device、LV name、mount point、如果是jfs2的需要指定文件类型
importvg and Existing Filesystems (2 of 2)
# vi /etc/filesystems
/home/michael:
dev = /dev/lv11
vfs = jfs
log = /dev/loglv00
mount = false
options = rw
account= false
/home/michael_moon:
dev = /dev/lv24
vfs = jfs
log = /dev/loglv01
mount = false
options = rw
account= false
# mount /home/michael
# mount /home/michael_moon(Mount point must exist !)
如果需要同名的fs需要同时mount,则在/etc/filesystems中增加新节
收起